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
pulumi-eks
creates the configmap before the managed node groups. Going to test that logic outorange-policeman-59119
05/23/2022, 6:06 PMfast-florist-41572
05/24/2022, 7:28 AM