Skip to content

Conversation

@TQJADE
Copy link
Contributor

@TQJADE TQJADE commented Aug 29, 2024

What changes were proposed in this pull request?

[SPARK-49453] Add quotes for number in values.yaml

Why are the changes needed?

I have another value.yaml as below:

operatorConfiguration:
  dynamicConfig:
  enable: true
  create: true
  data:
    spark.kubernetes.operator.watchedNamespaces: "default, spark-1"

After running below with two values.yaml:
helm install spark-kubernetes-operator --create-namespace -f build-tools/helm/spark-kubernetes-operator/values.yaml -f tests/e2e/helm/dynamic-config-values.yaml build-tools/helm/spark-kubernetes-operator/
The generated configmap data field does not contains the line spark.kubernetes.operator.watchedNamespaces: "default, spark-1". Note that if you run helm install --dry-run, the record exist

Does this PR introduce any user-facing change?

no

How was this patch tested?

test locally

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the BUILD label Aug 29, 2024
@TQJADE TQJADE changed the title Add quotes for number [SPARK-49453] Add quotes for number Aug 29, 2024
data:
# Spark Operator Config Runtime Properties Overrides. e.g.
spark.kubernetes.operator.reconciler.intervalSeconds: 60
spark.kubernetes.operator.reconciler.intervalSeconds: "60"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean this causes a corruption when you add a new line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants