Skip to content

Commit

Permalink
feat: publish the risingwave-operator helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: arkbriar <[email protected]>
  • Loading branch information
arkbriar committed Aug 8, 2023
1 parent 79c04f9 commit 40aa540
Show file tree
Hide file tree
Showing 30 changed files with 550 additions and 72 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HELM_CHARTS=$(shell ls charts)
INCUBATING_HELM_CHARTS=$(shell ls incubating/charts)
#INCUBATING_HELM_CHARTS=$(shell ls incubating/charts)

lint:
# for each in $(HELM_CHARTS) and $(INCUBATING_HELM_CHARTS), do helm lint
$(foreach chart,$(HELM_CHARTS),helm lint charts/$(chart);)
$(foreach chart,$(INCUBATING_HELM_CHARTS),helm lint incubating/charts/$(chart);)
#$(foreach chart,$(INCUBATING_HELM_CHARTS),helm lint incubating/charts/$(chart);)

sync-crds:
./scripts/sync-crds.sh incubating/charts/risingwave-operator/templates/crds
./scripts/sync-crds.sh charts/risingwave-operator/crds
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.5.0"
appVersion: "v0.5.0"

home: https://www.risingwave.com
icon: https://avatars.githubusercontent.com/u/77175557?s=48&v=4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.installCRDs }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -7143,4 +7142,3 @@ spec:
type: object
served: true
storage: true
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.installCRDs }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -34785,4 +34784,3 @@ spec:
storage: true
subresources:
status: {}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.installCRDs }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -140,4 +139,3 @@ spec:
specReplicasPath: .spec.replicas
statusReplicasPath: .status.replicas
status: {}
{{- end }}
175 changes: 175 additions & 0 deletions charts/risingwave-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{{/*
Copyright RisingWave Labs.
SPDX-License-Identifier: APACHE-2.0
*/}}

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "risingwave-operator.fullname" . }}
labels:
{{- include "risingwave-operator.labels" . | nindent 4 }}
{{- $annotations := (include "risingwave-operator.annotations" . ) | trim }}
{{- if $annotations }}
annotations:
{{ nindent 4 $annotations }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps.kruise.io
resources:
- clonesets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps.kruise.io
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- risingwave.risingwavelabs.com
resources:
- risingwaves
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- risingwave.risingwavelabs.com
resources:
- risingwaves/finalizers
verbs:
- update
- apiGroups:
- risingwave.risingwavelabs.com
resources:
- risingwaves/status
verbs:
- get
- patch
- update
- apiGroups:
- risingwave.risingwavelabs.com
resources:
- risingwavescaleviews
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- risingwave.risingwavelabs.com
resources:
- risingwavescaleviews/status
verbs:
- get
- patch
- update
27 changes: 27 additions & 0 deletions charts/risingwave-operator/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{/*
Copyright RisingWave Labs.
SPDX-License-Identifier: APACHE-2.0
*/}}

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "risingwave-operator.fullname" . }}
labels:
{{- include "risingwave-operator.labels" . | nindent 4 }}
{{- $annotations := (include "risingwave-operator.annotations" . ) | trim }}
{{- if $annotations }}
annotations:
{{ nindent 4 $annotations }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "risingwave-operator.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "risingwave-operator.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
Loading

0 comments on commit 40aa540

Please sign in to comment.