Skip to content

Conversation

spy16
Copy link
Contributor

@spy16 spy16 commented Mar 1, 2023

Fixed the kube config validation schema to enforce:

  1. host must be present and should be a valid URI
  2. insecure optional (defaults to false)
  3. either token OR client_key, client_certificate pair must be present.
  4. If insecure=false and token is not used, then client_ca_certificate must be present.

@spy16 spy16 force-pushed the fix/kube-schema branch from 55c3de0 to 1eebb42 Compare March 1, 2023 05:59
@spy16 spy16 requested a review from ishanarya0 March 1, 2023 06:01
@spy16 spy16 merged commit 9e4c9be into main Mar 1, 2023
@spy16 spy16 deleted the fix/kube-schema branch March 1, 2023 07:39
"type": "string"
},
"cluster_ca_certificate": {
"client_ca_certificate": {
Copy link
Member

Choose a reason for hiding this comment

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

In go struct this is mentioned as cluster_ca_certificate

Copy link
Member

Choose a reason for hiding this comment

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

any specific reason we chose to rename this field?

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.

3 participants