You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already)
Issue details
EKS with typescript and having a namespace works.
EKS with python and having a namespace configured almost the exact same way, doesn't pass pulumi preview. The following error message is thrown in python:
raise ValueError(
ValueError: Attempted to register resource kubernetes:core/v1:Namespace with a provider for '<pulumi.output.Output object at 0x10c216700>'
Steps to reproduce
Validate the eks stack works in typescript git clone [email protected]:tusharshahrs/pulumi-home.git cd aws-classic-ts-eks
pulumi about in typescript stack
pulumi about
CLI
Version 3.24.1
Go Version go1.17.6
Go Compiler gc
Plugins
NAME VERSION
aws 4.37.2
eks 0.37.0
kubernetes 3.15.1
nodejs unknown
Host
OS darwin
Version 11.6.3
Arch x86_64
..
..
Backend
Name pulumi.com
URL https://app.pulumi.com/myuser
User myuser
NAME VERSION
@pulumi/eks 0.37.0
@pulumi/kubernetes 3.15.1
@pulumi/pulumi 3.24.1
@types/node 14.18.10
This project is written in nodejs (/usr/local/bin/node v17.4.0)
Stand up the stack in typescript pulumi stack init dev npm install pulumi config set aws:region us-east-2 pulumi up -y
Wait ~12 minutes and the namespace will get created. The output will show it
Everything works in typescript.
Try to stand up the eks stack in python git clone [email protected]:tusharshahrs/pulumi-home.git cd aws-classic-py-eks
pulumi about in python stack
CLI
Version 3.24.1
Go Version go1.17.6
Go Compiler gc
Plugins
NAME VERSION
aws 4.37.2
eks 0.37.0
kubernetes 3.15.2
python unknown
Host
OS darwin
Version 11.6.3
Arch x86_64
This project is written in python (/usr/local/bin/python3 v3.9.10)
Current Stack: dev
Backend
Name pulumi.com
URL https://app.pulumi.com/myuser
User myuser
NAME VERSION
pip 22.0.3
pulumi-eks 0.37.0
setuptools 60.8.2
wheel 0.37.1
Stand up the stack in python pulumi stack init dev python3 -m venv venv source venv/bin/activate pip3 install -r requirements.txt pulumi config set aws:region us-east-2
raise ValueError(
ValueError: Attempted to register resource kubernetes:core/v1:Namespace with a provider for '<pulumi.output.Output object at
0x10c216700>'
We have a workaround, meaning we can comment OUT the last line.
Question. Should a user expect the python code for namespace to work similar as typescript or this expected behavior in python?
Expected:
Eks with namespace in python works the same as eks with namespace in typescript.
Actual:
Python throws this error on preview:
raise ValueError(
ValueError: Attempted to register resource kubernetes:core/v1:Namespace with a provider for '<pulumi.output.Output object at
0x10c216700>'
The text was updated successfully, but these errors were encountered:
Linking to this ticket or stating the workaround in the docs for the Cluster.provider attribute (and ideally the Namespace too) would be a great help, as long as this issue remains.
Hello!
Issue details
EKS with typescript and having a namespace works.
EKS with python and having a namespace configured almost the exact same way, doesn't pass
pulumi preview
. The following error message is thrown in python:Steps to reproduce
git clone [email protected]:tusharshahrs/pulumi-home.git
cd aws-classic-ts-eks
pulumi about
in typescript stacktypescript
pulumi stack init dev
npm install
pulumi config set aws:region us-east-2
pulumi up -y
Wait ~12 minutes and the
namespace
will get created. The output will show ittypescript
.git clone [email protected]:tusharshahrs/pulumi-home.git
cd aws-classic-py-eks
pulumi about
in python stackpython
pulumi stack init dev
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
pulumi config set aws:region us-east-2
pulumi up
and thepreview
will fail with:python
code for namespace to work similar as typescript or this expected behavior in python?Expected:
Eks with namespace in python works the same as eks with namespace in typescript.
Actual:
Python throws this error on preview:
The text was updated successfully, but these errors were encountered: