billowy-army-68599
05/18/2022, 7:50 AMdry-teacher-74595
05/18/2022, 6:08 PMdry-teacher-74595
05/18/2022, 10:39 PMskip-crds
flag, is there a way to pass this to the pulumi helm object?powerful-planet-88446
05/20/2022, 1:58 AMpowerful-planet-88446
05/20/2022, 1:58 AMpowerful-planet-88446
05/20/2022, 1:58 AMadorable-computer-41765
05/20/2022, 2:56 PMred-leather-22955
05/20/2022, 6:41 PM{
provider: cluster.provider,
}
as the third parameter(opts), I tried converting this to Python as:
opts=pulumi.ResourceOptions(provider=cluster.provider),
However my IDE complains about it being the wrong type (Output[Provider] instead of ProviderResource) and when running pulumi up
, I get:
ValueError: Attempted to register resource kubernetes:apps/v1:Deployment with a provider for '<pulumi.output.Output object at 0x7f695f68c5d0>'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
Any idea of what I am doing wrong or how I can fix this?white-chef-55657
05/21/2022, 6:26 AMwhite-chef-55657
05/22/2022, 7:27 AMeks.Cluster
resource
ideas?fast-florist-41572
05/23/2022, 3:11 PMpulumi-eks
package does in golang but I appear to get an error. I'm trying to update the configmap for aws-auth
. In the nodejs/eks version it does this
const eksNodeAccess = new k8s.core.v1.ConfigMap(`${name}-nodeAccess`, {
apiVersion: "v1",
metadata: {
name: `aws-auth`,
namespace: "kube-system",
},
data: nodeAccessData,
}, { parent, provider: k8sProvider });
Which appears to work by actually altering the configmap. However in golang when I try do the same I get an error
_, err = corev1.NewConfigMap(ctx, "aws-auth", &corev1.ConfigMapArgs{
Metadata: &metav1.ObjectMetaArgs{
Name: pulumi.String("aws-auth"),
Namespace: pulumi.String("kube-system"),
},
Data: pulumi.StringMap{
"mapRoles": roleConfig,
},
}, pulumi.Provider(kubeProvider))
The error is
resource kube-system/aws-auth was not successfully created by the Kubernetes API server : configmaps "aws-auth" already exists
fast-florist-41572
05/23/2022, 3:12 PMflat-laptop-90489
05/23/2022, 8:23 PMcurved-morning-41391
05/24/2022, 7:33 PMcurved-morning-41391
05/24/2022, 7:34 PMflat-laptop-90489
05/24/2022, 7:49 PMflat-laptop-90489
05/25/2022, 6:15 PMUnable to connect to the server: getting credentials: exec plugin is configured to use API version <http://client.authentication.k8s.io/v1beta1|client.authentication.k8s.io/v1beta1>, plugin returned version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
I was able to fix this error locally by updating to a newer version of the awscli. I can't seem to find where this is defined for the pulumi containers.
Any thoughts on a workaround, and/or should I file an issue somewhere for this?breezy-bear-50708
05/26/2022, 9:01 AM--set-file
, used for a template that that replaces a value with the file's contents. If I 1) use a json object as the value, it blows up with wrong type for value; expected string; got []interface {}
. If I try to pass a yaml string literal, pulumi helpfully escapes all the newlines so that doesn't work either. So wondering if anyone knows of a way to duplicate whatever helm template --set-file does.busy-island-31180
05/26/2022, 9:12 PMacceptable-mechanic-48231
05/29/2022, 6:09 PMOtherFields
field, ref. Because of that, I can’t pass it a Pulumi type for a value. This is an issue for me because my custom resource needs to support resource dependencies for a dependsOn
to work, but as far as I know Pulumi’s provider type checking requires that fields implement Pulumi types if a resource is to have dependencies. Implementing plain types when my provider’s resource has a dependsOn
results in an error like the following:
error: program failed: waiting for RPCs: rpc error: code = Unknown desc = setting args: copying input "spec": application.ArgocdAppArgs.Spec is typed as map[string]interface {} but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies
Which seems to originate from here: https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/provider.go#L564. Which seems odd that this is even a problem, because my dependency is simply a dependsOn
, not an actual field dependency.
So with all of that backstory laid out, my main questions are:
How do I pass a pulumi type to a resource that implements a plain type?
If that’s not possible, is it possible to get around the pulumi provider type checking that is requiring all fields to implement pulumi types when there are dependencies?curved-morning-41391
05/31/2022, 8:38 PMlittle-vegetable-79574
06/01/2022, 6:30 PM.kube/config
on pulumi up
. How do you make it not touch the file?famous-salesclerk-74711
06/01/2022, 9:08 PMif (.Capabilities.APIVersions.Has <some-api-resource-version>)
which always fails, bc apparently this check returns false. is there a known way for pulumi-k8s operators to work around this, specifically around hydrating .Capabilities
?
https://github.com/pulumi/pulumi-kubernetes/issues/196echoing-angle-67526
06/01/2022, 10:00 PMlet secrets: pulumi.Output<output.core.v1.ObjectReference[]> = k8s.core.v1.ServiceAccount.get("ksa-".concat(ksa.name),resourceId).secrets;
error: Error: failed to read resource #thx/shared-db-password 'ksa-shared-db-password' [kubernetes:core/v1:ServiceAccount]: 2 UNKNOWN: Default provider for 'kubernetes:core/v1:ServiceAccount' disabled. 'kubernetes:core/v1:ServiceAccount' must use an explicit provider.
looking at the k8s.core.v1.ServiceAccount.get
api it doesn't allow you to set the k8s provider. i believe this is the same issue as https://github.com/pulumi/pulumi-kubernetes/issues/1945 ?nice-lizard-13594
06/02/2022, 10:49 AMclient-side throttling
? If yes - How did you get rid of them?
I keep getting spammed with messages like this during provisioning of my cluster(s):
Diagnostics:
pulumi:pulumi:Stack (development-localhost):
I0602 12:31:12.623746 98885 request.go:665] Waited for 1.044442038s due to client-side throttling, not priority and fairness, request: GET:<https://127.0.0.1:6443/api/v1/namespaces/harbor>
I0602 12:31:23.024342 98885 request.go:665] Waited for 1.019069815s due to client-side throttling, not priority and fairness, request: GET:<https://127.0.0.1:6443/api/v1/namespaces/minio>
[..]
I found several reports to delete and/or chown
the ~/.kube/cache
directory. This did not help for me.
Any ideas?white-chef-55657
06/02/2022, 1:46 PMpowerful-planet-88446
06/03/2022, 7:02 AMpowerful-planet-88446
06/03/2022, 7:03 AMpowerful-planet-88446
06/03/2022, 7:04 AMwet-noon-14291
06/04/2022, 10:04 PMresource complete event returned an error: failed to verify snapshot... refers to unknown providerI checked the stack with a stack export, and the provider urn on the kubernetes resources seemed to use another id than what was specified on the actual kubernetes provider. So I modified those resources to have the right id (not sure if that is the right thing to do). That gave me another issue:
error: resource xxx was not successfully created by the Kubernetes API server : services "xxx" already existsSo then I thought I can just import those resources to my stack, so I added the import property to all the resources I had this issue. That didn't work either, I'm now back at:
error: Preview failed: unknown providerSo it complains on the provider missing. Looking at the stack and it seems like the provider id has changed, but not on all the resources. Do I just update the stack so everything aligns and hope for the best?
wet-noon-14291
06/04/2022, 10:04 PMresource complete event returned an error: failed to verify snapshot... refers to unknown providerI checked the stack with a stack export, and the provider urn on the kubernetes resources seemed to use another id than what was specified on the actual kubernetes provider. So I modified those resources to have the right id (not sure if that is the right thing to do). That gave me another issue:
error: resource xxx was not successfully created by the Kubernetes API server : services "xxx" already existsSo then I thought I can just import those resources to my stack, so I added the import property to all the resources I had this issue. That didn't work either, I'm now back at:
error: Preview failed: unknown providerSo it complains on the provider missing. Looking at the stack and it seems like the provider id has changed, but not on all the resources. Do I just update the stack so everything aligns and hope for the best?