Skip to content

Construct a compliant clouds.yaml for the helper chart. #9

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

Merged
merged 8 commits into from
May 21, 2025

Conversation

garloff
Copy link
Member

@garloff garloff commented May 20, 2025

OK, so we now have a basic YAML parser and extractor in bash (slow). This avoids the need for python or yq (or shyaml).

Here's what we do now to avoid failing clouds.yaml construction:

  • Detect the need for a cacert file
    • And extract only the last if it's huge.
    • But remove it from the constructed clouds.yaml.
  • Merge the auth section from a secure.yaml file
  • Extract only one cloud for the helm helper and rename it to openstack
  • Store it (0600) to ~/tmp/clouds-$OS_CLOUD.yaml

OK, so we now have a basic YAML parser and extractor in bash (slow).
This avoids the need for python or yq (or shyaml).

Here's what we do now to avoid failing clouds.yaml construction:
- Detect the need for a cacert file
  * And extract only the last if it's huge.
  * But remove it from the constructed clouds.yaml.
- Merge the auth section from a secure.yaml file
- Extract only one cloud for the helm helper and rename it to openstack
- Store it (0600) to ~/tmp/clouds-$OS_CLOUD.yaml

Signed-off-by: Kurt Garloff <kurt@garloff.de>
@garloff garloff requested review from ksamaschke and matofeder May 20, 2025 09:30
@garloff garloff self-assigned this May 20, 2025
@garloff garloff added the enhancement New feature or request label May 20, 2025
@garloff garloff changed the title Construct a compliant clouds.yaml for the help chart. Construct a compliant clouds.yaml for the helper chart. May 20, 2025
garloff added 7 commits May 21, 2025 08:14
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Signed-off-by: Kurt Garloff <kurt@garloff.de>
@garloff garloff merged commit 0247fd7 into main May 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant