Skip to content

Commit 4b1da61

Browse files
savitaashturechmouel
authored andcommitted
Add label app.kubernetes.io/part-of while creating secret pipelines-as-code-secret
1 parent a55fece commit 4b1da61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/tknpac/bootstrap/kubestuff.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func createPacSecret(ctx context.Context, run *params.Run, opts *bootstrapOpts,
2222
_, err := run.Clients.Kube.CoreV1().Secrets(opts.targetNamespace).Create(ctx, &corev1.Secret{
2323
ObjectMeta: metav1.ObjectMeta{
2424
Name: secretName,
25+
Labels: map[string]string{
26+
"app.kubernetes.io/part-of": "pipelines-as-code",
27+
},
2528
},
2629
Data: map[string][]byte{
2730
"github-application-id": []byte(fmt.Sprintf("%d", manifest.GetID())),

0 commit comments

Comments
 (0)