Skip to content

Commit ef430d1

Browse files
nightkrsbernauer
andauthored
Remove the deprecated pod enrichment controller (#321)
* Remove the deprecated pod enrichment controller Fixes #292 * Changelog * Removed remaining references to pod enrichment from the docs * Update docs/modules/commons-operator/pages/index.adoc Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de> * Fixed precommit --------- Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent eaca59f commit ef430d1

File tree

7 files changed

+9
-232
lines changed

7 files changed

+9
-232
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Removed
8+
9+
- BREAKING: Removed the deprecated pod enrichment controller ([#321]).
10+
711
### Added
812

913
- Aggregate emitted Kubernetes events on the CustomResources ([#318]).
@@ -13,6 +17,7 @@ All notable changes to this project will be documented in this file.
1317
- Append a dot (`.`) to the default cluster domain to reduce DNS requests ([#318]).
1418

1519
[#318]: https://github.com/stackabletech/commons-operator/pull/318
20+
[#321]: https://github.com/stackabletech/commons-operator/pull/321
1621

1722
## [24.11.0] - 2024-11-18
1823

docs/modules/commons-operator/pages/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Stackable Commons Operator
2-
:description: Learn about shared objects (AuthenticationClass, S3Bucket and S3Connection) and shared functionality (Pod enrichting, restarting) on the Stackable Data Platform.
2+
:description: Learn about shared objects (AuthenticationClass, S3Bucket and S3Connection) and shared functionality (restarting) on the Stackable Data Platform.
33
:github: https://github.com/stackabletech/commons-operator/
44
:crd: {crd-docs-base-url}/commons-operator/{crd-docs-version}/
55

@@ -23,4 +23,4 @@ You can also find the full CRD refererence documentation for all objects linked
2323
== Shared functionality
2424

2525
The commons operator implements functionality that is shared by all other Stackable operators.
26-
For example, it xref:pod-enrichment.adoc[adds additional information to Pods] which would otherwise have to be inferred and takes care of xref:restarter.adoc[restarting] Pods when necessary, for example to reload configuration settings in products that don't support hot reloading.
26+
For example, it takes care of xref:restarter.adoc[restarting] Pods when necessary, for example to reload configuration settings in products that don't support hot reloading.

docs/modules/commons-operator/pages/pod-enrichment.adoc

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/modules/commons-operator/pages/usage.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,3 @@ The commons-operator is used for multiple purposes:
88

99
|xref:restarter.adoc[]
1010
|A controller that watches Pod objects and their controllers and restarts them when required.
11-
12-
|xref:pod-enrichment.adoc[]
13-
|A controller that adds commonly used information to Pod objects.
14-
|===

docs/modules/commons-operator/partials/nav.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* xref:commons-operator:usage.adoc[]
33
* Concepts
44
** xref:commons-operator:restarter.adoc[]
5-
** xref:commons-operator:pod-enrichment.adoc[]
65
* xref:commons-operator:reference/index.adoc[]
76
** xref:commons-operator:reference/crds.adoc[]
87
*** {crd-docs}/authentication.stackable.tech/authenticationclass/v1alpha1/[AuthenticationClass {external-link-icon}^]

rust/operator-binary/src/main.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
mod pod_enrichment_controller;
21
mod restart_controller;
32

43
use built_info::PKG_VERSION;
@@ -61,18 +60,8 @@ async fn main() -> anyhow::Result<()> {
6160
let sts_restart_controller =
6261
restart_controller::statefulset::start(&client, &watch_namespace);
6362
let pod_restart_controller = restart_controller::pod::start(&client, &watch_namespace);
64-
let pod_enrichment_controller =
65-
pod_enrichment_controller::start(&client, &watch_namespace);
66-
pin_mut!(
67-
sts_restart_controller,
68-
pod_restart_controller,
69-
pod_enrichment_controller
70-
);
71-
futures::future::select(
72-
futures::future::select(sts_restart_controller, pod_restart_controller),
73-
pod_enrichment_controller,
74-
)
75-
.await;
63+
pin_mut!(sts_restart_controller, pod_restart_controller);
64+
futures::future::select(sts_restart_controller, pod_restart_controller).await;
7665
}
7766
}
7867

rust/operator-binary/src/pod_enrichment_controller.rs

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)