forked from k3s-io/cluster-api-k3s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
720 additions
and
64 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM gcr.io/distroless/static:latest | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY bin/manager ./ | ||
USER nobody | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/manager"] |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
domain: k8s.io | ||
domain: cluster.x-k8s.io | ||
repo: github.com/zawachte-msft/cluster-api-bootstrap-provider-k3s | ||
resources: | ||
- group: bootstrap | ||
kind: KThreesConfig | ||
version: v1alpha1 | ||
version: v1alpha3 | ||
version: "2" |
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
2 changes: 1 addition & 1 deletion
2
api/v1alpha1/zz_generated.deepcopy.go → api/v1alpha3/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,29 @@ | ||
apiVersion: cluster.x-k8s.io/v1alpha3 | ||
kind: Cluster | ||
metadata: | ||
labels: | ||
cni: calico | ||
name: joe-test | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 | ||
kind: AzureCluster | ||
name: joe-test | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 | ||
kind: AzureCluster | ||
metadata: | ||
name: joe-test | ||
namespace: default | ||
spec: | ||
location: eastus | ||
networkSpec: | ||
vnet: | ||
name: joe-test-vnet | ||
resourceGroup: joe-test | ||
subscriptionID: bbda620e-ad6d-4440-8ba0-ba1297702503 |
81 changes: 81 additions & 0 deletions
81
config/crd/bases/bootstrap.cluster.x-k8s.io_kthreesconfigs.yaml
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,81 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.2.5 | ||
creationTimestamp: null | ||
name: kthreesconfigs.bootstrap.cluster.x-k8s.io | ||
spec: | ||
group: bootstrap.cluster.x-k8s.io | ||
names: | ||
kind: KThreesConfig | ||
listKind: KThreesConfigList | ||
plural: kthreesconfigs | ||
singular: kthreesconfig | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
validation: | ||
openAPIV3Schema: | ||
description: KThreesConfig is the Schema for the kthreesconfigs API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: KThreesConfigSpec defines the desired state of KThreesConfig | ||
properties: | ||
foo: | ||
description: Foo is an example field of KThreesConfig. Edit KThreesConfig_types.go | ||
to remove/update | ||
type: string | ||
type: object | ||
status: | ||
description: KThreesConfigStatus defines the observed state of KThreesConfig | ||
properties: | ||
bootstrapData: | ||
format: byte | ||
type: string | ||
dataSecretName: | ||
description: DataSecretName is the name of the secret that stores the | ||
bootstrap data script. | ||
type: string | ||
failureMessage: | ||
description: FailureMessage will be set on non-retryable errors | ||
type: string | ||
failureReason: | ||
description: FailureReason will be set on non-retryable errors | ||
type: string | ||
observedGeneration: | ||
description: ObservedGeneration is the latest generation observed by | ||
the controller. | ||
format: int64 | ||
type: integer | ||
ready: | ||
description: Ready indicates the BootstrapData field is ready to be | ||
consumed | ||
type: boolean | ||
type: object | ||
type: object | ||
version: v1alpha3 | ||
versions: | ||
- name: v1alpha3 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
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
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
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
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
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
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
Oops, something went wrong.