-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bugfixes: Enterprise-in-GKE test not deploying test apps #452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
@@ -22,9 +22,7 @@ data: | |||
authnK8sClusterRole: {{ .Values.authnK8s.clusterRole.name | default "conjur-clusterrole" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to remove the conditional for authnK8sClusterRole:
field as well.
@@ -227,6 +227,7 @@ elif [[ "$CONJUR_PLATFORM" == "gke" ]]; then | |||
eval "$conjur_init" | |||
run_command_with_platform "$conjur_prep" | |||
run_command_with_platform "$cluster_prep" | |||
run_command_with_platform "$test_app_workflow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
I think we want to remove the conditional for authnK8sClusterRole
field as well.
These fields were only included if the Cluster Prep Helm chart created the corresponding object, but they are required in every case: - authnK8sServiceAccount - authnK8sClusterRole
e20aa5d
to
6276346
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!
Desired Outcome
In recent CI runs, the stage running end-to-end tests against Conjur Enterprise in GKE succeed without installing the Namespace Prep Helm chart or deploying the test apps.
From a passing Jenkins run:
Updating this led to another bug:
Jenkins logs:
The
authnK8sServiceAccount
field in the Golden ConfigMap template is wrapped in a conditional, and is only created if the Cluster Prep Helm chart was told to create a serviceAccount. The chart'svalues.yml
file states:In cases where
authnK8s.serviceAccount.create
is set tofalse
, the providedname
was not being used for theauthnK8sServiceAccount
field in the Golden ConfigMap.Implemented Changes
authnK8s.serviceAccount.create
is set tofalse
, the Golden ConfigMap template usesauthnK8s.serviceAccount.name
to fill itsauthnK8sServiceAccount
field.Connected Issue/Story
Resolves #[relevant GitHub issue(s), e.g. 76]
CyberArk internal issue link: insert issue ID
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security