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

feat(providers) initial implementation of pulumi provider #180

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

agershman
Copy link
Contributor

@agershman agershman commented Nov 2, 2023

This is an initial implementation of a Pulumi provider backed by state. This first cut meets my use case of obtaining state from the Pulumi REST API. I've updated the readme with the relevant usage and a couple examples.

@agershman agershman force-pushed the pulumi-provider branch 4 times, most recently from 1c343aa to 4dec338 Compare November 3, 2023 13:50
README.md Outdated Show resolved Hide resolved
@agershman agershman requested a review from yxxhero November 4, 2023 14:01
@agershman agershman force-pushed the pulumi-provider branch 12 times, most recently from d7438ae to 56a8a19 Compare November 6, 2023 19:30
@yxxhero
Copy link
Member

yxxhero commented Nov 18, 2023

@agershman please fix ci issues.

@agershman
Copy link
Contributor Author

@agershman please fix ci issues.

@yxxhero should be good to go now. Thanks

}

func (p *provider) GetString(key string) (string, error) {
tokens := strings.Split(key, "/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agershman we should check the length of tokens here. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I think that'd be helpful to be more explicit if the provided key is not in a supported format. Will address.

case "pulumistateapi":
state, err = p.getStateFromPulumiAPI()
default:
return "", fmt.Errorf("unsupported backend: %s", p.backend)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err = fmt.Errorf("unsupported backend: %s", p.backend)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will address.

@agershman agershman requested a review from yxxhero November 25, 2023 00:19
@yxxhero yxxhero merged commit 88ba797 into helmfile:main Nov 25, 2023
3 checks passed
@agershman agershman deleted the pulumi-provider branch April 26, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants