Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add k8s master table yang model #12331

Merged

Conversation

lixiaoyuner
Copy link
Contributor

Signed-off-by: Yun Li yunli1@microsoft.com

Why I did it

Add k8s master table yang model

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Yun Li <yunli1@microsoft.com>
@lixiaoyuner lixiaoyuner force-pushed the add_k8s_master_table_yang_model branch from 295a708 to c7798f9 Compare October 10, 2022 07:31

leaf ip {
description "Kubernetes api server endpoint";
type string;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use IPAddress type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be IPAddress type and DNS domain type, currently use inet:host to cover both of them.

description "This configuration identicates it will download kubernetes
CA by http other than https";
type stypes:boolean_type;
default "true";
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be false too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently sonic join logic is to download k8a default ca.crt and combine it with local ame certificate, we get the kubeconfig credential. The default ca.crt is stored in k8s configmap, we download it from apiserver endpoint, and sonic impossibly have the default ca.crt, but if sonic want to establish secure connection with apiserver, sonic needs k8s default ca.crt. So, the downloading k8s default ca request can only be insecure currently. So, I set the default value "true".

@renukamanavalan
Copy link
Contributor

@praveen-li, Please review this PR.

@qiluo-msft qiluo-msft added the YANG YANG model related changes label Oct 10, 2022
@ganglyu
Copy link
Contributor

ganglyu commented Oct 10, 2022

Would you please update doc/Configuration.md?

@lixiaoyuner
Copy link
Contributor Author

Would you please update doc/Configuration.md?

Updated

@lixiaoyuner lixiaoyuner merged commit 51eac0b into sonic-net:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
YANG YANG model related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[yang] Need Yang for KUBERNETES_MASTER table
4 participants