diff --git a/Makefile b/Makefile index efc441f0..d9b2eb50 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v0.1.50 +VERSION=v0.1.51 OUT_DIR=dist YEAR?=$(shell date +"%Y") diff --git a/docs/releases/release_notes.md b/docs/releases/release_notes.md index 9a921cc6..6647d03e 100644 --- a/docs/releases/release_notes.md +++ b/docs/releases/release_notes.md @@ -23,7 +23,7 @@ cf version ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.42/cf-linux-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.51/cf-linux-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-linux-amd64 /usr/local/bin/cf @@ -36,7 +36,7 @@ cf version ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.42/cf-darwin-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.51/cf-darwin-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-darwin-amd64 /usr/local/bin/cf diff --git a/pkg/util/kube/kube.go b/pkg/util/kube/kube.go index a4df7399..98592b83 100644 --- a/pkg/util/kube/kube.go +++ b/pkg/util/kube/kube.go @@ -566,7 +566,7 @@ func deleteJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Jo func getPodByJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Job) (*v1.Pod, error) { pods, err := client.CoreV1().Pods(job.GetNamespace()).List(ctx, metav1.ListOptions{ - LabelSelector: "controller-uid=" + job.Spec.Selector.MatchLabels["controller-uid"], + LabelSelector: "controller-uid=" + job.Labels["controller-uid"], }) if err != nil { return nil, err