Skip to content

Commit

Permalink
Add a label to mark the secret
Browse files Browse the repository at this point in the history
Added a label "created-by"="terraform-controller" to mark the secret
was created by Terraform Controller
  • Loading branch information
zzxwill committed Nov 29, 2021
1 parent ab17426 commit 59dd7ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/configuration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@ func (meta *TFConfigurationMeta) getTFOutputs(ctx context.Context, k8sClient cli
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: ns,
Labels: map[string]string{
"created-by": "terraform-controller",
},
},
TypeMeta: metav1.TypeMeta{Kind: "Secret"},
Data: data,
Expand Down

0 comments on commit 59dd7ea

Please sign in to comment.