Skip to content

feat: add imagePullSecret reference configuration option#202

Open
schaer-bgs wants to merge 1 commit into
wso2:mainfrom
schaer-bgs:feature/imagepullsecret
Open

feat: add imagePullSecret reference configuration option#202
schaer-bgs wants to merge 1 commit into
wso2:mainfrom
schaer-bgs:feature/imagepullsecret

Conversation

@schaer-bgs

Copy link
Copy Markdown

Purpose

Currently imagePullSecret requires a username/password in the values.yaml and does not allow to reference custom (encrypted) secrets.

Goals

Add a imagePullSecret.name property which allows to reference custom secrets while keeping backwards compatability.

Approach

Adds conditionals to either set the imagePullSecret name or use the prior assembled/generated secret.

@kavindasr kavindasr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution. I have added a few comments. The same applies to the other components as well.

{{- end }}
{{- if and .Values.wso2.deployment.image.imagePullSecrets.enabled }}
imagePullSecrets:
{{- if .Values.wso2.deployment.image.imagePullSecrets.name }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format indentations

# Specify image pull secrets for private registries
imagePullSecrets:
enabled: false
name: ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment above

Comment thread all-in-one/README.md
| wso2.deployment.image.digest | string | `""` | Docker image digest |
| wso2.deployment.image.imagePullPolicy | string | `"Always"` | Refer to the Kubernetes documentation on updating images (https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| wso2.deployment.image.imagePullSecrets | object | `{"enabled":false,"password":"","username":""}` | Container registry credentials. Specify image pull secrets for private registries |
| wso2.deployment.image.imagePullSecrets | object | `{"enabled":false,name:"","password":"","username":""}` | Container registry credentials. Specify image pull secrets or a reference to secret for private registries |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use helm-docs command to generate docs

{{- end }}
{{- if and .Values.wso2.deployment.image.imagePullSecrets.enabled }}
imagePullSecrets:
{{- if .Values.wso2.deployment.image.imagePullSecrets.name }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format

@kavindasr

kavindasr commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@schaer-bgs Also, please include the test results from running helm template.

PS:
Also update the example YAMLs files in resources/ folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants