cloudapi: carry ostree MTLS secret over

This commit is contained in:
Lukas Zapletal 2024-12-02 16:43:49 +01:00 committed by Sanne Raymaekers
parent 779053d910
commit 4b55bc2825

View file

@ -654,13 +654,7 @@ func serializeManifest(ctx context.Context, manifestSource *manifest.Manifest, w
Ref: resultSpec.Ref,
URL: resultSpec.URL,
Checksum: resultSpec.Checksum,
}
if resultSpec.RHSM {
// NOTE: Older workers don't set the Secrets string in the result
// spec so let's add it here for backwards compatibility. This
// should be removed after a few versions when all workers have
// been updated.
resultSpec.Secrets = "org.osbuild.rhsm.consumer"
Secrets: resultSpec.Secrets,
}
}
ostreeCommitSpecs = map[string][]ostree.CommitSpec{