Skip to content

Commit

Permalink
Replace test Harbor images with DockerHub images (antrea-io#6076)
Browse files Browse the repository at this point in the history
Replace test Harbor images with DockerHub images due to the impending unavailability
of projects.registry.vmware.com.

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
  • Loading branch information
XinShuYang committed Apr 10, 2024
1 parent ed325d0 commit 90b3710
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions build/charts/antrea/templates/simulator/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: antrea-agent
initContainers:
- name: init-inotify-limit
image: projects.registry.vmware.com/antrea/busybox:latest
image: antrea/ubuntu:22.04
command: ['sysctl', '-w', 'fs.inotify.max_user_instances=200']
securityContext:
privileged: true
Expand Down Expand Up @@ -71,7 +71,7 @@ spec:
- name: logs-volume
mountPath: /var/log
- name: hollow-kubelet
image: projects.registry.vmware.com/antrea/kubemark:v1.29.0
image: antrea/kubemark:v1.29.0
ports:
- containerPort: 4194
- containerPort: 10250
Expand Down Expand Up @@ -106,7 +106,7 @@ spec:
securityContext:
privileged: true
- name: hollow-proxy
image: projects.registry.vmware.com/antrea/kubemark:v1.29.0
image: antrea/kubemark:v1.29.0
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion ci/docker-registry
Original file line number Diff line number Diff line change
@@ -1 +1 @@
projects.registry.vmware.com
docker.io
2 changes: 1 addition & 1 deletion ci/jenkins/test-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function echoerr {
>&2 echo "$@"
}

DOCKER_REGISTRY="projects.registry.vmware.com"
DOCKER_REGISTRY=$(head -n1 "${WORKSPACE}/ci/docker-registry")
DEFAULT_WORKDIR="/var/lib/jenkins"
ANTREA_AGENT_KUBECONFIG="antrea-agent.kubeconfig"
ANTREA_AGENT_ANTREA_KUBECONFIG="antrea-agent.antrea.kubeconfig"
Expand Down
6 changes: 3 additions & 3 deletions ci/jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ function deliver_antrea {
${CLEAN_STALE_IMAGES}
${PRINT_DOCKER_STATUS}
if [[ ! "${TESTCASE}" =~ "e2e" && "${DOCKER_REGISTRY}" != "" ]]; then
docker pull "${DOCKER_REGISTRY}/antrea/sonobuoy-systemd-logs:v0.3"
docker tag "${DOCKER_REGISTRY}/antrea/sonobuoy-systemd-logs:v0.3" "sonobuoy/systemd-logs:v0.3"
docker pull "${DOCKER_REGISTRY}/antrea/systemd-logs:v0.4"
docker tag "${DOCKER_REGISTRY}/antrea/systemd-logs:v0.4" "antrea/systemd-logs:v0.4"
fi
chmod -R g-w build/images/ovs
chmod -R g-w build/images/base
Expand Down Expand Up @@ -768,7 +768,7 @@ function deliver_antrea {
rsync -avr --progress --inplace -e "ssh -o StrictHostKeyChecking=no" flow-aggregator.tar jenkins@[${IP}]:${WORKDIR}/flow-aggregator.tar
ssh -o StrictHostKeyChecking=no -n jenkins@${IP} "${CLEAN_STALE_IMAGES}; ${PRINT_DOCKER_STATUS}; docker load -i ${WORKDIR}/antrea-ubuntu.tar; docker load -i ${WORKDIR}/flow-aggregator.tar" || true
if [[ ! "${TESTCASE}" =~ "e2e" && "${DOCKER_REGISTRY}" != "" ]]; then
ssh -o StrictHostKeyChecking=no -n jenkins@${IP} "docker pull ${DOCKER_REGISTRY}/antrea/sonobuoy-systemd-logs:v0.3 ; docker tag ${DOCKER_REGISTRY}/antrea/sonobuoy-systemd-logs:v0.3 sonobuoy/systemd-logs:v0.3"
ssh -o StrictHostKeyChecking=no -n jenkins@${IP} "docker pull ${DOCKER_REGISTRY}/antrea/systemd-logs:v0.4 ; docker tag ${DOCKER_REGISTRY}/antrea/systemd-logs:v0.4 antrea/systemd-logs:v0.4"
fi
done
fi
Expand Down
18 changes: 9 additions & 9 deletions ci/kind/test-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ if $flow_visibility; then
fi

COMMON_IMAGES_LIST=("registry.k8s.io/e2e-test-images/agnhost:2.29" \
"projects.registry.vmware.com/antrea/nginx:1.21.6-alpine" \
"projects.registry.vmware.com/antrea/toolbox:1.3-0")
"antrea/nginx:1.21.6-alpine" \
"antrea/toolbox:1.3-0")

FLOW_VISIBILITY_IMAGE_LIST=("projects.registry.vmware.com/antrea/ipfix-collector:v0.9.0" \
"projects.registry.vmware.com/antrea/clickhouse-operator:0.21.0" \
"projects.registry.vmware.com/antrea/metrics-exporter:0.21.0" \
"projects.registry.vmware.com/antrea/clickhouse-server:23.4")
FLOW_VISIBILITY_IMAGE_LIST=("antrea/ipfix-collector:v0.9.0" \
"antrea/clickhouse-operator:0.21.0" \
"antrea/metrics-exporter:0.21.0" \
"antrea/clickhouse-server:23.4")
if $proxy_all; then
COMMON_IMAGES_LIST+=("registry.k8s.io/echoserver:1.10")
fi
Expand Down Expand Up @@ -347,9 +347,9 @@ function run_test {
$HELM template "$FLOW_VISIBILITY_CHART" --set "secureConnection.enable=true" | docker exec -i kind-control-plane dd of=/root/flow-visibility-tls.yml

curl -o $CH_OPERATOR_YML https://raw.githubusercontent.com/Altinity/clickhouse-operator/release-0.21.0/deploy/operator/clickhouse-operator-install-bundle.yaml
sed -i -e "s|\"image\": \"clickhouse/clickhouse-server:22.3\"|\"image\": \"projects.registry.vmware.com/antrea/clickhouse-server:23.4\"|g" $CH_OPERATOR_YML
sed -i -e "s|image: altinity/clickhouse-operator:0.21.0|image: projects.registry.vmware.com/antrea/clickhouse-operator:0.21.0|g" $CH_OPERATOR_YML
sed -i -e "s|image: altinity/metrics-exporter:0.21.0|image: projects.registry.vmware.com/antrea/metrics-exporter:0.21.0|g" $CH_OPERATOR_YML
sed -i -e "s|\"image\": \"clickhouse/clickhouse-server:22.3\"|\"image\": \"antrea/clickhouse-server:23.4\"|g" $CH_OPERATOR_YML
sed -i -e "s|image: altinity/clickhouse-operator:0.21.0|image: antrea/clickhouse-operator:0.21.0|g" $CH_OPERATOR_YML
sed -i -e "s|image: altinity/metrics-exporter:0.21.0|image: antrea/metrics-exporter:0.21.0|g" $CH_OPERATOR_YML
cat $CH_OPERATOR_YML | docker exec -i kind-control-plane dd of=/root/clickhouse-operator-install-bundle.yml
fi

Expand Down
2 changes: 1 addition & 1 deletion ci/kind/test-secondary-network-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fi

trap "quit" INT EXIT

IMAGE_LIST=("projects.registry.vmware.com/antrea/toolbox:1.3-0" \
IMAGE_LIST=("antrea/toolbox:1.3-0" \
"antrea/antrea-agent-ubuntu:latest" \
"antrea/antrea-controller-ubuntu:latest")

Expand Down
4 changes: 2 additions & 2 deletions ci/run-k8s-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
KUBE_CONFORMANCE_IMAGE_VERSION_OPTION=""
IMAGE_PULL_POLICY="Always"
CONFORMANCE_IMAGE_CONFIG_PATH="${THIS_DIR}/conformance-image-config.yaml"
SONOBUOY_IMAGE="projects.registry.vmware.com/sonobuoy/sonobuoy:v0.56.16"
SYSTEMD_LOGS_IMAGE="projects.registry.vmware.com/sonobuoy/systemd-logs:v0.4"
SONOBUOY_IMAGE="antrea/sonobuoy:v0.56.16"
SYSTEMD_LOGS_IMAGE="antrea/systemd-logs:v0.4"

_usage="Usage: $0 [--e2e-conformance] [--e2e-network-policy] [--e2e-focus <TestRegex>] [--e2e-skip <SkipRegex>]
[--kubeconfig <Kubeconfig>] [--kubernetes-version <ConformanceImageVersion>]
Expand Down
2 changes: 1 addition & 1 deletion hack/externalnode/sftp-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: sftp
image: projects.registry.vmware.com/antrea/sftp
image: antrea/sftp
imagePullPolicy: IfNotPresent
args: ["foo:pass:::upload"]

Expand Down
2 changes: 1 addition & 1 deletion multicluster/test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
gatewayNodeClientSuffix string = "gateway-client"
regularNodeClientSuffix string = "regular-client"

nginxImage = "projects.registry.vmware.com/antrea/nginx:1.21.6-alpine"
nginxImage = "antrea/nginx:1.21.6-alpine"
agnhostImage = "registry.k8s.io/e2e-test-images/agnhost:2.29"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
spec:
containers:
- name: clickhouse
image: projects.registry.vmware.com/antrea/clickhouse-server:23.4
image: antrea/clickhouse-server:23.4
imagePullPolicy: IfNotPresent
volumeMounts:
- name: clickhouse-configmap-volume
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ const (
flowAggregatorConfName = "flow-aggregator.conf"

agnhostImage = "registry.k8s.io/e2e-test-images/agnhost:2.29"
ToolboxImage = "projects.registry.vmware.com/antrea/toolbox:1.3-0"
mcjoinImage = "projects.registry.vmware.com/antrea/mcjoin:v2.9"
nginxImage = "projects.registry.vmware.com/antrea/nginx:1.21.6-alpine"
ToolboxImage = "antrea/toolbox:1.3-0"
mcjoinImage = "antrea/mcjoin:v2.9"
nginxImage = "antrea/nginx:1.21.6-alpine"
iisImage = "mcr.microsoft.com/windows/servercore/iis"
ipfixCollectorImage = "projects.registry.vmware.com/antrea/ipfix-collector:v0.9.0"
ipfixCollectorImage = "antrea/ipfix-collector:v0.9.0"

nginxLBService = "nginx-loadbalancer"

Expand Down

0 comments on commit 90b3710

Please sign in to comment.