-
Notifications
You must be signed in to change notification settings - Fork 115
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
Use server-side diff by default #1556
Comments
I believe so. I'm not sure if that has any implications for Edit: Found this article about SSA that explains:
|
Based on a simple test - it looks like the annotation is still being set even with SSA; or something else isn't properly configured/set. I'm trying to deploy
I tried deploying it with SSA flag ( from pulumi_kubernetes.yaml import ConfigGroup
def remove_status_from_crd(obj):
if obj["kind"] == "CustomResourceDefinition":
try:
del obj["status"]
except KeyError:
pass
prometheus_crd = ConfigGroup(
"prometheus-crd",
files=[
"https://raw.githubusercontent.com/prometheus-community/helm-charts/main/charts/kube-prometheus-stack/crds/crd-prometheuses.yaml", # noqa: E501; pylint: disable=C0301
],
transformations=[
remove_status_from_crd,
],
) It's Docker Desktop kubernetes: $ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T20:58:09Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T20:59:07Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"} |
Right, the annotation is still present in both modes. I'm hoping to remove it from the SSA mode in the future. |
Have you tried : kubectl apply --server-side --field-manager=pulumi |
Is there documentation on how I would go about migrating to having this flag turned on? When I flip this to
|
I'm getting this exact issue with my local development using Minikube except I don't use Python, I use NodeJS. Have you found a solution because this is preventing my stuff from working? |
Update: Server-side diff/apply can now be enabled with the |
SSA mode was enabled in the v3.22.0 release |
is it to be reopened? The default was reverted: #2206 |
We rolled back this default in |
Server-side diff has been available since 1.16 (September 2019), so it should be pretty widely supported on deployed clusters by now. Most of the implementation work is done already, so the remaining work should mostly be testing, and then swapping server-side diff to be the default.
As of April 30, 2021, EKS and AKS still support 1.15 clusters, but it appears that this support will be ending soon with the recent upstream release of k8s 1.21.
There is one open issue that also needs investigation: #683
Once we're confident in the test coverage, the enableDryRun flag should flip polarity so that it defaults to True.
Edit: The
enableDryRun
flag has been deprecated in favor of theenableServerSideApply
flag in the v3.20.0 release, and will be removed in the next major release.The text was updated successfully, but these errors were encountered: