diff --git a/cmd/flux/create_source_bucket.go b/cmd/flux/create_source_bucket.go index da50b562490fc4681c984968ef85b03f3cd76101..1cebb7988413fdf1c4d9bf47c5701de695ec1947 100644 --- a/cmd/flux/create_source_bucket.go +++ b/cmd/flux/create_source_bucket.go @@ -154,6 +154,7 @@ func createSourceBucketCmdRun(cmd *cobra.Command, args []string) error { ObjectMeta: metav1.ObjectMeta{ Name: secretName, Namespace: namespace, + Labels: sourceLabels, }, StringData: map[string]string{}, } diff --git a/cmd/flux/create_source_git.go b/cmd/flux/create_source_git.go index 1fa64167ca329c5733ed993449ff85867306d1ac..9a0ca1d900f5fc439ab4260c6fec9a54b74d8927 100644 --- a/cmd/flux/create_source_git.go +++ b/cmd/flux/create_source_git.go @@ -215,6 +215,7 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error { ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: namespace, + Labels: sourceLabels, }, StringData: map[string]string{ "identity": string(pair.PrivateKey), @@ -232,6 +233,7 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error { ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: namespace, + Labels: sourceLabels, }, StringData: map[string]string{ "username": sourceGitUsername, diff --git a/cmd/flux/create_source_helm.go b/cmd/flux/create_source_helm.go index c187fa3e6b8e5e3afe3af929ec452bcbdd68d27d..78f85f8d2c74e25054986112fc092224180d61d2 100644 --- a/cmd/flux/create_source_helm.go +++ b/cmd/flux/create_source_helm.go @@ -151,6 +151,7 @@ func createSourceHelmCmdRun(cmd *cobra.Command, args []string) error { ObjectMeta: metav1.ObjectMeta{ Name: secretName, Namespace: namespace, + Labels: sourceLabels, }, StringData: map[string]string{}, }