This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/png" | |
| "os" | |
| ) |
This file contains hidden or 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
| apiVersion: cluster.x-k8s.io/v1beta1 | |
| kind: ClusterClass | |
| metadata: | |
| name: docker-clusterclass-v0.1.0 | |
| spec: | |
| ... | |
| variables: | |
| - name: dnsImageRespository | |
| required: true | |
| schema: |
This file contains hidden or 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
| apiVersion: cluster.x-k8s.io/v1beta1 | |
| kind: Cluster | |
| metadata: | |
| name: my-docker-cluster | |
| spec: | |
| topology: | |
| ... | |
| variables: | |
| - name: dnsImageRespository | |
| value: my.custom.dns.registry |
This file contains hidden or 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
| apiVersion: cluster.x-k8s.io/v1beta1 | |
| kind: ClusterClass | |
| metadata: | |
| name: docker-clusterclass-v0.1.0 | |
| spec: | |
| ... | |
| patches: | |
| - name: dnsImageRespository | |
| definitions: | |
| - selector: |
This file contains hidden or 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
| // ClusterClassSpec describes the desired state of the ClusterClass. | |
| type ClusterClassSpec struct { | |
| // infrastructure is a reference to a provider-specific template that holds | |
| // the details for provisioning infrastructure specific cluster | |
| // for the underlying provider. | |
| // The underlying provider is responsible for the implementation | |
| // of the template to an infrastructure cluster. | |
| // +optional | |
| Infrastructure LocalObjectTemplate `json:"infrastructure,omitempty"` |
This file contains hidden or 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
| apiVersion: cluster.x-k8s.io/v1beta1 | |
| kind: Cluster | |
| metadata: | |
| name: sample-cluster | |
| spec: | |
| clusterNetwork: | |
| pods: | |
| cidrBlocks: ["192.168.0.0/16"] |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nginx | |
| spec: | |
| containers: | |
| - name: nginx | |
| image: nginx:1.14.2 | |
| ports: | |
| - containerPort: 80 |
This file contains hidden or 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
| diff --git a/apps/base/capi-operator/kustomization.yaml b/apps/base/capi-operator/kustomization.yaml | |
| index bb5688c..15049ae 100644 | |
| --- a/apps/base/capi-operator/kustomization.yaml | |
| +++ b/apps/base/capi-operator/kustomization.yaml | |
| @@ -1,4 +1,5 @@ | |
| apiVersion: kustomize.config.k8s.io/v1beta1 | |
| kind: Kustomization | |
| resources: | |
| - - capi-operator.yaml | |
| \ No newline at end of file |
This file contains hidden or 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
| apiVersion: operator.cluster.x-k8s.io/v1alpha2 | |
| kind: CoreProvider | |
| metadata: | |
| name: cluster-api | |
| namespace: capi-system | |
| spec: | |
| manifestPatches: | |
| - | | |
| apiVersion: v1 | |
| kind: Service |
This file contains hidden or 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
| apiVersion: operator.cluster.x-k8s.io/v1alpha2 | |
| kind: CoreProvider | |
| metadata: | |
| name: cluster-api | |
| namespace: capi-system | |
| spec: | |
| version: v1.8.5 |
NewerOlder