You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kctrl: Add secret flag for package repo add/update (#1612)
* Add secret flag for PackageRepository CRD in cli
Signed-off-by: Devanshu <[email protected]>
* Removed whitespace check
Signed-off-by: Devanshu <[email protected]>
* Changed flagname to secretref
also added a shorthand for secretref flag
Signed-off-by: Devanshu <[email protected]>
* Add hyphen(-) in flag name, remove shorthand
Signed-off-by: Devanshu <[email protected]>
* Add dry-run test for secret-ref flag
Signed-off-by: Devanshu <[email protected]>
---------
Signed-off-by: Devanshu <[email protected]>
cmd.Flags().StringVar(&o.SemverTagConstraints, "semver-tag-constraints", "", "tag/semver constraint when tag is not present in URL (If both tags and semver are present, then tag gets precedence)")
82
+
cmd.Flags().StringVar(&o.SecretRef, "secret-ref", "", "SecretRef name for imgpkgbundle, optional")
81
83
cmd.Flags().BoolVar(&o.DryRun, "dry-run", false, "Print YAML for resources being applied to the cluster without applying them, optional")
82
84
83
85
cmd.Flags().BoolVar(&o.CreateNamespace, "create-namespace", false, "Create the package repository namespace if not present (default false)")
cmd.Flags().StringVarP(&o.SemverTagConstraints, "semver-tag-constraints", "", "", "tag/semver constraint when tag is not present in URL (If both tags and semver are present, then tag gets precedence)")
124
+
cmd.Flags().StringVarP(&o.SecretRef, "secret-ref", "", "", "SecretRef name for imgpkgbundle, optional")
0 commit comments