-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from tahmmee/2.3.x
2.3.x
- Loading branch information
Showing
13 changed files
with
597 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
cluster: | ||
servers: | ||
default: | ||
size: 1 | ||
services: | ||
- data | ||
|
||
|
||
scopes: | ||
default: | ||
collections: | ||
managed: false | ||
preserveDefaultCollection: false | ||
resources: | ||
- kind: CouchbaseCollection | ||
name: "default" | ||
- kind: CouchbaseCollectionGroup | ||
name: "default" | ||
defaultScope: false | ||
name: "x" | ||
|
||
scopegroups: | ||
default: | ||
collections: | ||
managed: false | ||
preserveDefaultCollection: false | ||
resources: | ||
- kind: CouchbaseCollection | ||
name: "default" | ||
- kind: CouchbaseCollectionGroup | ||
name: "default" | ||
names: ["y", "z"] | ||
|
||
|
||
scopes: | ||
default: | ||
collections: | ||
managed: false | ||
preserveDefaultCollection: false | ||
resources: | ||
- kind: CouchbaseCollection | ||
name: "default" | ||
- kind: CouchbaseCollectionGroup | ||
name: "default" | ||
defaultScope: false | ||
name: "" | ||
|
||
|
||
collections: | ||
default: | ||
name: "a" | ||
|
||
collectiongroups: | ||
default: | ||
names: ["b", "c", "d"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
charts/couchbase-operator/templates/couchbase-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{{- if .Values.cluster.backup.managed -}} | ||
{{- $clusterName := (include "couchbase-cluster.clustername" .) -}} | ||
|
||
|
||
|
||
{{/* List of Groups */}} | ||
{{- if .Values.groups }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseGroupList | ||
items: | ||
{{- range $name, $spec := .Values.groups }} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseGroup | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
|
||
{{/* List of RoleBindings */}} | ||
{{- if .Values.rolebindings }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseRoleBindingList | ||
items: | ||
{{- range $name, $spec := .Values.rolebindings }} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseRoleBinding | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* List of Scopes */}} | ||
{{- if .Values.scopes }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseScopeList | ||
items: | ||
{{- range $name, $spec := .Values.scopes}} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseScope | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* List of Scope Groups */}} | ||
{{- if .Values.scopegroups }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseScopeGroupList | ||
items: | ||
{{- range $name, $spec := .Values.scopegroups }} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseScopeGroup | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
|
||
{{/* List of Collections */}} | ||
{{- if .Values.collectiongroups }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseCollectionGroupList | ||
items: | ||
{{- range $name, $spec := .Values.collectiongroups }} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseCollectionGroup | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* List of Collection Groups */}} | ||
{{- if .Values.collectiongroups }} | ||
--- | ||
apiVersion: couchbase.com/v2 | ||
kind: CouchbaseCollectionList | ||
items: | ||
{{- range $name, $spec := .Values.collections }} | ||
{{- if typeIs "map[string]interface {}" $spec }} | ||
- apiVersion: couchbase.com/v2 | ||
kind: CouchbaseCollection | ||
metadata: | ||
name: {{ default $name $spec.name}} | ||
labels: | ||
cluster: {{ $clusterName }} | ||
spec: | ||
{{ omit $spec "name" | toYaml | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.