mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-21 19:15:44 +00:00
fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
parent
f9be835288
commit
3edfff49a2
6 changed files with 7 additions and 7 deletions
|
|
@ -419,7 +419,7 @@ func maskSopsData(res *resource.Resource) error {
|
|||
res.PipeE(yaml.FieldClearer{Name: "sops"})
|
||||
|
||||
secretType, err := res.GetFieldValue(typeField)
|
||||
// If the intented type is Opaque, then it can be omitted from the manifest, since it's the default
|
||||
// If the intended type is Opaque, then it can be omitted from the manifest, since it's the default
|
||||
// Ref: https://kubernetes.io/docs/concepts/configuration/secret/#opaque-secrets
|
||||
if errors.As(err, &yaml.NoFieldError{}) {
|
||||
secretType = "Opaque"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue