Skip to content

Commit db60be4

Browse files
Revert "Remove dockerhub registry patch"
This reverts commit 9c515b7.
1 parent bf4801b commit db60be4

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
run: devbox run -- make e2e-test E2E_LABEL='provider:${{ inputs.provider }} && cni:Cilium && addonStrategy:HelmAddon' E2E_SKIP='${{ inputs.skip }}' E2E_FOCUS='${{ inputs.focus }}'
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
82+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
8183
NUTANIX_ENDPOINT: ${{ secrets.NUTANIX_ENDPOINT }}
8284
NUTANIX_USER: ${{ secrets.NUTANIX_USER }}
8385
NUTANIX_PASSWORD: ${{ secrets.NUTANIX_PASSWORD }}

examples/capi-quick-start/nutanix-cluster-calico-crs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ spec:
111111
encryptionAtRest:
112112
providers:
113113
- aescbc: {}
114+
imageRegistries:
115+
- credentials:
116+
secretRef:
117+
name: ${CLUSTER_NAME}-dockerhub-credentials
118+
url: https://docker.io
114119
nutanix:
115120
controlPlaneEndpoint:
116121
host: ${CONTROL_PLANE_ENDPOINT_IP}

examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ spec:
111111
encryptionAtRest:
112112
providers:
113113
- aescbc: {}
114+
imageRegistries:
115+
- credentials:
116+
secretRef:
117+
name: ${CLUSTER_NAME}-dockerhub-credentials
118+
url: https://docker.io
114119
nutanix:
115120
controlPlaneEndpoint:
116121
host: ${CONTROL_PLANE_ENDPOINT_IP}

examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ spec:
111111
encryptionAtRest:
112112
providers:
113113
- aescbc: {}
114+
imageRegistries:
115+
- credentials:
116+
secretRef:
117+
name: ${CLUSTER_NAME}-dockerhub-credentials
118+
url: https://docker.io
114119
nutanix:
115120
controlPlaneEndpoint:
116121
host: ${CONTROL_PLANE_ENDPOINT_IP}

examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ spec:
111111
encryptionAtRest:
112112
providers:
113113
- aescbc: {}
114+
imageRegistries:
115+
- credentials:
116+
secretRef:
117+
name: ${CLUSTER_NAME}-dockerhub-credentials
118+
url: https://docker.io
114119
nutanix:
115120
controlPlaneEndpoint:
116121
host: ${CONTROL_PLANE_ENDPOINT_IP}

hack/examples/bases/nutanix/cluster/kustomization.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ patches:
6666
# A Nutanix cluster uses SNAT for outbound traffic by default.
6767
# Because Dockerhub only sees a single request IP the rate limit gets hit for almost every cluster.
6868
# Add a patch to set imageRegistry with docker.io credentials.
69+
- target:
70+
kind: Cluster
71+
path: ../../../patches/dockerhub-image-registry.yaml
6972

7073
# Change the machineDeployments Class to match the other examples.
7174
- target:

0 commit comments

Comments
 (0)