From 40ee998c7aa0146eeeca7a90700b9d9ad7ca5d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teo=20Klestrup=20R=C3=B6ijezon?= Date: Thu, 3 Feb 2022 16:32:17 +0100 Subject: [PATCH 1/2] Disable service links --- src/builder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/builder.rs b/src/builder.rs index 48cdbfe56..69cad1aa8 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1093,6 +1093,10 @@ impl PodBuilder { security_context: self.security_context.clone(), tolerations: self.tolerations.clone(), volumes: self.volumes.clone(), + // Legacy feature for ancient Docker images + // In practice, this just causes a bunch of unused environment variables that may conflict with other uses, + // such as https://github.com/stackabletech/spark-operator/pull/256. + enable_service_links: Some(false), ..PodSpec::default() } } From 5513bf590d439a5991b4ae4222daa99155ad433b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teo=20Klestrup=20R=C3=B6ijezon?= Date: Thu, 3 Feb 2022 16:35:22 +0100 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c964dc629..558cccad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,11 @@ All notable changes to this project will be documented in this file. - BREAKING: kube 0.66 -> 0.68 ([#303]). - BREAKING: k8s-openapi 0.13 -> 0.14 ([#303]). +### Removed +- Auto-generated service link environment variables for built pods ([#305]). + [#303]: https://github.com/stackabletech/operator-rs/pull/303 +[#305]: https://github.com/stackabletech/operator-rs/pull/305 ## [0.9.0] - 2022-01-27