diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index c3aa54ff..4bb90cc0 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -15,7 +15,8 @@ on: - profile - custom test-mode-input: - description: The profile or the runner used + description: | + The profile or the runner used. Eg: `smoke-latest` or `amd64` (see test/interu.yaml) required: true test-suite: description: Name of the test-suite. Only used if test-mode is `custom` diff --git a/Tiltfile b/Tiltfile index fb84bcc0..ee0941c3 100644 --- a/Tiltfile +++ b/Tiltfile @@ -26,6 +26,14 @@ if os.path.exists('result'): # oci.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of # oci.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist) k8s_kind('Deployment', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}') +k8s_kind('DaemonSet', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}') + +# Optionally specify a custom Helm values file to be passed to the Helm deployment below. +# This file can for example be used to set custom telemetry options (like log level) which is not +# supported by helm(set). +helm_values = settings.get('helm_values', None) + +helm_override_image_repository = 'image.repository=' + registry + '/' + operator_name # Exclude stale CRDs from Helm chart, and apply the rest helm_crds, helm_non_crds = filter_yaml( @@ -34,8 +42,9 @@ helm_crds, helm_non_crds = filter_yaml( name=operator_name, namespace="stackable-operators", set=[ - 'image.repository=' + registry + '/' + operator_name, + helm_override_image_repository, ], + values=helm_values, ), api_version = "^apiextensions\\.k8s\\.io/.*$", kind = "^CustomResourceDefinition$", diff --git a/deploy/helm/hbase-operator/templates/_maintenance.tpl b/deploy/helm/hbase-operator/templates/_maintenance.tpl new file mode 100644 index 00000000..85afd7f2 --- /dev/null +++ b/deploy/helm/hbase-operator/templates/_maintenance.tpl @@ -0,0 +1,23 @@ +{{/* +Create a list of maintenance related env vars. +*/}} +{{- define "maintenance.envVars" -}} +{{- with .Values.maintenance }} +{{- if not .endOfSupportCheck.enabled }} +- name: EOS_DISABLED + value: "true" +{{- end }} +{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.mode }} +- name: EOS_CHECK_MODE + value: {{ .endOfSupportCheck.mode }} +{{ end }} +{{- if and .endOfSupportCheck.enabled .endOfSupportCheck.interval }} +- name: EOS_INTERVAL + value: {{ .endOfSupportCheck.interval }} +{{ end }} +{{- if not .customResourceDefinitions.maintain }} +- name: DISABLE_CRD_MAINTENANCE + value: "true" +{{- end }} +{{- end }} +{{- end }}