Skip to content

Commit

Permalink
feat: support sn-operator-all deploy (#73)
Browse files Browse the repository at this point in the history
Support sn-operator-all deploy
  • Loading branch information
tuteng authored May 30, 2024
1 parent 61d23f5 commit 9901a65
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
43 changes: 43 additions & 0 deletions modules/olm-subscriptions/chart/templates/sn-operator-all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2023 StreamNative, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

{{- if and .Values.components.sn_operator_all }}
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: {{ .Values.sn_operator_all.name }}
namespace: {{ .Values.install_namespace }}
spec:
channel: {{ .Values.sn_operator_all.channel | default .Values.channel }}
installPlanApproval: {{ .Values.sn_operator_all.approval | default .Values.approval }}
source: {{ .Values.sn_operator_all.source }}
sourceNamespace: {{ .Values.olm_namespace }}
name: {{ .Values.sn_operator_all.name }}
config:
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 4 }}
{{- end }}
resources: {{ include "subscription.snOperatorResources" . }}
{{- if .Values.sn_operator_all.config.env }}
env:
{{- toYaml .Values.sn_operator_all.config.env | nindent 4 }}
{{- end }}
{{- if .Values.sn_operator_all.config.envFrom }}
envFrom:
{{- toYaml .Values.sn_operator_all.config.envFrom | nindent 4 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions modules/olm-subscriptions/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ components:
flinkSql: false # not used in cloud
zookeeper: true
sn_operator: true
sn_operator_all: false
elastic_cloud_eck: true

subscriptionConfig:
Expand Down Expand Up @@ -98,6 +99,11 @@ sn_operator:
name: sn-operator
config: {}

sn_operator_all:
source: sn-catalog
name: sn-operator-all
config: {}

elastic_cloud_eck:
source: operatorhubio-catalog
name: elastic-cloud-eck
Expand Down

0 comments on commit 9901a65

Please sign in to comment.