-
Notifications
You must be signed in to change notification settings - Fork 552
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
support for definining cmd arguments #8401
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you need to sign CLA, write at least one unit test that uses additional command line flags and last but not least change the PR cover letter as release notes will not be rendered correctly.
5c904f2
to
5a66ecd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Let's wait for @RafalKorepta (or the @redpanda-data/k8s team in general) to give the final 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add one e2e test?
89d226a
to
936059b
Compare
Retrying failed tests. |
--- | ||
apiVersion: redpanda.vectorized.io/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: cluster | ||
status: | ||
replicas: 1 | ||
restarting: false | ||
conditions: | ||
- type: ClusterConfigured | ||
status: "True" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in the full scope of this e2e test but it would be better if we could confirm if the redpanda
command includes the new flags and not just if the container was launched. I think if we can confirm that it does apply the flags correctly that should be enough for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect this to be covered in the rest of the testing suite. See here for example: https://github.com/redpanda-data/redpanda/pull/8401/files#diff-0cfeba1779bdecfec8476b8602a73be2ab7de5892aec5463b2866bc66f4b42b2R805
src/go/k8s/tests/e2e/additional-cmdline-arguments/02-cleanup.yaml
Outdated
Show resolved
Hide resolved
--- | ||
apiVersion: redpanda.vectorized.io/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: cluster | ||
status: | ||
replicas: 1 | ||
restarting: false | ||
conditions: | ||
- type: ClusterConfigured | ||
status: "True" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved to 00-assert.yaml
as we need to wait for cluster
to report configured condition.
"--default-log-level=debug", | ||
) | ||
args["overprovisioned"] = "" | ||
args["kernel-page-cache"] = "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of this change linter stated to complain:
pkg/resources/ingress.go:99:68: string `true` has 2 occurrences, make it a constant (goconst)
--
| r.annotations["nginx.ingress.kubernetes.io/force-ssl-redirect"] = "true"
https://buildkite.com/redpanda/redpanda/builds/22710#01862dcd-a745-4e05-adec-77c7ba803d1e/408-477
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorted
…tional_cmdline_args support for definining cmd arguments
…ditional_cmdline_args support for definining cmd arguments
Sometimes we need to pass new command line arguments to Redpanda, in order to enable functionality not necessarily managed by the Cluster spec. This PR adds a new field in the spec that allows us to do just that. For example a cluster spec that would use this feature would look like this:
Backports Required
Release Notes
Improvements
additionalCommandlineArguments
under theconfiguration
block that allows additional command line arguments to be passed to the redpanda command line.