From a24f124eb8c0d2436cdeb77eca61b286d6da4234 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Sat, 11 Mar 2023 00:04:40 -0500 Subject: [PATCH] [chore] generate Kubernetes manifests (part 1) (#790) * generate kubernetes manifests Signed-off-by: Pierre Tessier * add generated k8s manifest to yamlignore Signed-off-by: Pierre Tessier * remove manifest to setup yamllint Signed-off-by: Pierre Tessier --------- Signed-off-by: Pierre Tessier Co-authored-by: Carter Socha <43380952+cartersocha@users.noreply.github.com> --- .yamlignore | 1 + .yamllint | 2 +- Makefile | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .yamlignore diff --git a/.yamlignore b/.yamlignore new file mode 100644 index 0000000000..ef55801113 --- /dev/null +++ b/.yamlignore @@ -0,0 +1 @@ +kubernetes/opentelemetry-demo.yaml diff --git a/.yamllint b/.yamllint index 699e847705..75ffc8bdd0 100644 --- a/.yamllint +++ b/.yamllint @@ -14,7 +14,7 @@ extends: default -ignore-from-file: .gitignore +ignore-from-file: [.gitignore, .yamlignore] rules: document-start: disable diff --git a/Makefile b/Makefile index d4dc557a6e..6e7f7225a2 100644 --- a/Makefile +++ b/Makefile @@ -101,3 +101,9 @@ run-tests: .PHONY: generate-protobuf generate-protobuf: ./ide-gen-proto.sh + +.PHONY: generate-kubernetes-manifests +generate-kubernetes-manifests: + helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts + helm repo update + helm template opentelemetry-demo open-telemetry/opentelemetry-demo | sed '/helm.sh\/chart\:/d' | sed '/helm.sh\/hook/d' | sed '/managed-by\: Helm/d' > kubernetes/opentelemetry-demo.yaml