Comments (6)
@ilhaan, Thank you for the excellent posting of the issue.
Indeed, I've confirmed that this is a bug. I'll get a fix and new release out in the next few hours.
Thanks!
tls
from helm-charts.
The issue will be resolved by having the workload only issue one volumes:
in the yaml, as volumes contains an array, rather than a map. This caused only the last volumes: to be used which caused the issue observed.
Fix is being tested now, and a release should show up shortly.
from helm-charts.
@ilhaan , Thanks for the comment back.
Yes, I did miss the volumeMounts fix. Will get that fixed and push out a new release in next couple of hours.
Thanks again,
tls
from helm-charts.
Fix for both volumes: and volumeMounts: have been released in version 0.5.5
from helm-charts.
Adding helm template
outputs to show the above described behavior. I used the ping-devops-0.5.3
tagged release of the repo for these.
- Custom
values.yaml
with bothsecretVolumes
andconfigMapVolumes
defined forpingfederate-admin
:
➜ ping-devops git:(29821d0) ✗ cat values-both.yaml
pingfederate-admin:
enabled: true
secretVolumes:
pingfederate-license:
items:
license: /opt/in/instance/server/default/conf/pingfederate.lic
configMapVolumes:
pingfederate-props:
items:
pf-props: /opt/in/etc/pingfederate.properties
➜ ping-devops git:(29821d0) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-both.yaml | yq '.spec.template.spec.volumes'
[
{
"configMap": {
"items": [
{
"key": "pf-props",
"path": "pingfederate.properties"
}
],
"name": "pingfederate-props"
},
"name": "pingfederate-props"
}
]
- Similar values file with only
configMapVolumes
defined:
➜ ping-devops git:(29821d0) ✗ cat values-cm.yaml
pingfederate-admin:
enabled: true
configMapVolumes:
pingfederate-props:
items:
pf-props: /opt/in/etc/pingfederate.properties
➜ ping-devops git:(29821d0) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-cm.yaml | yq '.spec.template.spec.volumes'
[
{
"configMap": {
"items": [
{
"key": "pf-props",
"path": "pingfederate.properties"
}
],
"name": "pingfederate-props"
},
"name": "pingfederate-props"
}
]
- Values file with only
secretVolumes
defined:
➜ ping-devops git:(29821d0) ✗ cat values-sec.yaml
pingfederate-admin:
enabled: true
secretVolumes:
pingfederate-license:
items:
license: /opt/in/instance/server/default/conf/pingfederate.lic
➜ ping-devops git:(29821d0) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-sec.yaml | yq '.spec.template.spec.volumes'
[
{
"name": "pingfederate-license",
"secret": {
"items": [
{
"key": "license",
"path": "pingfederate.lic"
}
],
"secretName": "pingfederate-license"
}
}
]
- As mentioned in my previous post, I tested the same reversing the order of
configMapVolumes
andsecretVolumes
invalues.yaml
. Output shown below:
➜ ping-devops git:(29821d0) ✗ cat values-reverse.yaml
pingfederate-admin:
enabled: true
configMapVolumes:
pingfederate-props:
items:
pf-props: /opt/in/etc/pingfederate.properties
secretVolumes:
pingfederate-license:
items:
license: /opt/in/instance/server/default/conf/pingfederate.lic
➜ ping-devops git:(29821d0) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-reverse.yaml | yq '.spec.template.spec.volumes'
[
{
"configMap": {
"items": [
{
"key": "pf-props",
"path": "pingfederate.properties"
}
],
"name": "pingfederate-props"
},
"name": "pingfederate-props"
}
]
Seems to me that there is an issue here:
helm-charts/charts/ping-devops/templates/pinglib/_workload.tpl
Lines 291 to 312 in 29821d0
from helm-charts.
@tsigle Thanks for the quick update! Your fix seems to have fixed volumes
, but I'm seeing the same issue with volumeMount
:
volumes
:
➜ ping-devops git:(3cfbc7d) ✗ cat values-both.yaml
pingfederate-admin:
enabled: true
secretVolumes:
pingfederate-license:
items:
license: /opt/in/instance/server/default/conf/pingfederate.lic
configMapVolumes:
pingfederate-props:
items:
pf-props: /opt/in/etc/pingfederate.properties
➜ ping-devops git:(3cfbc7d) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-both.yaml | yq '.spec.template.spec.volumes'
[
{
"name": "pingfederate-license",
"secret": {
"items": [
{
"key": "license",
"path": "pingfederate.lic"
}
],
"secretName": "pingfederate-license"
}
},
{
"configMap": {
"items": [
{
"key": "pf-props",
"path": "pingfederate.properties"
}
],
"name": "pingfederate-props"
},
"name": "pingfederate-props"
}
]
- But only one
volumeMount
:
➜ ping-devops git:(3cfbc7d) ✗ helm template -s templates/pingfederate-admin/workload.yaml . -f values-both.yaml | yq '.spec.template.spec.containers[].volumeMounts'
[
{
"mountPath": "/opt/in/etc/pingfederate.properties",
"name": "pingfederate-props",
"readOnly": true,
"subPath": "pingfederate.properties"
}
]
from helm-charts.
Related Issues (20)
- Update default global.image.tag to 2112
- Enabling Remote Based Access Control(RBAC) in PingFederate Helm Charts HOT 2
- Update default global.image.tag to 2201
- Api Version conditional logic not working on ingresss. HOT 1
- Use existing service account for rbac doesn't work HOT 1
- Unable to download Helm Chart 0.9.7 from terraform HOT 1
- pingfederate admin is not recognizing the datastore HOT 1
- how to work with topologySpreadConstraints HOT 5
- volumeMount: mountPath value considered as a directory HOT 1
- Pingfederate StatefulSet persistentvolume creation HOT 1
- PD ldaps:// url not working for SSL encryption HOT 1
- Don't Set Deployment Replicas When Autoscaling HOT 1
- Universally Handle SemVer Pre-Release Versions for EKS HOT 1
- SemVer selecting autoscaling/v2beta2 rather than autoscaling/v2 HOT 5
- Unable to annotate PVCs HOT 8
- ingress.class deprecated - Missing support for ingressClassName HOT 3
- upgrade to version 10 HOT 4
- PODs are not getting the annotations HOT 8
- Persistent Volume is being created even through enabled=false is set. HOT 1
- Update the pingtoolkit image in PF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.