diff --git a/cmd/flux/create_source_bucket.go b/cmd/flux/create_source_bucket.go index ea5f3e28..035f670e 100644 --- a/cmd/flux/create_source_bucket.go +++ b/cmd/flux/create_source_bucket.go @@ -134,7 +134,7 @@ func createSourceBucketCmdRun(cmd *cobra.Command, args []string) error { }, }, } - if sourceHelmArgs.secretRef != "" { + if sourceBucketArgs.secretRef != "" { bucket.Spec.SecretRef = &meta.LocalObjectReference{ Name: sourceBucketArgs.secretRef, }