From 0de16afb18278c38500a473561f9025b3f5c88f6 Mon Sep 17 00:00:00 2001 From: Andreas Gkizas Date: Fri, 6 Oct 2023 16:18:35 +0300 Subject: [PATCH] Fixing script to read ascii code --- deploy/kubernetes/Makefile | 2 +- deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/Makefile b/deploy/kubernetes/Makefile index e4d8b474908..ba6aea9168d 100644 --- a/deploy/kubernetes/Makefile +++ b/deploy/kubernetes/Makefile @@ -1,7 +1,7 @@ ALL=elastic-agent-standalone elastic-agent-managed BEAT_VERSION=$(shell grep '^:stack-version:' ../../version/docs/version.asciidoc | cut -c 17- ) -BRANCH_VERSION=$(shell grep '^:doc-branch:' ../../version/docs/version.asciidoc | cut -c 14- ) +BRANCH_VERSION=$(shell cut -d. -f1-2 <<< '${BEAT_VERSION}') #variables needed for ci-create-kubernetes-templates-pull-request ELASTIC_AGENT_REPO=kibana diff --git a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml index 244003075e0..b06a0414ede 100644 --- a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml +++ b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml @@ -683,7 +683,7 @@ spec: # - -c # - >- # mkdir -p /etc/elastic-agent/inputs.d && - # wget -O - https://github.com/elastic/elastic-agent/archive/main.tar.gz | tar xz -C /etc/elastic-agent/inputs.d --strip=5 "elastic-agent-main/deploy/kubernetes/elastic-agent-standalone/templates.d" + # wget -O - https://github.com/elastic/elastic-agent/archive/8.8.tar.gz | tar xz -C /etc/elastic-agent/inputs.d --strip=5 "elastic-agent-8.8/deploy/kubernetes/elastic-agent-standalone/templates.d" # volumeMounts: # - name: external-inputs # mountPath: /etc/elastic-agent/inputs.d