This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
feat: added capability to configure staging serviceaccount name #1494
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the capability to configure servicaccountname for eirini staging job and eirini apps.
Description
Add to default eirini configuration the entry
staging_service_account
for configuring eirini staging job serviceaccount name. Also updated to allow same configuration forapplication_service_account
in default eirini configuration for consistency.Motivation and Context
We’ve been trying to test kubecf 2.5.8 and noticed that the eirini staging jobs doesn’t use
serviceAccountName: eirini
anymore and also annotationseccomp.security.alpha.kubernetes.io/pod: runtime/default
has been added. Since we’re running on OpenShift, the setting of the annotation causes permission denied errors and we can’t fix this because there’s noserviceAccountName
to configure/attach a SecurityContextConstraints for.It was suggested by eirini-dev to configure field
staging_service_account
in order to fix this.How Has This Been Tested?
Tested locally using kubecf version
2.5.8
and cf-operator version6.1.17+0.gec409fd7
.Screenshot of serviceaccountname in staging job:
Which allows us to configure a SecurityContextConstraints and push an app:
Screenshots (if appropriate):
Types of changes
Checklist: