Orange-OpenSource / galera-operator

Galera Operator automates tasks for managing a Galera cluster in Kubernetes
Apache License 2.0
34 stars 18 forks source link

Wrong annotation to manager a cluster by clusterwide operator #11

Closed plafosse-orange closed 4 years ago

plafosse-orange commented 4 years ago

In the example deployment file 40-galera.yaml , it is indicated

  ## Adding this annotation make this cluster managed by clusterwide operators
  ## namespaced operators ignore it
   annotations:
    sql.databases/scope: clusterwide 

But this annotation is incorrect for it to work you have to put

  annotations:
    galera.v1beta2sql.databases/scope: clusterwide
sebs42 commented 4 years ago

you are right, sorry for the mystake

// GaleraAnnotationScope annotation name for defining instance scope. Used for specifing cluster wide clusters.
GaleraAnnotationScope = "galera.v1beta2.sql.databases/scope"
//AnnotationClusterWide annotation value for cluster wide clusters.
GaleraAnnotationClusterWide = "clusterwide"