We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What did you do? subscription-config VolumeMount not replace existing item by name
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: minio spec: channel: stable name: minio-operator source: redhat-certified-operators sourceNamespace: olm config: env: - name: OPERATOR_STS_ENABLED value: "off" - name: MINIO_OPERATOR_RUNTIME value: "Rancher" volumes: - name: tmp projected: defaultMode: 420 sources: - secret: items: - key: private.key path: private.key - key: public.crt path: public.crt name: console-tls optional: true volumeMounts: - name: tmp mountPath: /tmp/certs
What did you expect to see? OLM operator replace a mountPath in existing item by name
What did you see instead? Under which circumstances? OLM operator trying to add new item with existing name
Environment
Possible Solution Suggested Method
func InjectVolumeMountsIntoDeployment(podSpec *corev1.PodSpec, volumeMounts []corev1.VolumeMount) error { if podSpec == nil { return errors.New("no pod spec provided") } for i := range podSpec.Containers { container := &podSpec.Containers[i] container.VolumeMounts = mergeVolumeMounts(container.VolumeMounts, volumeMounts) } return nil }
Additional context Original Manifest Minio Operator
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
What did you do?
subscription-config
VolumeMount not replace existing item by name
What did you expect to see?
OLM operator replace a mountPath in existing item by name
What did you see instead? Under which circumstances?
OLM operator trying to add new item with existing name
Environment
Possible Solution
Suggested Method
Additional context
Original Manifest Minio Operator
The text was updated successfully, but these errors were encountered: