Skip to content

Commit

Permalink
feat: helm resource
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Nov 30, 2023
1 parent 1922f7b commit 0adf652
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
- name: helm-quarkus-app
alias: app
version: ^0
repository: oci://ghcr.io/onecx/charts
repository: oci://ghcr.io/onecx/charts
11 changes: 11 additions & 0 deletions src/main/helm/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}-role-binding
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role
subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}-{{ .Values.app.name }}
19 changes: 19 additions & 0 deletions src/main/helm/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role
rules:
- apiGroups:
- io.github.onecx.product.store
resources:
- products
- products/status
- products/finalizers
verbs:
- get
- list
- watch
- patch
- update
- create
- delete
4 changes: 4 additions & 0 deletions src/main/helm/templates/service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}
8 changes: 8 additions & 0 deletions src/main/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
app:
name: product-operator
image:
repository: "onecx/onecx-product-store-operator"
tag: 999-SNAPSHOT
envCustom:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
serviceAccount:
enabled: true

0 comments on commit 0adf652

Please sign in to comment.