Skip to content
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

Can't get Kubernetes object not managed by Pulumi #1479

Closed
maxromanovsky opened this issue Feb 26, 2021 · 2 comments · Fixed by pulumi/pulumi#6433 or #1480
Closed

Can't get Kubernetes object not managed by Pulumi #1479

maxromanovsky opened this issue Feb 26, 2021 · 2 comments · Fixed by pulumi/pulumi#6433 or #1480
Assignees
Labels
emergent An issue that was added to the current milestone after planning kind/bug Some behavior is incorrect or out of spec
Milestone

Comments

@maxromanovsky
Copy link

Previously it was possible to fetch the resource not managed by Pulumi, but as of pulumi-kubernetes==2.8.2 in Python it doesn't work and returns None.

Example below shows Namespace, but I have experienced that issue with Secret as well.

It works after importing it via pulumi import kubernetes:core/v1:Namespace kube-system kube-system, but the whole reason is to get state of the object that is not managed by pulumi.
I haven't found that change in changelog.

Expected behavior

Namespace is returned.

Current behavior

None is returned.

Steps to reproduce

Tested on pulumi-kubernetes==2.1.1:

namespace_system = Namespace.get('kube-system', 'kube-system')
@maxromanovsky maxromanovsky added the kind/bug Some behavior is incorrect or out of spec label Feb 26, 2021
@leezen leezen added emergent An issue that was added to the current milestone after planning kind/bug Some behavior is incorrect or out of spec and removed kind/bug Some behavior is incorrect or out of spec labels Feb 26, 2021
@leezen leezen added this to the 0.53 milestone Feb 26, 2021
@leezen
Copy link
Contributor

leezen commented Feb 26, 2021

Playing with different versions, it appears the behavior difference takes place b/t 2.3.1 and 2.6.0

@leezen
Copy link
Contributor

leezen commented Feb 26, 2021

It appears 2.3.1 is the last version that has the correct behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emergent An issue that was added to the current milestone after planning kind/bug Some behavior is incorrect or out of spec
Projects
None yet
4 participants