Skip to content

Commit 6db66d7

Browse files
bors[bot]nightkr
andauthored
Merge #305
305: Disable service links r=teozkr a=teozkr ## Description This causes K8s to generate a bunch of environment variables that may break the system being ran, causing issues such as stackabletech/spark-operator#256. This is technically breaking, but this "feature" is virtually unused anyway. ## Review Checklist - [ ] Code contains useful comments - [ ] (Integration-)Test cases added (or not applicable) - [ ] Documentation added (or not applicable) - [ ] Changelog updated (or not applicable) Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de>
2 parents 9bbcf75 + 5513bf5 commit 6db66d7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ All notable changes to this project will be documented in this file.
88
- BREAKING: kube 0.66 -> 0.68 ([#303]).
99
- BREAKING: k8s-openapi 0.13 -> 0.14 ([#303]).
1010

11+
### Removed
12+
- Auto-generated service link environment variables for built pods ([#305]).
13+
1114
[#303]: https://github.com/stackabletech/operator-rs/pull/303
15+
[#305]: https://github.com/stackabletech/operator-rs/pull/305
1216

1317
## [0.9.0] - 2022-01-27
1418

src/builder.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,10 @@ impl PodBuilder {
10931093
security_context: self.security_context.clone(),
10941094
tolerations: self.tolerations.clone(),
10951095
volumes: self.volumes.clone(),
1096+
// Legacy feature for ancient Docker images
1097+
// In practice, this just causes a bunch of unused environment variables that may conflict with other uses,
1098+
// such as https://github.com/stackabletech/spark-operator/pull/256.
1099+
enable_service_links: Some(false),
10961100
..PodSpec::default()
10971101
}
10981102
}

0 commit comments

Comments
 (0)