-
Notifications
You must be signed in to change notification settings - Fork 233
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
PodSecurityPolicy switch #218
Conversation
* new config option features.enabled_psp * regenerate kubeadm config every upgrade
/hold |
/test pull-kubeone-e2e |
/hold cancel |
) | ||
|
||
var ( | ||
defaultAdmissionPlugins = []string{ |
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.
Are those admission plugins same for all Kubernetes versions?
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.
for what we currently support — yes, maybe that will be changed in the future
} | ||
} | ||
|
||
func boolPtr(b bool) *bool { |
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.
A follow up: create a package for such functions or check does client-go ships something.
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 tried to find such thing in k8s.io libs, but seems like everyone agree that "small copy is better then small dependency" and no one exports it.
pkg/features/activate.go
Outdated
} | ||
|
||
// KubeadmActivate features in cluster config | ||
func KubeadmActivate(featuresCfg config.Features, clusterConfig *kubeadmv1beta1.ClusterConfiguration) { |
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.
At the first thought I was unsure what this function does. A better function name or improved comment would be appreciated.
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'm all open for better name suggestions
/test pull-kubeone-lint |
/approve |
LGTM label has been added. Git tree hash: 7e171644b3fb1852cd4a988ffba610194157b52a
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xmudrii The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Allows enable/disable PodSecurityPolicy admission plugin
Fixes #195