File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if [ ! -e ${TKG_CLI_PATH} ]; then
10
10
fi
11
11
12
12
LIST=(
13
+ registry.tkg.vmware.run/kind/node:v1.17.3_vmware.2
13
14
registry.tkg.vmware.run/cluster-api/cluster-api-aws-controller:v0.5.2_vmware.1
14
15
registry.tkg.vmware.run/cluster-api/kubeadm-control-plane-controller:v0.3.3_vmware.1
15
16
registry.tkg.vmware.run/cluster-api/kubeadm-bootstrap-controller:v0.3.3_vmware.1
46
47
imageDestination=$( echo -n " $image " | sed " s/$origImageRepo /$newImageRepo /g" )
47
48
echo " > Pulling $image "
48
49
docker pull " $image "
49
- echo " > Pushing $imageDestination "
50
- docker tag " $image " " $imageDestination "
51
- docker push " $imageDestination "
52
- docker rmi " $image "
50
+ # Do not push KIND container into Harbor as this is only used locally
51
+ if [ " $image " != " registry.tkg.vmware.run/kind/node:v1.17.3_vmware.2" ]; then
52
+ echo " > Tagging $image -> $imageDestination "
53
+ docker tag " $image " " $imageDestination "
54
+ echo " > Pushing $imageDestination "
55
+ docker push " $imageDestination "
56
+ docker rmi " $image "
57
+ fi
53
58
# Leaving these containers cached in Photon to speed up KIND deployment
54
59
if [[ " $imageDestination " != " ${REGISTRY_URL} /library/cert-manager/cert-manager-webhook:v0.11.0_vmware.1" ]] && [[ " $imageDestination " != " ${REGISTRY_URL} /library/cert-manager/cert-manager-cainjector:v0.11.0_vmware.1" ]] && [[ " $imageDestination " != " ${REGISTRY_URL} /library/cert-manager/cert-manager-controller:v0.11.0_vmware.1" ]]; then
55
60
docker rmi " $imageDestination "
You can’t perform that action at this time.
0 commit comments