Skip to content

Commit

Permalink
Update gen_ke_certs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
KoppulaRajender authored Oct 4, 2021
1 parent 14240cd commit 0b1d032
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ EOF
}

_prepare_ke() {
if eval "curl https://raw.githubusercontent.com/aquasecurity/deployments/6.5/enforcers/kube_enforcer/kubernetes_and_openshift/manifests/kube_enforcer/001_kube_enforcer_config.yaml"; then
_rootCA=(eval "cat rootCA.crt | base64 | tr -d '\n' | tr -d '\r'")
if `curl https://raw.githubusercontent.com/aquasecurity/deployments/6.5/enforcers/kube_enforcer/kubernetes_and_openshift/manifests/kube_enforcer_advanced/001_kube_enforcer_config.yaml -o "001_kube_enforcer_config.yaml"`; then
_rootCA=`cat rootCA.crt | base64 | tr -d '\n' | tr -d '\r'`
if `sed -i'.original' "s/caBundle:/caBundle\:\ $_rootCA/g" 001_kube_enforcer_config.yaml`; then
printf "\nInfo: Successfully prepared 001_kube_enforcer_config.yaml manifest file.\n"
_deploy_ke_admin
Expand Down

0 comments on commit 0b1d032

Please sign in to comment.