Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
csviri committed Jul 24, 2023
1 parent 5d8a438 commit 10d6077
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 19 deletions.
11 changes: 0 additions & 11 deletions target-helm-chart-joke/templates/cr-cluster-role-binding.yaml

This file was deleted.

15 changes: 9 additions & 6 deletions target-helm-chart-joke/templates/cr-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{{- range $.Values.reconcilers }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: jokerequestreconciler-cluster-role
name: {{ .name }}-cluster-role
rules:
- apiGroups:
- samples.javaoperatorsdk.io
- {{ .apiGroup }}
resources:
- jokerequests
- jokerequests/status
- jokerequests/finalizers
- {{ .resource }}
- {{ .resource }}/status
- {{ .resource }}/finalizers
verbs:
- get
- list
- watch
- patch
- update
- create
- delete
- delete
---
{{- end }}
7 changes: 5 additions & 2 deletions target-helm-chart-joke/templates/cr-role-bindings.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{{- range $.Values.reconcilers }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: jokerequestreconciler-role-binding
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: jokerequestreconciler-cluster-role
name: {{ .name }}-cluster-role
subjects:
- kind: ServiceAccount
name: {{ .Chart.Name }}
name: {{ $.Chart.Name }}
---
{{- end }}
16 changes: 16 additions & 0 deletions target-helm-chart-joke/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@

# can be a one of:
# - "all-namespaces"
# - "current-namespace"
# - comma separated list of namespaces
watch-namespaces: all-namespaces

# values that can be directly generated into templates
qosdk:
version: 6.2.2-SNAPSHOT

image: csviri/quarkus-operator-sdk-samples-joke:6.2.2-SNAPSHOT

reconcilers:
- name: jokerequestreconciler
resource: jokerequests
apiGroup: samples.javaoperatorsdk.io
- name: reconciler2
resource: sampleresource2
apiGroup: samples.javaoperatorsdk.io

0 comments on commit 10d6077

Please sign in to comment.