Skip to content

Commit

Permalink
Re-generate the manifest
Browse files Browse the repository at this point in the history
The command is:
make manifests

Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Oct 31, 2024
1 parent 62b7e81 commit 61d05c4
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 6 deletions.
60 changes: 60 additions & 0 deletions config/crd/bases/clusters.etcd.io_etcdclusters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.4
name: etcdclusters.clusters.etcd.io
spec:
group: clusters.etcd.io
names:
kind: EtcdCluster
listKind: EtcdClusterList
plural: etcdclusters
singular: etcdcluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: EtcdCluster is the Schema for the etcdclusters 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: EtcdClusterSpec defines the desired state of EtcdCluster.
properties:
size:
description: Size is the expected size of the etcd cluster.
type: integer
version:
description: Version is the expected version of the etcd container
image.
type: string
required:
- size
- version
type: object
status:
description: EtcdClusterStatus defines the observed state of EtcdCluster.
type: object
type: object
served: true
storage: true
subresources:
status: {}
33 changes: 27 additions & 6 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: etcd-operator
app.kubernetes.io/managed-by: kustomize
name: manager-role
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups:
- clusters.etcd.io
resources:
- etcdclusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- clusters.etcd.io
resources:
- etcdclusters/finalizers
verbs:
- update
- apiGroups:
- clusters.etcd.io
resources:
- etcdclusters/status
verbs:
- get
- patch
- update

0 comments on commit 61d05c4

Please sign in to comment.