Skip to content

Commit

Permalink
test: create helm-chart-bundle-initializer image for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Dec 5, 2024
1 parent f01a20e commit 7476481
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:
matrix:
config:
- {"provider": "Docker", "kubernetesVersion": "v1.29.9"}
# - {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
# - {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
- {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
- {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
- {"provider": "Nutanix", "kubernetesVersion": "v1.30.5", "osImage": "nkp-rocky-9.4-release-1.30.5-20240930171619"}
# - {"provider": "AWS", "kubernetesVersion": "v1.29.6"}
fail-fast: false
Expand Down
15 changes: 12 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ before:
$(helm template {{ .ProjectName }} ./charts/{{ .ProjectName }} \
--namespace caren-system \
--set-string image.tag=v{{ trimprefix .Version "v" }}{{ if .IsSnapshot }}-{{ .Runtime.Goarch }}{{ end }} \
--set-string helmRepository.images.bundleInitializer.tag=v{{ trimprefix .Version "v" }}{{ if .IsSnapshot }}-{{ .Runtime.Goarch }} \
--set-string image.repository={{ .Env.LOCAL_IMAGE_REGISTRY }}/{{ .ProjectName }}{{ end }} \
--set-string helmRepository.images.bundleInitializer.tag=v{{ trimprefix .Version "v" }}{{ if .IsSnapshot }}-{{ .Runtime.Goarch }}{{ end }} \
{{ if .IsSnapshot }}--set-string image.repository={{ .Env.LOCAL_IMAGE_REGISTRY }}/{{ .ProjectName }}{{ end }} \
{{ if .IsSnapshot }}--set-string helmRepository.images.bundleInitializer.repository={{ .Env.LOCAL_IMAGE_REGISTRY }}/cluster-api-runtime-extensions-helm-chart-bundle-initializer{{ end }} \
)
EOF'
- sed -i -e 's/\${/$${/g' -e 's/v0.0.0-dev/v{{ trimprefix .Version "v" }}/g' runtime-extensions-components.yaml
Expand Down Expand Up @@ -96,8 +97,16 @@ builds:
--platform linux/{{ .Arch }} \
-t v{{ trimprefix .Version "v" }}-{{ .Arch }} \
./cmd
docker buildx build \
--platform linux/{{ .Arch }} \
-t {{ .Env.LOCAL_IMAGE_REGISTRY }}/cluster-api-runtime-extensions-helm-chart-bundle-initializer:v{{ trimprefix .Version "v" }}-{{ .Arch }} \
-f ./hack/addons/helm-chart-bundler/Dockerfile \
--load \
.
if [ {{ .Env.LOCAL_IMAGE_REGISTRY }} != "ko.local" ]; then
docker push {{ .Env.LOCAL_IMAGE_REGISTRY }}/cluster-api-runtime-extensions-helm-chart-bundle-initializer:v{{ trimprefix .Version "v" }}-{{ .Arch }}
fi
fi'
archives:
- name_template: '{{ .ProjectName }}_v{{ trimprefix .Version "v" }}_{{ .Os }}_{{ .Arch }}'
builds:
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/config/caren.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ managementClusterName: caren-e2e
images:
- name: ${LOCAL_IMAGE_REGISTRY}/cluster-api-runtime-extensions-nutanix:${E2E_IMAGE_TAG}
loadBehavior: mustLoad
- name: ghcr.io/nutanix-cloud-native/cluster-api-runtime-extensions-helm-chart-bundle-initializer:${E2E_IMAGE_TAG}
- name: ${LOCAL_IMAGE_REGISTRY}/cluster-api-runtime-extensions-helm-chart-bundle-initializer:${E2E_IMAGE_TAG}
loadBehavior: mustLoad

providers:
Expand Down Expand Up @@ -211,7 +211,7 @@ variables:
# DOCKER_HUB_PASSWORD: ""

intervals:
default/wait-controllers: ["3m", "10s"]
default/wait-controllers: ["10m", "10s"]
default/wait-cluster: ["10m", "10s"]
default/wait-control-plane: ["10m", "10s"]
default/wait-worker-nodes: ["10m", "10s"]
Expand Down
7 changes: 4 additions & 3 deletions test/e2e/self_hosted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ var _ = Describe("Self-hosted", Serial, func() {
WaitForAddonsToBeReadyInWorkloadCluster(
ctx,
WaitForAddonsToBeReadyInWorkloadClusterInput{
AddonsConfig: addonsConfig,
ClusterProxy: proxy,
WorkloadCluster: workloadCluster,
AddonsConfig: addonsConfig,
ClusterProxy: proxy,
WorkloadCluster: workloadCluster,
InfrastructureProvider: lowercaseProvider,
DeploymentIntervals: e2eConfig.GetIntervals(
flavour,
"wait-deployment",
Expand Down

0 comments on commit 7476481

Please sign in to comment.