-
Notifications
You must be signed in to change notification settings - Fork 66
Set some default resource requests on the workspace pod #707
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
Changes from all commits
928cbab
c24b663
14764ef
fda6898
72c9eb0
c48402c
796f41c
f4f2f9a
ac134bd
ecb323c
ea811b6
8008704
d5d708c
2fb59f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,6 @@ const ( | |
SecurityProfileBaseline SecurityProfile = "baseline" | ||
// SecurityProfileRestricted applies the restricted security profile. | ||
SecurityProfileRestricted SecurityProfile = "restricted" | ||
|
||
// SecurityProfileBaselineDefaultImage is the default image used when the security profile is 'baseline'. | ||
SecurityProfileBaselineDefaultImage = "pulumi/pulumi:latest" | ||
// SecurityProfileRestrictedDefaultImage is the default image used when the security profile is 'restricted'. | ||
SecurityProfileRestrictedDefaultImage = "pulumi/pulumi:latest-nonroot" | ||
Comment on lines
-37
to
-41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rationale: moving these constants and the associated 'defaulting' logic to See the latest in webhook scaffolding: kubernetes-sigs/kubebuilder#4150 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me say, the benefit of applying defaults eagerly (with a webhook) rather than lazily (during reconciliation) is stability; one may change the default later without affecting existing workloads. The implicit becomes explicit. |
||
) | ||
|
||
// WorkspaceSpec defines the desired state of Workspace | ||
|
@@ -47,7 +42,11 @@ type WorkspaceSpec struct { | |
// +kubebuilder:default="default" | ||
ServiceAccountName string `json:"serviceAccountName,omitempty"` | ||
|
||
// SecurityProfile applies a security profile to the workspace, 'restricted' by default. | ||
// SecurityProfile applies a security profile to the workspace. | ||
// The restricted profile (default) runs the pod as a non-root user and with a security context that conforms with | ||
// the Restricted policy of the Pod Security Standards. | ||
// The baseline profile runs the pod as the root user and with a security context that conforms with | ||
// the Baseline policy of the Pod Security Standards. | ||
// +kubebuilder:default="restricted" | ||
// +optional | ||
SecurityProfile SecurityProfile `json:"securityProfile,omitempty"` | ||
|
Uh oh!
There was an error while loading. Please reload this page.