-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provider client connection rework #34
Conversation
924ca95
to
bc92503
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for environment variables I think we should support the generic one like CDK_BASE_URL/CDK_ADMIN_USER/CDK_ADMIN_PASSWORD/... for both console and gateway and add fallback on specific one like CDK_CONSOLE_URL/CDK_GATEWAY_URL/CDK_CONSOLE_USER/CDK_CONSOLE_PASSWORD/CDK_GATEWAY_USER/... for the case when we have 2 instances at the same time and we don't want env var collision
WDYT ?
bc92503
to
9314e69
Compare
I agree with the additions proposed for the The reasoning being to avoid collisions for someone who might get started with only one client and configure it with generic variables, to then add the other client with the relative specific without re-configuring the other client's variable. Do you agree or would you rather enforce the usage of the specific variables in the case of multi client config? |
I'm good with this proposal. Because env var might not be used in first place and reply directly on terraform provider attributes directly removing the ambiguity. |
26b140e
to
2b24e00
Compare
2b24e00
to
41f100a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Client connection has been reworked following new specifications.
Both Console and Gateway connection details have been consolidated and the usage of either is defined by the addition of a new variable named
mode
.Most of the Client implementation has also been refactored in the process to avoid duplication.