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

Refactor provider config and test trust token/password #518

Merged
merged 8 commits into from
Aug 30, 2024

Conversation

MusicDin
Copy link
Member

@MusicDin MusicDin commented Aug 23, 2024

The main goal is to make the provider config logic more intuitive and straight forward. This includes removal of the remote bootstraping during initial connection with the remote.

The majority of provider's initialization logic is also moved into provider-config, which makes the provider block easier to test. Provider tests are also included in this PR.

Finally, parsing of LXD remote address has been changed. Remote configuration will from now on accept only address attribute. The address value is expected to be a fully qualified LXD or Simplestreams address. The remote attributes port and scheme (and respective environment variables LXD_SCHEME and LXD_PORT) are now deprecated and provider will error out if set.

@MusicDin MusicDin force-pushed the fix/provider-config branch 3 times, most recently from 533981a to c8590b6 Compare August 23, 2024 19:53
@MusicDin MusicDin force-pushed the fix/provider-config branch from c8590b6 to 7bab8b5 Compare August 23, 2024 19:55
@MusicDin MusicDin requested a review from simondeziel August 23, 2024 20:08
@MusicDin MusicDin marked this pull request as ready for review August 26, 2024 16:28
@MusicDin MusicDin force-pushed the fix/provider-config branch from 7bab8b5 to 8358c37 Compare August 30, 2024 13:46
@MusicDin MusicDin force-pushed the fix/provider-config branch from 8358c37 to 9657cd9 Compare August 30, 2024 14:28
@MusicDin MusicDin force-pushed the fix/provider-config branch from 9657cd9 to 97a2664 Compare August 30, 2024 15:43
@MusicDin MusicDin force-pushed the fix/provider-config branch from 8dacf7d to 10d0221 Compare August 30, 2024 16:12
@MusicDin MusicDin force-pushed the fix/provider-config branch from 10d0221 to e47669b Compare August 30, 2024 16:14
Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

Thank you!

@simondeziel simondeziel merged commit 0e9bea0 into terraform-lxd:main Aug 30, 2024
9 checks passed
@MusicDin MusicDin deleted the fix/provider-config branch August 31, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants