Skip to content

Commit

Permalink
Merge pull request #162 from cyberark/fix-conjur-ns-in-example
Browse files Browse the repository at this point in the history
Eliminates CONJUR_NAMESPACE undefined errors in KinD example
  • Loading branch information
diverdane authored Aug 6, 2021
2 parents 02dea74 + 65fe6fc commit 2bf28f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ get_master_pod_name() {
}

has_namespace() {
if kubectl get namespace "$1" > /dev/null; then
if kubectl get namespace "$1" &>/dev/null; then
true
else
false
Expand Down
6 changes: 3 additions & 3 deletions examples/kubernetes-in-docker/0_export_env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}"
# Helm install options
export HELM_INSTALL_CONJUR="${HELM_INSTALL_CONJUR:-true}"
export HELM_RELEASE="${HELM_RELEASE:-conjur-oss}"
# The Conjur namespace name might be set with CONJUR_NAMESPACE_NAME in other projects
# so look for both. Use CONJUR_NAMESPACE_NAME if both are set.
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE_NAME:-$CONJUR_NAMESPACE}"
# The Conjur namespace name might be set with CONJUR_NAMESPACE_NAME in other
# projects so look for both. Use CONJUR_NAMESPACE_NAME if both are set.
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE:-conjur-oss}"
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE_NAME:-$CONJUR_NAMESPACE}"
export CONJUR_ACCOUNT="${CONJUR_ACCOUNT:-myConjurAccount}"
export CONJUR_LOG_LEVEL="${CONJUR_LOG_LEVEL:-info}"

Expand Down
6 changes: 3 additions & 3 deletions examples/openshift/0_export_env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}"
# Helm install options
export HELM_INSTALL_CONJUR="${HELM_INSTALL_CONJUR:-true}"
export HELM_RELEASE="${HELM_RELEASE:-conjur-oss}"
# The Conjur namespace name might be set with CONJUR_NAMESPACE_NAME in other projects
# so look for both. Use CONJUR_NAMESPACE_NAME if both are set.
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE_NAME:-$CONJUR_NAMESPACE}"
# The Conjur namespace name might be set with CONJUR_NAMESPACE_NAME in other
# projects so look for both. Use CONJUR_NAMESPACE_NAME if both are set.
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE:-conjur-oss}"
export CONJUR_NAMESPACE="${CONJUR_NAMESPACE_NAME:-$CONJUR_NAMESPACE}"
export CONJUR_ACCOUNT="${CONJUR_ACCOUNT:-myConjurAccount}"
export CONJUR_LOG_LEVEL="${CONJUR_LOG_LEVEL:-info}"

Expand Down

0 comments on commit 2bf28f3

Please sign in to comment.