Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Remove helm-op install from e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan authored and 2opremio committed Jan 13, 2020
1 parent 2ce687b commit ece6894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion test/e2e/10_helm_chart.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function setup() {
# Test that the resources from https://github.com/fluxcd/flux-get-started are deployed
poll_until_true 'namespace demo' 'kubectl describe ns/demo'
poll_until_true 'workload podinfo' 'kubectl -n demo describe deployment/podinfo'
poll_until_true 'mongodb HelmRelease' 'kubectl -n demo describe helmrelease/mongodb'
}

function teardown() {
Expand Down
13 changes: 3 additions & 10 deletions test/e2e/lib/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ function uninstall_tiller() {
}

function install_flux_with_helm() {
local create_crds='true'
if kubectl get crd fluxhelmreleases.helm.integrations.flux.weave.works helmreleases.flux.weave.works > /dev/null 2>&1; then
# CRDs existed, don't try to create them
echo 'CRDs existed, setting helmOperator.createCRD=false'
create_crds='false'
fi

kubectl apply -f https://raw.githubusercontent.com/fluxcd/helm-operator/v1.0.0-rc4/deploy/flux-helm-release-crd.yaml

helm install --name flux --wait \
--namespace "${FLUX_NAMESPACE}" \
Expand All @@ -39,17 +35,14 @@ function install_flux_with_helm() {
--set git.config.secretName=gitconfig \
--set git.config.enabled=true \
--set-string git.config.data="${GITCONFIG}" \
--set helmOperator.create=true \
--set helmOperator.git.secretName=flux-git-deploy \
--set helmOperator.createCRD="${create_crds}" \
--set registry.excludeImage=* \
--set-string ssh.known_hosts="${KNOWN_HOSTS}" \
"${FLUX_ROOT_DIR}/chart/flux"
}

function uninstall_flux_with_helm() {
helm delete --purge flux > /dev/null 2>&1
kubectl delete crd helmreleases.flux.weave.works > /dev/null 2>&1
kubectl delete crd helmreleases.fluxcd.io > /dev/null 2>&1
}

fluxctl_install_cmd="fluxctl install --git-url=ssh://git@gitsrv/git-server/repos/cluster.git --git-email=foo"
Expand Down

0 comments on commit ece6894

Please sign in to comment.