Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions api/v1alpha1/etcdcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ type EtcdClusterStatus struct {
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`

// CurrentReplicas is the number of etcd pods managed by the StatefulSet for this cluster.
// This reflects the .spec.replicas of the underlying StatefulSet.
// CurrentReplicas is the number of etcd member pods currently owned by this cluster.
// +optional
CurrentReplicas int32 `json:"currentReplicas,omitempty"`

// ReadyReplicas is the number of etcd pods managed by the StatefulSet that are currently ready.
// This reflects the .status.readyReplicas of the underlying StatefulSet.
// ReadyReplicas is the number of etcd member pods that are currently Ready.
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions config/crd/bases/operator.etcd.io_etcdclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.1
controller-gen.kubebuilder.io/version: v0.21.0
name: etcdclusters.operator.etcd.io
spec:
group: operator.etcd.io
Expand Down Expand Up @@ -1256,9 +1256,8 @@ spec:
- type
x-kubernetes-list-type: map
currentReplicas:
description: |-
CurrentReplicas is the number of etcd pods managed by the StatefulSet for this cluster.
This reflects the .spec.replicas of the underlying StatefulSet.
description: CurrentReplicas is the number of etcd member pods currently
owned by this cluster.
format: int32
type: integer
currentVersion:
Expand Down Expand Up @@ -1327,9 +1326,8 @@ spec:
format: int64
type: integer
readyReplicas:
description: |-
ReadyReplicas is the number of etcd pods managed by the StatefulSet that are currently ready.
This reflects the .status.readyReplicas of the underlying StatefulSet.
description: ReadyReplicas is the number of etcd member pods that
are currently Ready.
format: int32
type: integer
type: object
Expand Down
21 changes: 5 additions & 16 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand All @@ -29,9 +15,12 @@ rules:
- patch
- update
- apiGroups:
- apps
- ""
resources:
- statefulsets
- persistentvolumeclaims
- pods
- secrets
- services
verbs:
- create
- delete
Expand Down
Loading