[8.17] [Observability Onboarding] Update values.yml file URL for the OTel K8s flow (#205694) (#212388)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Observability Onboarding] Update values.yml file URL for the OTel
K8s flow (#205694)](https://github.com/elastic/kibana/pull/205694)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Giorgos
Bamparopoulos","email":"georgios.bamparopoulos@elastic.co"},"sourceCommit":{"committedDate":"2025-01-22T15:41:28Z","message":"[Observability
Onboarding] Update values.yml file URL for the OTel K8s flow
(#205694)\n\n## 📓 Summary\r\n🛑 **Don't merge before the 8.17.1 release
as the file doesn't exist
in\r\n[v8.17.0](https://github.com/elastic/elastic-agent/tree/v8.17.0/deploy/helm/edot-collector/kube-stack),\r\nas
the [backport
PR](https://github.com/elastic/elastic-agent/pull/6267)\r\nwas merged
the day of the release.**\r\n\r\nUpdates the URL of the `values.yml`
file for the OTel onboarding\r\nKubernetes flow using the relevant
release tag.\r\n\r\nThe file is available in the `elastic-agent` repo
under
the\r\n[deploy/helm/edot-collector/kube-stack/values.yaml](https://github.com/elastic/elastic-agent/blob/v8.16.2/deploy/helm/edot-collector/kube-stack/values.yaml)\r\npath.\r\n\r\n###
8.16 branch\r\n<img width=\"1156\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/b1e3848b-7d1a-4d50-9968-d124859a054f\"\r\n/>\r\n\r\n###
main branch\r\n<img width=\"1152\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/e0b33a08-405d-475d-af48-0bbc93abfa27\"\r\n/>\r\n\r\nCloses
https://github.com/elastic/kibana/issues/197644\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"8580f4f4f169bbf23cabdb970e20ed1482dc003b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","backport:version","v8.18.0"],"title":"[Observability
Onboarding] Update values.yml file URL for the OTel K8s
flow","number":205694,"url":"https://github.com/elastic/kibana/pull/205694","mergeCommit":{"message":"[Observability
Onboarding] Update values.yml file URL for the OTel K8s flow
(#205694)\n\n## 📓 Summary\r\n🛑 **Don't merge before the 8.17.1 release
as the file doesn't exist
in\r\n[v8.17.0](https://github.com/elastic/elastic-agent/tree/v8.17.0/deploy/helm/edot-collector/kube-stack),\r\nas
the [backport
PR](https://github.com/elastic/elastic-agent/pull/6267)\r\nwas merged
the day of the release.**\r\n\r\nUpdates the URL of the `values.yml`
file for the OTel onboarding\r\nKubernetes flow using the relevant
release tag.\r\n\r\nThe file is available in the `elastic-agent` repo
under
the\r\n[deploy/helm/edot-collector/kube-stack/values.yaml](https://github.com/elastic/elastic-agent/blob/v8.16.2/deploy/helm/edot-collector/kube-stack/values.yaml)\r\npath.\r\n\r\n###
8.16 branch\r\n<img width=\"1156\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/b1e3848b-7d1a-4d50-9968-d124859a054f\"\r\n/>\r\n\r\n###
main branch\r\n<img width=\"1152\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/e0b33a08-405d-475d-af48-0bbc93abfa27\"\r\n/>\r\n\r\nCloses
https://github.com/elastic/kibana/issues/197644\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"8580f4f4f169bbf23cabdb970e20ed1482dc003b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205694","number":205694,"mergeCommit":{"message":"[Observability
Onboarding] Update values.yml file URL for the OTel K8s flow
(#205694)\n\n## 📓 Summary\r\n🛑 **Don't merge before the 8.17.1 release
as the file doesn't exist
in\r\n[v8.17.0](https://github.com/elastic/elastic-agent/tree/v8.17.0/deploy/helm/edot-collector/kube-stack),\r\nas
the [backport
PR](https://github.com/elastic/elastic-agent/pull/6267)\r\nwas merged
the day of the release.**\r\n\r\nUpdates the URL of the `values.yml`
file for the OTel onboarding\r\nKubernetes flow using the relevant
release tag.\r\n\r\nThe file is available in the `elastic-agent` repo
under
the\r\n[deploy/helm/edot-collector/kube-stack/values.yaml](https://github.com/elastic/elastic-agent/blob/v8.16.2/deploy/helm/edot-collector/kube-stack/values.yaml)\r\npath.\r\n\r\n###
8.16 branch\r\n<img width=\"1156\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/b1e3848b-7d1a-4d50-9968-d124859a054f\"\r\n/>\r\n\r\n###
main branch\r\n<img width=\"1152\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/e0b33a08-405d-475d-af48-0bbc93abfa27\"\r\n/>\r\n\r\nCloses
https://github.com/elastic/kibana/issues/197644\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"8580f4f4f169bbf23cabdb970e20ed1482dc003b"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/207866","number":207866,"state":"MERGED","mergeCommit":{"sha":"0d22f08c4bd7da291ab6037980512be9b57ce5d7","message":"[8.x]
[Observability Onboarding] Update values.yml file URL for the OTel K8s
flow (#205694) (#207866)\n\n# Backport\n\nThis will backport the
following commits from `main` to `8.x`:\n- [[Observability Onboarding]
Update values.yml file URL for the OTel\nK8s flow
(#205694)](https://github.com/elastic/kibana/pull/205694)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by:
Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>"}}]}]
BACKPORT-->
This commit is contained in:
Giorgos Bamparopoulos 2025-02-26 16:35:48 +00:00 committed by GitHub
parent f65b7a1d66
commit 899a7eb5da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,8 +32,6 @@ import { useKubernetesFlow } from '../kubernetes/use_kubernetes_flow';
const OTEL_HELM_CHARTS_REPO = 'https://open-telemetry.github.io/opentelemetry-helm-charts';
const OTEL_KUBE_STACK_VERSION = '0.3.3';
const OTEL_KUBE_STACK_VALUES_FILE_URL =
'https://raw.githubusercontent.com/elastic/opentelemetry/refs/heads/8.16/resources/kubernetes/operator/helm/values.yaml';
const CLUSTER_OVERVIEW_DASHBOARD_ID = 'kubernetes_otel-cluster-overview';
export const OtelKubernetesPanel: React.FC = () => {
@ -51,6 +49,9 @@ export const OtelKubernetesPanel: React.FC = () => {
);
}
const otelKubeStackValuesFileUrl = data
? `https://raw.githubusercontent.com/elastic/elastic-agent/refs/tags/v${data.elasticAgentVersionInfo.agentBaseVersion}/deploy/helm/edot-collector/kube-stack/values.yaml`
: '';
const namespace = 'opentelemetry-operator-system';
const addRepoCommand = `helm repo add open-telemetry '${OTEL_HELM_CHARTS_REPO}' --force-update`;
const installStackCommand = data
@ -61,7 +62,7 @@ kubectl create secret generic elastic-secret-otel \\
--from-literal=elastic_api_key='${data.apiKeyEncoded}'
helm install opentelemetry-kube-stack open-telemetry/opentelemetry-kube-stack \\
--namespace ${namespace} \\
--values '${OTEL_KUBE_STACK_VALUES_FILE_URL}' \\
--values '${otelKubeStackValuesFileUrl}' \\
--version '${OTEL_KUBE_STACK_VERSION}'`
: undefined;
@ -156,7 +157,7 @@ helm install opentelemetry-kube-stack open-telemetry/opentelemetry-kube-stack \\
<EuiFlexItem grow={false}>
<EuiButtonEmpty
iconType="download"
href={OTEL_KUBE_STACK_VALUES_FILE_URL}
href={otelKubeStackValuesFileUrl}
flush="left"
target="_blank" // The `download` attribute does not work cross-origin so it's better to open the file in a new tab
data-test-subj="observabilityOnboardingOtelKubernetesPanelDownloadValuesFileButton"