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

Helper func to load environment from metadata endpoint #131

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

manicminer
Copy link
Owner

Helper func to generate environment configuration from metadata endpoint

- Intended as an equivalent to https://github.com/Azure/go-autorest/blob/master/autorest/azure/metadata_environment.go#L96-L141
- Not entirely useful as you need to supply the Resource Manager
  endpoint which is then re-used in the output struct, and the metadata
  endpoint does not currently provide an MS Graph endpoint
- But it should work as a drop in replacement for the above linked
  helper function in go-autorest
@manicminer manicminer added this to the v0.38.0 milestone Dec 6, 2021
Copy link
Collaborator

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

One minor comment, but otherwise LGTM 👍

Comment on lines +13 to +14
strategy:
fail-fast: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can remove this, it only affects jobs with a matrix configuration.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Ah right, thanks! Will fix these in one go 👍

@manicminer manicminer merged commit 343b3df into main Dec 8, 2021
@manicminer manicminer deleted the feature/environment-from-metadata branch December 8, 2021 12:08
manicminer added a commit that referenced this pull request Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants