This repository was archived by the owner on Mar 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
template-processors/base/bin Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ shellcheck:
95
95
96
96
.PHONY : e2e-test-images
97
97
e2e-test-images : build
98
- TRAVIS_TAG=v999.0.0 ./scripts/build-images.sh ${REPOSITORY}
98
+ TRAVIS_TAG=latest ./scripts/build-images.sh ${REPOSITORY}
99
99
100
100
# Deploy images to Quay.io
101
101
.PHONY : travis-deploy-images
Original file line number Diff line number Diff line change @@ -59,13 +59,12 @@ function addLabels() {
59
59
function deleteByOldLabels() {
60
60
local owner=" $1 "
61
61
local timestamp=" ${2:- } "
62
- # NOTE: removing componentstatus because it shows up unintended in ownedKinds: https://github.com/kubernetes/kubectl/issues/151#issuecomment-562578617
63
- local allKinds=" $( kube api-resources --verbs=list -o name | grep -ivE ' ^componentstatus(es)?$' | paste -sd, -) "
62
+ local allKinds=" $( kube api-resources --verbs=list,delete -o name | paste -sd, -) "
64
63
local ownedKinds=" $( kube get " $allKinds " --ignore-not-found \
65
64
-l " $TAG_OWNER ==$owner " \
66
- -o custom-columns=kind:.kind \
67
- --no-headers=true |
65
+ -o jsonpath=" {range .items[*]}{.kind} {.apiVersion}{'\n'}{end}" | # e.g. "Pod v1" OR "StorageClass storage.k8s.io/v1"
68
66
sort -u |
67
+ awk -F' [ /]' ' {if (NF==2) {print $1} else {print $1"."$3"."$2}}' | # e.g. "Pod" OR "StorageClass.v1.storage.k8s.io"
69
68
paste -sd, -) "
70
69
if [ -z " $ownedKinds " ]; then
71
70
return
You can’t perform that action at this time.
0 commit comments