Closed rafaeltuelho closed 2 months ago
@rafaeltuelho : Can you refer to this documentation and make sure all the required parameters are added correctly. On a quick look, the below configuration is missing.
artifactory:
setSecurityContext: false
@shahiinn if you look at the CHANGELOG this key artifactory.setSecurityContext
was renamed to artifactory.podSecurityContext
. As you can see in my values.yaml,
I'm setting it, but it has no effect on the deployment.
artifactory:
podSecurityContext:
enabled: false
@rafaeltuelho : You are right. Sorry for the wrong guidance.
I guess you need to add the configuration within the parent artifactory
block.
something like :
artifactory:
artifactory:
podSecurityContext:
enabled: false
I don't thnk so. Looking at the original chart values this key is under artifactory
at the global level https://github.com/jfrog/charts/blob/128fea59fc39a754853e75365a9bf84782438cde/stable/artifactory/values.yaml
@rafaeltuelho : The original chart you have mentioned here is being used as a dependent chart for the oss chart hence the whole changes that need to be performed for the dependent chart need to be mentioned within a block of it. (ref)
for example : if in the original chart, we are providing a config like below
containerSecurityContext:
enabled: false
artifactory:
podSecurityContext:
enabled: false
postgresql:
securityContext:
enabled: false
containerSecurityContext:
enabled: false
nginx:
podSecurityContext:
enabled: false
containerSecurityContext:
enabled: false
If the same changes need to be done to a dependent chart, the equivalent block should be like
artifactory:
containerSecurityContext:
enabled: false
artifactory:
podSecurityContext:
enabled: false
postgresql:
securityContext:
enabled: false
containerSecurityContext:
enabled: false
nginx:
podSecurityContext:
enabled: false
containerSecurityContext:
enabled: false
Good catch, @shahiinn! I will give it a try and update the results here.
It worked here @shahiinn ! Thanks for looking at this. At the end was the dammed YAML indentation :-)
With that I believe this one can be closed!
Is this a request for help?: no
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Version of Helm and Kubernetes: Openshift 4.14.15 (Kubernetes v1.27.11+ec42b99) Helm v3.15.0
Which chart: artifactory-oss
Which product license (Enterprise/Pro/oss): oss
JFrog support reference (if already raised with support team): n/a
What happened: artifactory STS fail to create initContainers due to seccomp not defined
What you expected to happen: properly deployed
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know: my
values.yaml