This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 67
✨ Adding CAPI Provisioner to vc-manager #136
Merged
k8s-ci-robot
merged 2 commits into
kubernetes-retired:main
from
christopherhein:feature/vc-capi-provisioner
Jun 17, 2021
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1alpha4 | ||
kind: Cluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
spec: | ||
controlPlaneEndpoint: | ||
# currently this has to be the in-cluster endpoint, the in-cluster | ||
# kubeconfig is used by controller-manager w/ ClusterIP services | ||
# we can `port-forward` this service and be able to test, this includes | ||
# NAMESPACE so we can connect to the VC syncer. | ||
host: "${CLUSTER_NAME}-apiserver.${NAMESPACE}" | ||
port: 6443 | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedCluster | ||
name: "${CLUSTER_NAME}" | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedControlPlane | ||
name: "${CLUSTER_NAME}-control-plane" | ||
|
||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedCluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
spec: | ||
controlPlaneEndpoint: | ||
host: "localhost" | ||
port: 6443 | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedControlPlane | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
spec: | ||
etcd: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedEtcd | ||
name: "${CLUSTER_NAME}-nestedetcd" | ||
apiserver: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedAPIServer | ||
name: "${CLUSTER_NAME}-nestedapiserver" | ||
controllerManager: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedControllerManager | ||
name: "${CLUSTER_NAME}-nestedcontrollermanager" | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedEtcd | ||
metadata: | ||
name: "${CLUSTER_NAME}-nestedetcd" | ||
spec: | ||
replicas: 1 | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedAPIServer | ||
metadata: | ||
name: "${CLUSTER_NAME}-nestedapiserver" | ||
spec: | ||
replicas: 1 | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 | ||
kind: NestedControllerManager | ||
metadata: | ||
name: "${CLUSTER_NAME}-nestedcontrollermanager" | ||
spec: | ||
replicas: 1 | ||
--- | ||
apiVersion: tenancy.x-k8s.io/v1alpha1 | ||
kind: VirtualCluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
annotations: | ||
cluster.x-k8s.io/name: ${CLUSTER_NAME} | ||
tenancy.x-k8s.io/secret.admin-kubeconfig: "${CLUSTER_NAME}-kubeconfig" | ||
spec: | ||
clusterVersionName: "capi" | ||
opaqueMetaPrefixes: | ||
- "tenancy.x-k8s.io" | ||
transparentMetaPrefixes: | ||
- "k8s.net.status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 0 additions & 163 deletions
163
virtualcluster/config/crd/cluster.x-k8s.io_clusters.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now this will just constant poll for changes until status provisioned, this should in the long run be triggered by the NCP status updating instead.