Skip to content

Commit

Permalink
added sno-helm-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
mparram committed Oct 8, 2021
1 parent 7950983 commit 492e67f
Show file tree
Hide file tree
Showing 28 changed files with 782 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/sno-helm-charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: sno-helm-charts
description: Helm chart to deploy factory components to SNO
type: application
version: 0.0.1
appVersion: "1.0.0"
45 changes: 45 additions & 0 deletions charts/sno-helm-charts/templates/amq-broker-broker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
kind: Namespace
apiVersion: v1
metadata:
name: {{ .Values.amqbroker.namespace }}
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: amq-broker
namespace: {{ .Values.amqbroker.namespace }}
spec:
channel: current
installPlanApproval: Automatic
name: amq-broker
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: {{ .Values.amqbroker.startingCSV }}
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: {{ .Values.amqbroker.namespace }}
namespace: {{ .Values.amqbroker.namespace }}
spec:
targetNamespaces:
- {{ .Values.amqbroker.namespace }}
---
apiVersion: broker.amq.io/v2alpha4
kind: ActiveMQArtemis
metadata:
name: {{ .Values.amqbroker.brokerName }}
application: {{ .Values.amqbroker.brokerName }}
namespace: {{ .Values.amqbroker.namespace }}
spec:
adminPassword: {{ .Values.amqbroker.adminPassword }}
deploymentPlan:
size: {{ .Values.amqbroker.size }}
persistenceEnabled: false
requireLogin: false
messageMigration: false
managementRBACEnabled: true
journalType: nio
jolokiaAgentEnabled: false
image: placeholder
adminUser: {{ .Values.amqbroker.adminUser }}
4 changes: 4 additions & 0 deletions charts/sno-helm-charts/templates/amq-broker-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kind: Namespace
apiVersion: v1
metadata:
name: {{ .Values.amqbroker.namespace }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: {{ .Values.amqbroker.namespace }}
namespace: {{ .Values.amqbroker.namespace }}
spec:
targetNamespaces:
- {{ .Values.amqbroker.namespace }}
12 changes: 12 additions & 0 deletions charts/sno-helm-charts/templates/amq-broker-subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: amq-broker
namespace: {{ .Values.amqbroker.namespace }}
spec:
channel: current
installPlanApproval: Automatic
name: amq-broker
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: {{ .Values.amqbroker.startingCSV }}
160 changes: 160 additions & 0 deletions charts/sno-helm-charts/templates/gitops-appproject.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
kind: Namespace
apiVersion: v1
metadata:
name: openshift-gitops
labels:
project: openshift-gitops
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: openshift-gitops-operator
namespace: openshift-operators
spec:
channel: stable
installPlanApproval: Automatic
name: openshift-gitops-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
startingCSV: {{ .Values.gitops.startingCSV }}
---
{{ if .Values.gitops.clusterAdminController }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: argocd-application-controller-cluster-admin
subjects:
- kind: ServiceAccount
name: argocd-application-controller
namespace: openshift-gitops
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
{{ end }}
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: cluster-config
namespace: openshift-gitops
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'
---
apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
name: openshift-gitops
namespace: openshift-gitops
spec:
server:
autoscale:
enabled: false
grpc:
ingress:
enabled: false
ingress:
enabled: false
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 125m
memory: 128Mi
route:
enabled: true
service:
type: ''
grafana:
enabled: false
ingress:
enabled: false
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
route:
enabled: false
prometheus:
enabled: false
ingress:
enabled: false
route:
enabled: false
initialSSHKnownHosts: {}
applicationSet:
resources:
limits:
cpu: '2'
memory: 1Gi
requests:
cpu: 250m
memory: 512Mi
rbac: {}
repo:
resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
resourceExclusions: |
- apiGroups:
- tekton.dev
clusters:
- '*'
kinds:
- TaskRun
- PipelineRun
dex:
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
ha:
enabled: false
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
tls:
ca: {}
redis:
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
controller:
processors: {}
resources:
limits:
cpu: '1'
memory: 2Gi
requests:
cpu: 250m
memory: 1Gi
initialRepositories: |
- name: cluster-config
type: git
url: {{ .Values.gitops.initialRepository }}
Loading

0 comments on commit 492e67f

Please sign in to comment.