Skip to content

Commit

Permalink
update e2e script for kustomize
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Khare <[email protected]>
  • Loading branch information
khareyash05 committed Aug 9, 2023
1 parent 3edb974 commit 4c25617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
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"
# 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
kubectl apply -f "${ROOT}/test/kustomize"
echo kubectl get all -n clusterpedia-system
kubectl get all -n clusterpedia-system
}
Expand Down
6 changes: 3 additions & 3 deletions test/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ resources:

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

0 comments on commit 4c25617

Please sign in to comment.