salmon-byte-43409
09/17/2024, 8:32 AMrendered
});`
Naturally, this works on my machine but I cannot get it to create the files on other machines or the CI environment using the same plugin versions (pulumi v3.131.0 and kubernetes 4.15.0).
The only difference I can spot is that locally pulumi preview
prints the additional line with rendered file ..
which is not printed on the other environments.
kubernetes:apps/v1:Deployment (backend-api):
warning: rendered YAML will contain a secret value in plaintext
warning: rendered YAML will contain a secret value in plaintext
warning: rendered file /home/work/..../1-manifest/apps_v1-deployment-.....yaml contains a secret value in plaintext
I tried looking at the provider code and rendered file
is printed in Create()
and Update()
methods so my only guess is that for some reason these are not invoked.
Setting PULUMI_K8S_ENABLE_SERVER_SIDE_APPLY=false
does not create the yaml files locally but setting it to true on the other environments does not help.hallowed-photographer-31251
09/17/2024, 4:13 PMsalmon-byte-43409
09/17/2024, 7:45 PMhallowed-photographer-31251
09/17/2024, 7:57 PMhallowed-photographer-31251
09/17/2024, 8:06 PMsalmon-byte-43409
09/17/2024, 8:36 PMdynamically named namespace that doesn’t exist on the cluster yetI understand that renderYamlToDirectory and kubeconfig are mutually exclusive. From your statement it seems that rendering yaml also requires connection to the cluster.
hallowed-photographer-31251
09/17/2024, 8:39 PMsalmon-byte-43409
09/17/2024, 8:41 PMhallowed-photographer-31251
09/17/2024, 8:41 PM--logtostderr --logflow -v=9
to confirm if this is actually what’s happening — you’ll see a “cannot preview” messagesalmon-byte-43409
09/17/2024, 8:43 PMgvkExists check failed due to unreachable cluster
cannot preview Create(urn:pulumi:<stack-name>::services::kubernetes:core/v1:ConfigMap::.....)
I cannot comprehend how it happens to work on my dev environment. It must be something related to resolving some external resources but aws login is setup on both placessalmon-byte-43409
09/17/2024, 8:50 PMsalmon-byte-43409
09/17/2024, 9:39 PM[provider: urn:pulumi:...::services::pulumi:providers:kubernetes::k8sProvider::792acc7b-8a8d-46f3-b714-8ce66a62bb8d => urn:pulumi:...::services::pulumi:providers:kubernetes::k8sProvider::output<string>]
hallowed-photographer-31251
09/17/2024, 9:40 PMsalmon-byte-43409
09/17/2024, 9:42 PMhallowed-photographer-31251
09/17/2024, 9:43 PMsalmon-byte-43409
09/17/2024, 10:04 PMhallowed-photographer-31251
09/17/2024, 10:24 PMsalmon-byte-43409
09/22/2024, 12:08 PMclusterIdentifier
and the resources aren't getting replaced anymore but I still can't get my CI or other environments other than my local to save the rendered yaml files.
The only provider diff I have is replacing kubeconfig with renderYamlToDirectory
which makes sense.
pulumi:providers:kubernetes k8sProvider update [diff: +renderYamlToDirectory-kubeconfig]
Turns out only pulumi up
renders the files reliably so what I ended up doing is copying the stack into a temporary one, running pulumi up to get the files and then removing the temp stack.