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

Fix the early parsing of platform flag in init() #1451

Merged

Conversation

gabordozsa
Copy link
Collaborator

The parsing of --platform happens very early in the init() in order to decide which type of client to instantiate. However, no other flags are defined yet at that point. This causes the parsing to fail if any other flag is encountered in the command line before the --platform one (and the code then falls back to the default Kubernetes platform).

Fixes #1147

@gabordozsa gabordozsa marked this pull request as draft April 23, 2024 16:26
@gabordozsa gabordozsa force-pushed the fix_#1147_platform_flag_parsing branch from 906d137 to 809a0b6 Compare April 23, 2024 16:49
@gabordozsa gabordozsa force-pushed the fix_#1147_platform_flag_parsing branch from 809a0b6 to 4f6fb12 Compare April 23, 2024 16:54
@fgiorgetti
Copy link
Member

I believe it also fixes #1312.

@gabordozsa gabordozsa marked this pull request as ready for review April 23, 2024 17:17
@nluaces nluaces merged commit 6fb3a1d into skupperproject:main May 2, 2024
1 check failed
nluaces pushed a commit that referenced this pull request Jun 7, 2024
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.

Platform flag not working as expected when exposing a resource in Skupper
7 participants