Skip to content

Commit 58ab5ca

Browse files
committed
Add to DummyCluster
1 parent 058a828 commit 58ab5ca

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

crates/stackable-operator/crds/DummyCluster.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,15 @@ spec:
634634
required:
635635
- roleGroups
636636
type: object
637+
objectOverrides:
638+
default: []
639+
description: |-
640+
A list of generic Kubernetes objects, which are merged onto the objects that the operator
641+
creates.
642+
items:
643+
type: object
644+
x-kubernetes-preserve-unknown-fields: true
645+
type: array
637646
opaConfig:
638647
description: |-
639648
Configure the OPA stacklet [discovery ConfigMap](https://docs.stackable.tech/home/nightly/concepts/service_discovery)

crates/xtask/src/crd/dummy.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use stackable_operator::{
33
commons::resources::{JvmHeapLimits, Resources},
44
config::fragment::Fragment,
55
kube::CustomResource,
6+
patchinator::ObjectOverrides,
67
role_utils::Role,
78
schemars::JsonSchema,
89
status::condition::ClusterCondition,
@@ -27,7 +28,7 @@ pub mod versioned {
2728
status = "v1alpha1::DummyClusterStatus",
2829
namespaced,
2930
))]
30-
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
31+
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, Serialize)]
3132
#[schemars(crate = "stackable_operator::schemars")]
3233
#[serde(rename_all = "camelCase")]
3334
pub struct DummyClusterSpec {
@@ -48,6 +49,9 @@ pub mod versioned {
4849
secret_reference: stackable_operator::shared::secret::SecretReference,
4950
tls_client_details: stackable_operator::commons::tls_verification::TlsClientDetails,
5051

52+
#[serde(flatten)]
53+
pub object_overrides: ObjectOverrides,
54+
5155
// Already versioned
5256
client_authentication_details:
5357
stackable_operator::crd::authentication::core::v1alpha1::ClientAuthenticationDetails,

0 commit comments

Comments
 (0)