Skip to content

Commit

Permalink
[artemiscloud-operator] - initial version
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <49003339+tlbueno@users.noreply.github.com>
  • Loading branch information
tlbueno committed May 21, 2024
1 parent c93ac84 commit c3faa10
Show file tree
Hide file tree
Showing 15 changed files with 750 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/artemiscloud-operator/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/artemiscloud-operator/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: artemiscloud-operator-crds
repository: https://tlbueno.github.io/helm-charts
version: 0.1.0
digest: sha256:178a045f4599df26834bbd1f1c52ed41a5508f282929a84489ab248029f0cd24
generated: "2024-05-21T17:21:36.025856862-03:00"
38 changes: 38 additions & 0 deletions charts/artemiscloud-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: v2
name: artemiscloud-operator
description: A Helm chart to install ArtemisCloud Operator

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# 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: "1.1.0" ### This is the operator version

dependencies:
- name: artemiscloud-operator-crds
#########################################################
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ###
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ###
### ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ###
#########################################################
# The version below must match the artemiscloud-operator-crds chart version that has appVersion as the same
# the one in this chart (see above).
# This is needed because it must be a match of the operator CRD
version: "0.1.0"
repository: https://tlbueno.github.io/helm-charts

Binary file not shown.
9 changes: 9 additions & 0 deletions charts/artemiscloud-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Thank you for installing {{ .Chart.Name }}.

Your release is named {{ .Release.Name }}.

To learn more about the release, try:

$ helm status {{ .Release.Name }}
$ helm get all {{ .Release.Name }}

5 changes: 5 additions & 0 deletions charts/artemiscloud-operator/templates/Namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace.name }}

205 changes: 205 additions & 0 deletions charts/artemiscloud-operator/templates/cluster_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
{{- if or (eq .Values.operator.watch.mode "multi") (eq .Values.operator.watch.mode "all") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: activemq-artemis-operator-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- endpoints
- events
- persistentvolumeclaims
- pods
- routes
- secrets
- serviceaccounts
- services
verbs:
- '*'
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemisaddresses
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- broker.amq.io
resources:
- activemqartemisaddresses/finalizers
verbs:
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemisaddresses/status
verbs:
- get
- patch
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemises
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- broker.amq.io
resources:
- activemqartemises/finalizers
verbs:
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemises/status
verbs:
- get
- patch
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemisscaledowns
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- broker.amq.io
resources:
- activemqartemisscaledowns/finalizers
verbs:
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemisscaledowns/status
verbs:
- get
- patch
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemissecurities
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- broker.amq.io
resources:
- activemqartemissecurities/finalizers
verbs:
- update
- apiGroups:
- broker.amq.io
resources:
- activemqartemissecurities/status
verbs:
- get
- patch
- update
- apiGroups:
- broker.amq.io
resources:
- pods
verbs:
- get
- list
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- get
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebindings
- roles
verbs:
- create
- delete
- get
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
- routes/status
verbs:
- create
- delete
- get
- list
- update
- watch
{{- end }}

15 changes: 15 additions & 0 deletions charts/artemiscloud-operator/templates/cluster_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if or (eq .Values.operator.watch.mode "multi") (eq .Values.operator.watch.mode "all") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: activemq-artemis-operator-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: activemq-artemis-operator-role
subjects:
- kind: ServiceAccount
name: activemq-artemis-controller-manager
namespace: {{ .Values.namespace.name }}
{{- end }}

37 changes: 37 additions & 0 deletions charts/artemiscloud-operator/templates/election_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: activemq-artemis-leader-election-role
namespace: {{ .Values.namespace.name }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
12 changes: 12 additions & 0 deletions charts/artemiscloud-operator/templates/election_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: activemq-artemis-leader-election-rolebinding
namespace: {{ .Values.namespace.name }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: activemq-artemis-leader-election-role
subjects:
- kind: ServiceAccount
name: activemq-artemis-controller-manager
Loading

0 comments on commit c3faa10

Please sign in to comment.