diff --git a/operators/constellation-node-operator/config/crd/bases/update.edgeless.systems_nodeimages.yaml b/operators/constellation-node-operator/config/crd/bases/update.edgeless.systems_nodeimages.yaml new file mode 100644 index 000000000..befb60dad --- /dev/null +++ b/operators/constellation-node-operator/config/crd/bases/update.edgeless.systems_nodeimages.yaml @@ -0,0 +1,50 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.9.0 + creationTimestamp: null + name: nodeimages.update.edgeless.systems +spec: + group: update.edgeless.systems + names: + kind: NodeImage + listKind: NodeImageList + plural: nodeimages + singular: nodeimage + scope: Cluster + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: NodeImage is the Schema for the nodeimages 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: NodeImageSpec defines the desired state of NodeImage + properties: + foo: + description: Foo is an example field of NodeImage. Edit nodeimage_types.go + to remove/update + type: string + type: object + status: + description: NodeImageStatus defines the observed state of NodeImage + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/operators/constellation-node-operator/config/rbac/role.yaml b/operators/constellation-node-operator/config/rbac/role.yaml new file mode 100644 index 000000000..61936230b --- /dev/null +++ b/operators/constellation-node-operator/config/rbac/role.yaml @@ -0,0 +1,33 @@ +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: manager-role +rules: +- apiGroups: + - update.edgeless.systems + resources: + - nodeimages + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - update.edgeless.systems + resources: + - nodeimages/finalizers + verbs: + - update +- apiGroups: + - update.edgeless.systems + resources: + - nodeimages/status + verbs: + - get + - patch + - update