apiVersion: v1
kind: Config
clusters:
  - name: bytelizard-k8s
    cluster:
      server: https://k8s-api.bytelizard.net:6443
      certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJpRENDQVMrZ0F3SUJBZ0lRYi9UcmYrcTIyYWtGMk1TL3dqQmZkekFLQmdncWhrak9QUVFEQWpBVk1STXcKRVFZRFZRUUtFd3ByZFdKbGNtNWxkR1Z6TUI0WERUSTJNRFl4TWpBd01qTTBOMW9YRFRNMk1EWXdPVEF3TWpNMApOMW93RlRFVE1CRUdBMVVFQ2hNS2EzVmlaWEp1WlhSbGN6QlpNQk1HQnlxR1NNNDlBZ0VHQ0NxR1NNNDlBd0VICkEwSUFCRCtxNlFTQzBsVzNpcFRhS0ZqaExUN3FxWC9VeFVPdTNQNkNDTlNzc0FmWGQxQUdSa2xLUzdxd0dtWTkKYk83RnJocmk2NUxwaFkzOVV2c1UrNE45WjNDallUQmZNQTRHQTFVZER3RUIvd1FFQXdJQ2hEQWRCZ05WSFNVRQpGakFVQmdnckJnRUZCUWNEQVFZSUt3WUJCUVVIQXdJd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFCkZnUVUwemRZMEN5THhKMmdZajBudk9UNW5MOERjUkF3Q2dZSUtvWkl6ajBFQXdJRFJ3QXdSQUlnZlZHRlB4Y2YKY2YrbWc0Ly8yWWFxZGJzMldJTlZDQlREcVhKSisyQi84N3dDSURNU2w1eTgyaVZkZFlkeG4vVEU2VnhDNVpFZgpYcmhLRkJSamhKeWJzQ0w5Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
contexts:
  - name: bytelizard-k8s
    context:
      cluster: bytelizard-k8s
      user: bytelizard-k8s-oidc
current-context: bytelizard-k8s
users:
  - name: bytelizard-k8s-oidc
    user:
      exec:
        apiVersion: client.authentication.k8s.io/v1
        interactiveMode: IfAvailable
        command: kubectl
        args:
          - oidc-login
          - get-token
          - --oidc-issuer-url=https://auth.bytelizard.net/application/o/kubernetes/
          - --oidc-client-id=kubernetes
          - --oidc-use-pkce
          - --oidc-extra-scope=email
          - --oidc-extra-scope=profile
          - --oidc-extra-scope=groups
          - --oidc-extra-scope=offline_access
