Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClusterConfig: writeDeadline does not work because only write_deadline is recognized #308

Open
Jank1310 opened this issue Jan 8, 2021 · 2 comments

Comments

@Jank1310
Copy link

Jank1310 commented Jan 8, 2021

It seems that in the PR #137 the writeDeadline option was not converted to camel case. Maybe intentional?

WriteDeadline string `json:"write_deadline,omitempty"`

it should be

WriteDeadline`    string `json:"writeDeadline,omitempty"`

The nats-operator crds have also still write_deadline defined:

https://github.com/nats-io/k8s/blob/b55687a97a5fd55485e1af302fbdbe43d2d3b968/helm/charts/nats-operator/crds/customresourcedefinition.yaml#L42

The problem is a) the inconsistency in naming and b) the wrong example config(s) e.g.

@wallyqs
Copy link
Member

wallyqs commented Jan 8, 2021

Thanks for the report, we have to make it consistent to be in camel case as in others.

@JackRhodes
Copy link

JackRhodes commented Dec 16, 2021

We've just hit this issue as well. It'd be great if this could be fixed - or if the example config could be adjusted to show the value as snake case if fixing the actual issue is too low priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants