snowdrop/k8s-infra

Support to patch/provide another kind config

cmoulliard opened this issue · 2 comments

Request

In some cases, it is needed to patch the kubeadmConfigPatches or let's say to change the default kind config which is used when we install kind using the bash script of this project. That would be create to support such an option

Example of customized kind config which should be applied to of our own config (if we can)

kind create cluster --config - <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
kubeadmConfigPatches:
- |-
  kind: ClusterConfiguration
  apiServer:
    extraArgs:
      oidc-client-id: kube
      oidc-issuer-url: https://keycloak.127.0.0.1.nip.io/realms/master
      oidc-username-claim: email
      oidc-groups-claim: groups
EOF

I'm not sure how to pass each of the custom properties to be collected from the script, have you thought of a way? Provided by a json or a yaml file?

To be checked of course but I think that such extraArgs (= this is a Yaml array field) could be defined like this: https://stackoverflow.com/questions/23657086/yaml-multi-line-arrays @jacobdotcosta