Skip to content

Support v1alpha1.ScyllaDBDatacenter registration with global ScyllaDB Manager instance #2590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
159 changes: 145 additions & 14 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ rules:
- scylladbdatacenters
- remotekubernetesclusters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- create
- delete
Expand All @@ -141,6 +142,7 @@ rules:
- scylladbdatacenters/status
- remotekubernetesclusters/status
- scylladbclusters/status
- scylladbmanagerclusterregistrations/status
verbs:
- get
- list
Expand Down Expand Up @@ -317,6 +319,7 @@ rules:
- scyllaclusters/finalizers
- scylladbdatacenters/finalizers
- scylladbmonitorings/finalizers
- scylladbmanagerclusterregistrations/finalizers
verbs:
- update
- apiGroups:
Expand Down Expand Up @@ -345,26 +348,12 @@ rules:
- daemonsets/finalizers
verbs:
- update
- apiGroups:
- scylla.scylladb.com
resources:
- scyllaclusters/finalizers
- scylladbdatacenters/finalizers
- scylladbmonitorings/finalizers
verbs:
- update
- apiGroups:
- policy
resources:
- poddisruptionbudgets/finalizers
verbs:
- update
- apiGroups:
- scylla.scylladb.com
resources:
- nodeconfigs/finalizers
verbs:
- update

---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -43754,6 +43743,145 @@ spec:
subresources:
status: {}

---
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: scylladbmanagerclusterregistrations.scylla.scylladb.com
spec:
group: scylla.scylladb.com
names:
kind: ScyllaDBManagerClusterRegistration
listKind: ScyllaDBManagerClusterRegistrationList
plural: scylladbmanagerclusterregistrations
singular: scylladbmanagerclusterregistration
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type=='Progressing')].status
name: PROGRESSING
type: string
- jsonPath: .status.conditions[?(@.type=='Degraded')].status
name: DEGRADED
type: string
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
name: v1alpha1
schema:
openAPIV3Schema:
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: spec defines the desired state of ScyllaDBManagerClusterRegistration.
properties:
scyllaDBClusterRef:
description: |-
scyllaDBClusterRef specifies the typed reference to the local ScyllaDB cluster.
Supported kind is ScyllaDBDatacenter in scylla.scylladb.com group.
properties:
kind:
description: kind specifies the type of the resource.
type: string
name:
description: name specifies the name of the resource.
type: string
type: object
type: object
status:
description: status reflects the observed state of ScyllaDBManagerClusterRegistration.
properties:
clusterID:
description: clusterID reflects the internal identification number of the cluster in ScyllaDB Manager state.
type: string
conditions:
description: conditions hold conditions describing ScyllaDBManagerClusterRegistration state.
items:
description: Condition contains details for one aspect of the current state of this API Resource.
properties:
lastTransitionTime:
description: |-
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: |-
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: |-
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: |-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
observedGeneration:
description: |-
observedGeneration is the most recent generation observed for this ScyllaDBManagerClusterRegistration. It corresponds to the
ScyllaDBManagerClusterRegistration's generation, which is updated on mutation by the API Server.
format: int64
type: integer
type: object
type: object
served: true
storage: true
subresources:
status: {}

---
---
apiVersion: apiextensions.k8s.io/v1
Expand Down Expand Up @@ -46388,6 +46516,7 @@ rules:
- scylladbmonitorings
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- create
- patch
Expand All @@ -46412,6 +46541,7 @@ rules:
- scylladbmonitorings
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- get
- list
Expand Down Expand Up @@ -46667,6 +46797,7 @@ webhooks:
- scyllaoperatorconfigs
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations

---
apiVersion: policy/v1
Expand Down
17 changes: 3 additions & 14 deletions deploy/operator/00_operator.clusterrole_def.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ rules:
- scylladbdatacenters
- remotekubernetesclusters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- create
- delete
Expand All @@ -125,6 +126,7 @@ rules:
- scylladbdatacenters/status
- remotekubernetesclusters/status
- scylladbclusters/status
- scylladbmanagerclusterregistrations/status
verbs:
- get
- list
Expand Down Expand Up @@ -301,6 +303,7 @@ rules:
- scyllaclusters/finalizers
- scylladbdatacenters/finalizers
- scylladbmonitorings/finalizers
- scylladbmanagerclusterregistrations/finalizers
verbs:
- update
- apiGroups:
Expand Down Expand Up @@ -329,23 +332,9 @@ rules:
- daemonsets/finalizers
verbs:
- update
- apiGroups:
- scylla.scylladb.com
resources:
- scyllaclusters/finalizers
- scylladbdatacenters/finalizers
- scylladbmonitorings/finalizers
verbs:
- update
- apiGroups:
- policy
resources:
- poddisruptionbudgets/finalizers
verbs:
- update
- apiGroups:
- scylla.scylladb.com
resources:
- nodeconfigs/finalizers
verbs:
- update
1 change: 1 addition & 0 deletions deploy/operator/00_scyllacluster_clusterrole_edit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
- scylladbmonitorings
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- create
- patch
Expand Down
1 change: 1 addition & 0 deletions deploy/operator/00_scyllacluster_clusterrole_view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rules:
- scylladbmonitorings
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations
verbs:
- get
- list
Expand Down
1 change: 1 addition & 0 deletions deploy/operator/10_validatingwebhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ webhooks:
- scyllaoperatorconfigs
- scylladbdatacenters
- scylladbclusters
- scylladbmanagerclusterregistrations
Loading