Skip to content

Commit d8cbea8

Browse files
chore(stackable-operator)!: Version common CRDs (#968)
* chore: Add stackable-versioned dependency * chore: Move crd.rs file into module folder * chore: Move code into crd module * docs: Adjust and fix doc comments * chore: Version S3 CRDs * chore: Split S3 types and impl blocks * test: Fix AuthenticationClass doc test * chore: Version Kerberos auth provider * chore: Version LDAP auth provider * chore: Version OIDC auth provider * chore: Version static auth provider * chore: Version TLS auth provider * chore: Version core auth CRDs * docs: Fix doc comments * docs: Import url::Url for docs only * chore: Version Listener CRDs * test: Fix authentication doc test * chore: Add changelog entry * chore: Adjust imports * chore: Apply suggestion Co-authored-by: Nick <[email protected]> * chore: Adjust imports * docs: Fix doc comment reference * chore: Fix typo in comment Co-authored-by: Nick <[email protected]> --------- Co-authored-by: Nick <[email protected]> Co-authored-by: Nick Larsen <[email protected]>
1 parent 5fdc47a commit d8cbea8

File tree

34 files changed

+1161
-943
lines changed

34 files changed

+1161
-943
lines changed

crates/stackable-operator/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ All notable changes to this project will be documented in this file.
4848

4949
- BREAKING: Inject vector aggregator address into vector config file using an environment variable ([#1000]).
5050

51+
### Changed
52+
53+
- BREAKING: Version common CRD structs and enums ([#968]).
54+
- All CRD-related types and function now reside in the `stackable_operator::crd` module.
55+
- Each CRD-related struct and enum has been versioned. The initial version is `v1alpha1`.
56+
- The `static` authentication provider must now be imported using `r#static`.
57+
- Import are now more granular in general.
58+
59+
[#968]: https://github.com/stackabletech/operator-rs/pull/968
5160
[#1000]: https://github.com/stackabletech/operator-rs/pull/1000
5261

5362
## [0.89.1] - 2025-04-02

crates/stackable-operator/src/cluster_resources.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ use crate::{
3232
client::{Client, GetApi},
3333
commons::{
3434
cluster_operation::ClusterOperation,
35-
listener::Listener,
3635
resources::{
3736
ComputeResource, LIMIT_REQUEST_RATIO_CPU, LIMIT_REQUEST_RATIO_MEMORY,
3837
ResourceRequirementsExt, ResourceRequirementsType,
3938
},
4039
},
40+
crd::listener,
4141
kvp::{
4242
Label, LabelError, Labels,
4343
consts::{K8S_APP_INSTANCE_KEY, K8S_APP_MANAGED_BY_KEY, K8S_APP_NAME_KEY},
@@ -205,7 +205,7 @@ impl ClusterResource for Service {}
205205
impl ClusterResource for ServiceAccount {}
206206
impl ClusterResource for RoleBinding {}
207207
impl ClusterResource for PodDisruptionBudget {}
208-
impl ClusterResource for Listener {}
208+
impl ClusterResource for listener::v1alpha1::Listener {}
209209

210210
impl ClusterResource for Job {
211211
fn pod_spec(&self) -> Option<&PodSpec> {
@@ -646,7 +646,7 @@ impl ClusterResources {
646646
self.delete_orphaned_resources_of_kind::<ServiceAccount>(client),
647647
self.delete_orphaned_resources_of_kind::<RoleBinding>(client),
648648
self.delete_orphaned_resources_of_kind::<PodDisruptionBudget>(client),
649-
self.delete_orphaned_resources_of_kind::<Listener>(client),
649+
self.delete_orphaned_resources_of_kind::<listener::v1alpha1::Listener>(client),
650650
)?;
651651

652652
Ok(())

crates/stackable-operator/src/commons/authentication/mod.rs

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

0 commit comments

Comments
 (0)