Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 kustomize for e2e tests #555

Closed
wants to merge 14 commits into from
16 changes: 2 additions & 14 deletions test/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,8 @@ function delete_cluster() {
# install the Clusterpedia into the kind cluster
function install_clusterpedia() {
kubectl apply -f "${ROOT}/deploy/crds"
Iceber marked this conversation as resolved.
Show resolved Hide resolved
# local charts will be removed, waiting for the kustomize way to be ready
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build "${ROOT}/charts/clusterpedia"
helm install clusterpedia "${ROOT}/charts/clusterpedia" \
--namespace clusterpedia-system \
--create-namespace \
--wait \
--set persistenceMatchNode=None \
--set clustersynchroManager.image.registry=localtest \
--set clustersynchroManager.image.repository=clustersynchro-manager-amd64 \
--set clustersynchroManager.image.tag=test \
--set apiserver.image.registry=localtest \
--set apiserver.image.repository=apiserver-amd64 \
--set apiserver.image.tag=test
load_image "${name}" localtest/controller-manager-amd64:test
khareyash05 marked this conversation as resolved.
Show resolved Hide resolved
kubectl apply -f "${ROOT}/test/kustomize"
khareyash05 marked this conversation as resolved.
Show resolved Hide resolved
echo kubectl get all -n clusterpedia-system
kubectl get all -n clusterpedia-system
}
Expand Down
16 changes: 16 additions & 0 deletions test/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../kustomize

images:
- name: ghcr.io/clusterpedia-io/clusterpedia/apiserver
newName: localtest/apiserver-amd64
newTag: test
- name: ghcr.io/clusterpedia-io/clusterpedia/clustersynchro-manager
newName: localtest/clustersynchro-manager-amd64
newTag: test
- name: ghcr.io/clusterpedia-io/clusterpedia/controller-manager
newName: localtest/controller-manager-amd64
newTag: test
Loading