Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support sn-operator-all deploy #73

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading