mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-06 01:54:43 +00:00
Add command for creating notation configuration secrets
Signed-off-by: Jason <jagoodse@microsoft.com>
This commit is contained in:
parent
0cb24f9c6a
commit
c49ba9d310
14 changed files with 478 additions and 3 deletions
|
|
@ -181,6 +181,16 @@ func buildSecret(keypair *ssh.KeyPair, hostKey, dockerCfg []byte, options Option
|
|||
}
|
||||
}
|
||||
|
||||
if len(options.VerificationCrts) != 0 {
|
||||
for _, crts := range options.VerificationCrts {
|
||||
secret.StringData[crts.Name] = string(crts.CACrt)
|
||||
}
|
||||
}
|
||||
|
||||
if len(options.TrustPolicy) != 0 {
|
||||
secret.StringData[TrustPolicyKey] = string(options.TrustPolicy)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue