Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

NestedControlPlane & NestedCluster Controllers #43

Merged

Conversation

christopherhein
Copy link
Contributor

@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 force-pushed the feature/ncp-controller branch from dfe5aff to 9d21451 Compare May 5, 2021 07:41
@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
Contributor 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
Contributor 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
Contributor 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.

@christopherhein christopherhein force-pushed the feature/ncp-controller branch from 9d21451 to 5257ffb Compare May 6, 2021 04:07
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-retired:master May 6, 2021
@christopherhein christopherhein deleted the feature/ncp-controller branch May 6, 2021 04:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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