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

rearrange magnum config.yml #409

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Conversation

scrungus
Copy link

@scrungus scrungus commented Jul 20, 2023

the fact determining whether the kubeconfig should be copied into the correct location, as well as the section of magnum.conf telling the capi driver where to find the kubeconfig, was being set after config.json and magnum.conf, resulting in misconfiguration.

Also magnum.conf is modified to make nova_client use the public url if the capi driver is enabled. This is needed to generate the application credential config injected into the tenant Kubernetes clusters

@scrungus scrungus requested a review from a team as a code owner July 20, 2023 12:37
@scrungus scrungus marked this pull request as draft July 20, 2023 12:39
@scrungus scrungus marked this pull request as ready for review July 20, 2023 12:48
@@ -61,7 +61,11 @@ ca_file = {{ openstack_cacert }}

[nova_client]
region_name = {{ openstack_region_name }}
{% if magnum_cluster_api_driver_enabled is defined %}
endpoint_type = publicURL

Choose a reason for hiding this comment

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

What is it that actually needs this? The k8s management cluster? I expect this requirement isn't strict, more about how we deploy it. In which case it might be better as documentation and in our own s-k-c config?

Copy link
Author

@scrungus scrungus Jul 20, 2023

Choose a reason for hiding this comment

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

@markgoddard copy and paste from the magnum docs but:

This is used to generate the application credential config injected into the tenant Kubernetes clusters, such that it is usable from within an OpenStack project, so you can't use the "internal API" end point here.

@scrungus scrungus merged commit 0a56762 into stackhpc/yoga Aug 10, 2023
3 checks passed
@scrungus scrungus deleted the magnum-config-templating branch August 10, 2023 16:44
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.

2 participants