Skip to content

Commit

Permalink
added label to build pods
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Dec 8, 2021
1 parent 46b03aa commit 1dcc018
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ buildctl-daemonless.sh \
pod := &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
GenerateName: "wedding-build-",
Labels: map[string]string{
"app": "wedding",
"job": "buildkit",
},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{
Expand Down
4 changes: 4 additions & 0 deletions pkg/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func (s Service) runSkopeoPod(ctx context.Context, w io.Writer, processName, scr
pod := &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
GenerateName: fmt.Sprintf("wedding-%s-", processName),
Labels: map[string]string{
"app": "wedding",
"job": "skopeo",
},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{
Expand Down

0 comments on commit 1dcc018

Please sign in to comment.