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

Unbound variable error on stop #117

Open
sigalsax opened this issue Apr 19, 2020 · 0 comments
Open

Unbound variable error on stop #117

sigalsax opened this issue Apr 19, 2020 · 0 comments

Comments

@sigalsax
Copy link
Contributor

When running integration tests in the secrets-provider-for-k8s, a Conjur environment is deployed in K8s. When an error occurs or the tests have run to completion, the environment is stopped which removes the conjur environment and any created namespaces and roles.

Clean up cannot take place to completion due to the following error:
../kubernetes-conjur-deploy-94a25c3c-0/stop: line 8: cli: unbound variable

The error points to here:
$cli delete namespace $CONJUR_NAMESPACE_NAME

Therefore a simple, export cli= in the code below should do the trick

if [ $PLATFORM = 'kubernetes' ]; then
    cli=kubectl
elif [ $PLATFORM = 'openshift' ]; then
    cli=oc

If we do not make this addition the OC cluster will be overloaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant