From 335f9710f63c3afaba7c3e0ed4417d416f433233 Mon Sep 17 00:00:00 2001 From: Matt Dennison Date: Fri, 29 Sep 2023 11:04:43 -0700 Subject: [PATCH] chore: manifests --- ...cture.cluster.x-k8s.io_linodeclusters.yaml | 49 ++++++++++++++++ ...cture.cluster.x-k8s.io_linodemachines.yaml | 49 ++++++++++++++++ config/rbac/role.yaml | 58 +++++++++++++++++++ 3 files changed, 156 insertions(+) create mode 100644 config/crd/bases/infrastructure.cluster.x-k8s.io_linodeclusters.yaml create mode 100644 config/crd/bases/infrastructure.cluster.x-k8s.io_linodemachines.yaml create mode 100644 config/rbac/role.yaml diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_linodeclusters.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_linodeclusters.yaml new file mode 100644 index 000000000..cc747a459 --- /dev/null +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_linodeclusters.yaml @@ -0,0 +1,49 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: linodeclusters.infrastructure.cluster.x-k8s.io +spec: + group: infrastructure.cluster.x-k8s.io + names: + kind: LinodeCluster + listKind: LinodeClusterList + plural: linodeclusters + singular: linodecluster + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: LinodeCluster is the Schema for the linodeclusters 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: LinodeClusterSpec defines the desired state of LinodeCluster + properties: + foo: + description: Foo is an example field of LinodeCluster. Edit linodecluster_types.go + to remove/update + type: string + type: object + status: + description: LinodeClusterStatus defines the observed state of LinodeCluster + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_linodemachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_linodemachines.yaml new file mode 100644 index 000000000..0c0615307 --- /dev/null +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_linodemachines.yaml @@ -0,0 +1,49 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: linodemachines.infrastructure.cluster.x-k8s.io +spec: + group: infrastructure.cluster.x-k8s.io + names: + kind: LinodeMachine + listKind: LinodeMachineList + plural: linodemachines + singular: linodemachine + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: LinodeMachine is the Schema for the linodemachines 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: LinodeMachineSpec defines the desired state of LinodeMachine + properties: + foo: + description: Foo is an example field of LinodeMachine. Edit linodemachine_types.go + to remove/update + type: string + type: object + status: + description: LinodeMachineStatus defines the observed state of LinodeMachine + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml new file mode 100644 index 000000000..45be7508e --- /dev/null +++ b/config/rbac/role.yaml @@ -0,0 +1,58 @@ +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: manager-role +rules: +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodeclusters + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodeclusters/finalizers + verbs: + - update +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodeclusters/status + verbs: + - get + - patch + - update +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodemachines + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodemachines/finalizers + verbs: + - update +- apiGroups: + - infrastructure.cluster.x-k8s.io + resources: + - linodemachines/status + verbs: + - get + - patch + - update