Skip to content

Commit 57d5ac2

Browse files
committed
camelCase structs
1 parent fbe5ac4 commit 57d5ac2

File tree

2 files changed

+7
-12
lines changed
  • deploy/helm/spark-k8s-operator/crds
  • rust/operator-binary/src/connect

2 files changed

+7
-12
lines changed

deploy/helm/spark-k8s-operator/crds/crds.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,13 +1117,6 @@ spec:
11171117
spec:
11181118
description: A Spark cluster history server component. This resource is managed by the Stackable operator for Apache Spark. Find more information on how to use it in the [operator documentation](https://docs.stackable.tech/home/nightly/spark-k8s/usage-guide/history-server).
11191119
properties:
1120-
clusterConfig:
1121-
default: {}
1122-
description: |-
1123-
Global Spark history server configuration that applies to all roles.
1124-
1125-
This was previously used to hold the listener configuration, which has since moved to the role configuration.
1126-
type: object
11271120
image:
11281121
anyOf:
11291122
- required:
@@ -2147,8 +2140,8 @@ spec:
21472140
type: object
21482141
server:
21492142
default:
2150-
role_config:
2151-
listener_class: cluster-internal
2143+
roleConfig:
2144+
listenerClass: cluster-internal
21522145
description: A Spark Connect server definition.
21532146
properties:
21542147
cliOverrides:
@@ -2331,12 +2324,12 @@ spec:
23312324
description: In the `podOverrides` property you can define a [PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podtemplatespec-v1-core) to override any property that can be set on a Kubernetes Pod. Read the [Pod overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#pod-overrides) for more information.
23322325
type: object
23332326
x-kubernetes-preserve-unknown-fields: true
2334-
role_config:
2327+
roleConfig:
23352328
default:
2336-
listener_class: cluster-internal
2329+
listenerClass: cluster-internal
23372330
description: Global role config settings for the Spark Connect Server.
23382331
properties:
2339-
listener_class:
2332+
listenerClass:
23402333
default: cluster-internal
23412334
description: This field controls which [ListenerClass](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass.html) is used to expose the Spark Connect services.
23422335
type: string

rust/operator-binary/src/connect/crd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pub mod versioned {
104104
/// This struct is a wrapper for the `ServerConfig` in order to keep the `spec.server.roleConfig` setting consistent.
105105
/// It is required since Spark Connect does not utilize the Stackable `Role` and therefore does not offer a `roleConfig`.
106106
#[derive(Clone, Debug, Default, JsonSchema, PartialEq, Serialize, Deserialize)]
107+
#[serde(rename_all = "camelCase")]
107108
pub struct SparkConnectServerConfigWrapper {
108109
#[serde(flatten)]
109110
pub config: Option<CommonConfiguration<ServerConfigFragment, JavaCommonConfig>>,
@@ -113,6 +114,7 @@ pub mod versioned {
113114

114115
/// Global role config settings for the Spark Connect Server.
115116
#[derive(Clone, Debug, JsonSchema, PartialEq, Serialize, Deserialize)]
117+
#[serde(rename_all = "camelCase")]
116118
pub struct SparkConnectServerRoleConfig {
117119
/// This field controls which [ListenerClass](DOCS_BASE_URL_PLACEHOLDER/listener-operator/listenerclass.html)
118120
/// is used to expose the Spark Connect services.

0 commit comments

Comments
 (0)