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

ci: update Core Operator chart #275

Merged
merged 1 commit into from
Aug 6, 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
4 changes: 2 additions & 2 deletions charts/core-crd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: core-crd
description: A Helm chart for Kubernetes
type: application
version: 3.2.0
appVersion: "v3.2.0"
version: 3.2.1
appVersion: "v3.2.1"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
1 change: 0 additions & 1 deletion charts/core-crd/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Turn this chart off/on
enabled: true

images:
hotReload:
registry: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions charts/core-instance/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Instance chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 3.2.0
appVersion: "v3.2.0"
version: 3.2.1
appVersion: "v3.2.1"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
21 changes: 21 additions & 0 deletions charts/core-instance/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Thank you for installing the Calyptia Core instance chart: {{ .Chart.Name }}.

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

Review the Calyptia Core documentation for full details: <https://docs.chronosphere.io/pipelines>

{{- if not (empty .Values.http_proxy) }}
WARNING: using deprecated 'http_proxy' setting, please use 'httpProxy'.
{{- end -}}

{{- if not (empty .Values.https_proxy) }}
WARNING: using deprecated 'https_proxy' setting, please use 'httpsProxy'.
{{- end -}}

{{- if not (empty .Values.no_proxy) }}
WARNING: using deprecated 'no_proxy' setting, please use 'noProxy'.
{{- end -}}

{{- if not (empty .Values.cloud_proxy) }}
WARNING: using deprecated 'cloud_proxy' setting, please use 'cloudProxy'.
{{- end -}}
37 changes: 36 additions & 1 deletion charts/core-instance/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,39 @@ Return the proper Container Registry Secret Names
{{- with .Values.imageCredentials }}
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
{{- end -}}
{{- end -}}
{{- end -}}

{{/*
Support httpProxy and backwards-compatible http_proxy
*/}}
{{- define "instance.httpProxy" -}}
{{- if not (empty .Values.http_proxy) -}}
{{- printf "%s" .Values.http_proxy -}}
{{- else -}}
{{ default "" .Values.httpProxy }}
{{- end -}}
{{- end -}}

{{- define "instance.httpsProxy" -}}
{{- if not (empty .Values.https_proxy) -}}
{{- printf "%s" .Values.https_proxy -}}
{{- else -}}
{{ default "" .Values.httpsProxy }}
{{- end -}}
{{- end -}}

{{- define "instance.noProxy" -}}
{{- if not (empty .Values.no_proxy) -}}
{{- printf "%s" .Values.no_proxy -}}
{{- else -}}
{{ default "" .Values.noProxy }}
{{- end -}}
{{- end -}}

{{- define "instance.cloudProxy" -}}
{{- if not (empty .Values.cloud_proxy) -}}
{{- printf "%s" .Values.cloud_proxy -}}
{{- else -}}
{{ default "" .Values.cloudProxy }}
{{- end -}}
{{- end -}}
18 changes: 9 additions & 9 deletions charts/core-instance/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ spec:
- name: TOLERATIONS
value: {{ .Values.calyptiaTolerations }}
- name: HTTP_PROXY
value: {{ .Values.httpProxy | quote }}
value: {{ template "instance.httpProxy" . }}
- name: HTTPS_PROXY
value: {{ .Values.httpsProxy | quote }}
value: {{ template "instance.httpsProxy" . }}
- name: NO_PROXY
value: {{ .Values.noProxy | quote }}
value: {{ template "instance.noProxy" . }}
- name: CLOUD_PROXY
value: {{ .Values.cloudProxy | quote }}
value: {{ template "instance.cloudProxy" . }}
- name: METRICS
value: {{ default false .Values.metrics | quote }}
image: {{ template "fromCloud.image" . }}
Expand All @@ -84,7 +84,7 @@ spec:
- name: CORE_INSTANCE
value: {{ default .Release.Name .Values.coreInstance | quote }}
- name: NAMESPACE
value: {{ .Release.Namespace | quote }}
value: {{ include "common.names.namespace" . | quote }}
- name: CLOUD_URL
value: {{ default "https://cloud-api.calyptia.com" .Values.cloudUrl | quote }}
- name: TOKEN
Expand All @@ -103,13 +103,13 @@ spec:
- name: METRICS_PORT
value: {{ .Values.metricsPort | toYaml }}
- name: HTTP_PROXY
value: {{ .Values.httpProxy | quote }}
value: {{ template "instance.httpProxy" . }}
- name: HTTPS_PROXY
value: {{ .Values.httpsProxy | quote }}
value: {{ template "instance.httpsProxy" . }}
- name: NO_PROXY
value: {{ .Values.noProxy | quote }}
value: {{ template "instance.noProxy" . }}
- name: CLOUD_PROXY
value: {{ .Values.cloudProxy | quote }}
value: {{ template "instance.cloudProxy" . }}
- name: METRICS
value: {{ default false .Values.metrics | quote }}
image: {{ template "toCloud.image" . }}
Expand Down
3 changes: 2 additions & 1 deletion charts/core-instance/tests/core-instance_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ tests:
registry: custom.io
repository: test/ingestcheck
tag: 1.2.3
# Use alternative forms to verify backwards compatible
httpProxy: https
cloudProxy: cloud
cloud_proxy: cloud
asserts:
# From Cloud
- equal:
Expand Down
4 changes: 2 additions & 2 deletions charts/core-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ images:
fromCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-from-cloud
tag: 3.2.0
tag: 3.2.1
pullSecrets: []
toCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-to-cloud
tag: 3.2.0
tag: 3.2.1
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions charts/core-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Operator chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 3.2.0
appVersion: "v3.2.0"
version: 3.2.1
appVersion: "v3.2.1"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
4 changes: 1 addition & 3 deletions charts/core-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ Thank you for installing the Calyptia Core operator chart: {{ .Chart.Name }}.

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

Review the Calyptia Core documentation for full details: <https://docs.calyptia.com/calyptia-core/getting-started/readme>

Support can be accessed via: <https://support.calyptia.com/>
Review the Calyptia Core documentation for full details: <https://docs.chronosphere.io/pipelines>

To run post-installation tests please use the standard helm approach: <https://helm.sh/docs/topics/chart_tests/>

Expand Down
2 changes: 1 addition & 1 deletion charts/core-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ images:
operator:
registry: ghcr.io
repository: calyptia/core-operator
tag: 3.2.0
tag: 3.2.1
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down