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: add script to generate helm install command #121

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

kasia-kujawa
Copy link
Contributor

@kasia-kujawa kasia-kujawa commented Jun 27, 2024

usage: make update-components-images IMAGES_FILE=/operator/scripts/images.txt

example helm install command generated by the script:

#!/usr/bin/env bash

readonly ROOT_DIR="$(dirname "$(dirname "${0}")")"

helm install test-openshift sumologic/sumologic \
  --set sumologic.accessId="dummy" \
  --set sumologic.accessKey="dummy" \
  --set sumologic.endpoint="http://receiver-mock.receiver-mock:3000/terraform/api/" \
  --set sumologic.scc.create=true \
  --set fluent-bit.securityContext.privileged=true \
  --set kube-prometheus-stack.prometheus-node-exporter.service.port=9200 \
  --set kube-prometheus-stack.prometheus-node-exporter.service.targetPort=9200 \
  --set fluentd.logs.containers.multiline.enabled=false \
  --set metrics-server.enabled=true \
  --set metrics-server.apiService.create=false \
  --set otelagent.enabled=true \
  --set telegraf-operator.enabled=true \
  --set falco.enabled=true \
  --set tailing-sidecar-operator.enabled=true \
  --set opentelemetry-operator.enabled=true \
  --version 2.19.1 \
  -n sumologic-system \
  --create-namespace -f "${ROOT_DIR}/tests/values.yaml" \
  --set instrumentation.instrumentationJobImage.image.repository=public.ecr.aws/sumologic/kubernetes-tools-kubectl@sha256 \
  --set instrumentation.instrumentationJobImage.image.tag=MISSING \
  --set kube-prometheus-stack.kube-state-metrics.image.repository=public.ecr.aws/sumologic/kube-state-metrics@sha256 \
  --set kube-prometheus-stack.kube-state-metrics.image.tag=473614d1c0de0f9f0b5314eab40d3172f5180332a2009be590ce474b85cb898e \
  --set kube-prometheus-stack.prometheus-node-exporter.image.repository=public.ecr.aws/sumologic/node-exporter@sha256 \
  --set kube-prometheus-stack.prometheus-node-exporter.image.tag=7acec4473ddf508514dca1d08335cfd071e345d7eca660793d59e09ef9f0491f \
  --set kube-prometheus-stack.prometheus.prometheusSpec.image.repository=public.ecr.aws/sumologic/prometheus@sha256 \
  --set kube-prometheus-stack.prometheus.prometheusSpec.image.sha=92c173c757018178920385bbb93d826ae5b5cab4706ac6b239e919ae6b3520b4 \
  --set kube-prometheus-stack.prometheus.prometheusSpec.image.tag=v2.39.0-ubi \
  --set kube-prometheus-stack.prometheusOperator.image.repository=public.ecr.aws/sumologic/prometheus-operator@sha256 \
  --set kube-prometheus-stack.prometheusOperator.image.sha=f98f265fd0609da354ca6cbb6ea3b56a88ebccfb2daff14896f7004aa4ffa174 \
  --set kube-prometheus-stack.prometheusOperator.image.tag=v0.59.2-ubi \
  --set kube-prometheus-stack.prometheusOperator.prometheusConfigReloader.image.repository=public.ecr.aws/sumologic/prometheus-config-reloader@sha256 \
  --set kube-prometheus-stack.prometheusOperator.prometheusConfigReloaderImage.sha=03d3ca5b7c96c88ff8de363371d89ead3be6ac0b74653da1ac2231bd1b0e386d \
  --set kube-prometheus-stack.prometheusOperator.prometheusConfigReloaderImage.tag=v0.59.2-ubi \
  --set kube-prometheus-stack.prometheusOperator.thanosImage.repository=public.ecr.aws/sumologic/thanos@sha256 \
  --set kube-prometheus-stack.prometheusOperator.thanosImage.sha=323ff1e3500fdbf594acfca19639911b5ed8d0a527b9742c264d5f5b1ce5d4cc \
  --set kube-prometheus-stack.prometheusOperator.thanosImage.tag=v0.28.0-ubi \
  --set metadata.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set metadata.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set metrics-server.image.registry=public.ecr.aws/sumologic \
  --set metrics-server.image.repository=metrics-server@sha256 \
  --set metrics-server.image.tag=d57ba890f7ea80a3afef709f6aa60b2ee989bc575e81565bfa664cd2fcfd2980 \
  --set opentelemetry-operator.kubeRBACProxy.image.repository=public.ecr.aws/sumologic/kube-rbac-proxy@sha256 \
  --set opentelemetry-operator.kubeRBACProxy.image.repository.tag=1153a4592746b05e019bde4d818d176ff9350c013f84d49829032540de882841 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.dotnet.repository=public.ecr.aws/sumologic/autoinstrumentation-dotnet@sha256 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.dotnet.tag=e99182dd7c0c8611cdc852bcc2e0866e635077b50b7e739022269cc8721f4109 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.java.repository=public.ecr.aws/sumologic/autoinstrumentation-java@sha256 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.java.tag=7fdb03d08173964f234f8262e872f67a42527173195b2e39cf56581c6a784f92 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.nodejs.repository=public.ecr.aws/sumologic/autoinstrumentation-nodejs@sha256 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.nodejs.tag=f6d2109be49cbfc725ca7f0ebbc06b74c699e55a7f18690e9959de8bcf294028 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.python.repository=public.ecr.aws/sumologic/autoinstrumentation-nodejs@sha256 \
  --set opentelemetry-operator.manager.autoInstrumentationImage.python.tag=f6d2109be49cbfc725ca7f0ebbc06b74c699e55a7f18690e9959de8bcf294028 \
  --set opentelemetry-operator.manager.collectorImage.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set opentelemetry-operator.manager.collectorImage.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set opentelemetry-operator.manager.image.repository=public.ecr.aws/sumologic/opentelemetry-operator@sha256 \
  --set opentelemetry-operator.manager.image.repository.tag=9c20ac72c03d539eaa4e2fd10e2ed02779a82e17eeafddcd8fc6836f846bc7e5 \
  --set otelcolInstrumentation.statefulset.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set otelcolInstrumentation.statefulset.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set otelevents.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set otelevents.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set otellogs.daemonset.initContainers.changeowner.image.repository=public.ecr.aws/sumologic/busybox@sha256 \
  --set otellogs.daemonset.initContainers.changeowner.image.tag=bc4b632a545fb8b797aa99d1e7cee8c042332c7cc849df30c945a8a7bd9f6c3a \
  --set otellogs.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set otellogs.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set pvcCleaner.job.image.repository=public.ecr.aws/sumologic/kubernetes-tools-kubectl@sha256 \
  --set pvcCleaner.job.image.tag=MISSING \
  --set sumologic.metrics.collector.otelcol.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set sumologic.metrics.collector.otelcol.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set sumologic.metrics.remoteWriteProxy.image.repository=public.ecr.aws/sumologic/nginx-unprivileged@sha256 \
  --set sumologic.metrics.remoteWriteProxy.image.tag=9aef85eed423d0bf6bce16eb0dce3d56d18c0aa7929627ed4fe7aef7aa749c1f \
  --set sumologic.otelcolImage.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set sumologic.otelcolImage.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set sumologic.setup.job.image.repository=public.ecr.aws/sumologic/kubernetes-setup@sha256 \
  --set sumologic.setup.job.image.tag=MISSING \
  --set sumologic.setup.job.initContainerImage.repository=public.ecr.aws/sumologic/busybox@sha256 \
  --set sumologic.setup.job.initContainerImage.tag=bc4b632a545fb8b797aa99d1e7cee8c042332c7cc849df30c945a8a7bd9f6c3a \
  --set tailing-sidecar-operator.kubeRbacProxy.image.repository=public.ecr.aws/sumologic/kube-rbac-proxy@sha256 \
  --set tailing-sidecar-operator.kubeRbacProxy.image.tag=1153a4592746b05e019bde4d818d176ff9350c013f84d49829032540de882841 \
  --set tailing-sidecar-operator.operator.image.repository=public.ecr.aws/sumologic/tailing-sidecar-operator@sha256 \
  --set tailing-sidecar-operator.operator.image.tag=4025b4e7536e548f02012f167584ba718b5764d7efa0e3a2ee1abf188f02b243 \
  --set tailing-sidecar-operator.sidecar.image.repository=public.ecr.aws/sumologic/tailing-sidecar@sha256 \
  --set tailing-sidecar-operator.sidecar.image.tag=MISSING \
  --set telegraf-operator.image.repository=public.ecr.aws/sumologic/telegraf-operator@sha256 \
  --set telegraf-operator.image.sidecarImage=registry.connect.redhat.com/sumologic/telegraf:@sha256:ca396dad12a289aea9136da713020d31b179e9f49aae61c48332d61086d1d059 \
  --set telegraf-operator.image.tag=88c3b5d9f8e9a419131c39e6e22c5aa7cfaab5157fe4c5cc928574f5a3cfda2c \
  --set tracesGateway.deployment.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set tracesGateway.deployment.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533 \
  --set tracesSampler.deployment.image.repository=public.ecr.aws/sumologic/sumologic-otel-collector@sha256 \
  --set tracesSampler.deployment.image.tag=986d8432eb84cad7c2ac69bdf5a48831a76d23d9d9cb08595e091b4f1f802533

@kasia-kujawa kasia-kujawa force-pushed the kk-generate-helm-install branch 6 times, most recently from 2370c99 to 7097f45 Compare June 28, 2024 08:56

readonly ROOT_DIR="$(dirname "$(dirname "${0}")")"

helm install test-openshift sumologic/sumologic \
Copy link
Contributor Author

@kasia-kujawa kasia-kujawa Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this command is not changed at this moment, it is only moved from tests/deploy_helm_chart.sh

@kasia-kujawa kasia-kujawa force-pushed the kk-generate-helm-install branch from 7097f45 to d1b9448 Compare June 28, 2024 09:53
@kasia-kujawa kasia-kujawa force-pushed the kk-generate-helm-install branch from d1b9448 to b31e320 Compare June 28, 2024 09:56
@kasia-kujawa kasia-kujawa marked this pull request as ready for review June 28, 2024 09:57
@kasia-kujawa kasia-kujawa requested a review from a team as a code owner June 28, 2024 09:57
@kasia-kujawa kasia-kujawa merged commit 57e924e into main Jul 1, 2024
3 checks passed
@kasia-kujawa kasia-kujawa deleted the kk-generate-helm-install branch July 1, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants