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

Make Chef omnitruck endpoint configurable #344

Closed
wants to merge 1 commit into from

Conversation

bdwyertech
Copy link

Description

Allow Chef Omnitruck endpoint to be configurable. Went down the rabbit hole pretty deep trying to pass this from test-kitchen but can't find a way.

Related Issue

test-kitchen/test-kitchen#1698

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@bdwyertech bdwyertech requested review from a team as code owners January 21, 2021 02:40
@lamont-granquist
Copy link
Contributor

I think I'm 👎 on the env var here. This should be a parameter that callers can specify to mixlib-install and that should be exposed as a public API and TK needs to be modified to support it.

@bdwyertech
Copy link
Author

I think I'm 👎 on the env var here. This should be a parameter that callers can specify to mixlib-install and that should be exposed as a public API and TK needs to be modified to support it.

I'm with you, it's certainly ugly. This PR is really just to demonstrate the issue. There is another constant elsewhere which has an undocumented env var override so I used the same method.

This must be resolved before the deprecated logic in Test-Kitchen can be removed, otherwise my org is borked (were a large enterprise customer).

@Tensibai
Copy link
Contributor

Alternative approach in #340 (would allow to override the endpoint for specific products too)

@jaymzh
Copy link
Collaborator

jaymzh commented Aug 9, 2022

@bdwyertech - I agree with the others we want a more robust solution here. Looks like #340 got dropped, so we've picked that back up, hopefully we can get something like that in ASAP. It seems like it was designed for Cinc's case, but can you confirm it'll solve the TK case?

@bdwyertech
Copy link
Author

bdwyertech commented Aug 14, 2022

@bdwyertech - I agree with the others we want a more robust solution here. Looks like #340 got dropped, so we've picked that back up, hopefully we can get something like that in ASAP. It seems like it was designed for Cinc's case, but can you confirm it'll solve the TK case?

If #340 was merged, it looks like it would resolve this issue as well.

@tpowell-progress
Copy link
Contributor

Closing in favor of #340

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.

5 participants