From b1706bd2ed33a8510f7a251702f7c45017576c9d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 14 Oct 2020 20:15:06 -0700 Subject: [PATCH] make manifests --- .../bases/seaweed.seaweedfs.com_masters.yaml | 69 +++++++++++++++++++ config/rbac/role.yaml | 28 ++++++++ 2 files changed, 97 insertions(+) create mode 100644 config/crd/bases/seaweed.seaweedfs.com_masters.yaml create mode 100644 config/rbac/role.yaml diff --git a/config/crd/bases/seaweed.seaweedfs.com_masters.yaml b/config/crd/bases/seaweed.seaweedfs.com_masters.yaml new file mode 100644 index 0000000..6e9a786 --- /dev/null +++ b/config/crd/bases/seaweed.seaweedfs.com_masters.yaml @@ -0,0 +1,69 @@ + +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.3.0 + creationTimestamp: null + name: masters.seaweed.seaweedfs.com +spec: + group: seaweed.seaweedfs.com + names: + kind: Master + listKind: MasterList + plural: masters + singular: master + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + description: Master is the Schema for the masters 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: MasterSpec defines the desired state of Master + properties: + size: + description: Size is the size of the master deployment + format: int32 + minimum: 0 + type: integer + required: + - size + type: object + status: + description: MasterStatus defines the observed state of Master + properties: + nodes: + description: Nodes are the names of the master pods + items: + type: string + type: array + required: + - nodes + type: object + type: object + version: v1 + versions: + - name: v1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml new file mode 100644 index 0000000..6d00586 --- /dev/null +++ b/config/rbac/role.yaml @@ -0,0 +1,28 @@ + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: manager-role +rules: +- apiGroups: + - seaweed.seaweedfs.com + resources: + - masters + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - seaweed.seaweedfs.com + resources: + - masters/status + verbs: + - get + - patch + - update