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

NestedControlPlane & NestedCluster Controllers #43

Merged

Conversation

christopherhein
Copy link
Member

@christopherhein christopherhein commented May 4, 2021

This PR adds in the NCP and NC controllers for orchestrating the control plane creation by setting up all PKI and creating necessary components.

TODO:

  • Create NestedControlPlane controller
  • Create NestedCluster controller
  • Generate CAs for all components
  • Generate client certs from component CAs
  • Setup status management
  • Verify clusterctl works for kubeconfigs
  • Write tests

Related

closes #33
closes #32

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 4, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 4, 2021
@christopherhein christopherhein changed the title [WIP] NestedControlPlane & NestedCluster Controllers NestedControlPlane & NestedCluster Controllers May 5, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 5, 2021
@christopherhein
Copy link
Member Author

/assign @charleszheng44 @Fei-Guo

@Fei-Guo
Copy link

Fei-Guo commented May 6, 2021

LGTM. I will leave to @charleszheng44 to give another pass.

@@ -71,29 +78,64 @@ spec:
periodSeconds: 2
timeoutSeconds: 30
volumeMounts:
- mountPath: /etc/kubernetes/pki/proxy/ca
Copy link
Contributor

Choose a reason for hiding this comment

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

does the apiserver need the proxy ca?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not with how it's configured in here right now. I can remove this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated and removed these unused mounts.

Signed-off-by: Chris Hein <me@chrishein.com>
Signed-off-by: Chris Hein <me@chrishein.com>
Copy link
Contributor

@charleszheng44 charleszheng44 left a comment

Choose a reason for hiding this comment

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

LGTM

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: charleszheng44, christopherhein

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [charleszheng44,christopherhein]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@charleszheng44
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 6, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3a53ec2 into kubernetes-sigs:master May 6, 2021
@christopherhein christopherhein deleted the feature/ncp-controller branch May 6, 2021 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create NestedControlPlane controller and types Create Controller for NestedCluster
4 participants