-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow pod sec context to be overridden #528
Conversation
3223578
to
3a335a1
Compare
main.go
Outdated
metricsEndpoint = flag.String("metrics-endpoint", "/metrics", "Metrics endpoint.") | ||
metricsPrefix = flag.String("metrics-prefix", "", "Prefix for the metrics.") | ||
ingressUrlFormat = flag.String("ingress-url-format", "", "Ingress URL format.") | ||
master = flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.") |
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.
go fmt ./... reformatted this.
main.go
Outdated
metricsPort = flag.String("metrics-port", "10254", "Port for the metrics endpoint.") | ||
metricsEndpoint = flag.String("metrics-endpoint", "/metrics", "Metrics endpoint.") | ||
metricsPrefix = flag.String("metrics-prefix", "", "Prefix for the metrics.") | ||
overridePodSecContext = flag.Bool("override-pod-sec-context", false, "Whether to override existing pod security context with patching.") |
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 don't think we need a flag to control this. Always overriding as long as users explicitly specify a PodSecurityContext
in their SparkApplication
s seems fine to me.
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.
Ok sure I had it this way but was not sure if people want more control.
@liyinan926 ready to merge. :) |
For people who still have problems to get it working. |
I'm still facing problem. add below values along with memory and core but sill driver and executor runs in root user.
web-hook service is running in spark-operator name space. now using below command to deploy spark app. any help appreciated. |
Address partially #505, at least on Openshift.