k8s-infra icon indicating copy to clipboard operation
k8s-infra copied to clipboard

Support to patch/provide another kind config

Open cmoulliard opened this issue 2 years ago • 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

cmoulliard avatar Aug 23 '23 09:08 cmoulliard

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?

jacobdotcosta avatar Aug 30 '23 14:08 jacobdotcosta

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

cmoulliard avatar Sep 06 '23 08:09 cmoulliard