k8gb-io/k8gb

Helm Chart: imagePullSecrets is array of key/value pairs in ServiceAccount but an array of strings in schema definition

ErikLundJensen opened this issue · 1 comments

When I try to add imagePullSecrets I get this error:
global.imagePullSecrets.0: Invalid type. Expected: string, given: object

From documentation in values.yaml where imagePullSecrets is an Array of key/value pairs.

global:
  # -- Reference to one or more secrets to be used when pulling images 
  # ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  imagePullSecrets: []
  # - name: "image-pull-secret

Definition from the schema json:

"Global": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "imagePullSecrets": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "minLength": 1
                    }
                }
            },
            "title": "Global"
        },

I expected that the schema to specify an array of key/values.

right, name: "image-pull-secret" != "image-pull-secret"