fix: Generate the corresponding RBAC for Octavia health manager

The service account used by the Octavia health manager pod lacks
the proper Role and Role Bindings. These are generated by specifying
the static correct static dependency key when creating the respective
service account.

This commit specifies that the health_manager key must be used so
that proper Role and Role Binding are created.

Change-Id: Ib66fb822edd03c8f67642f4791efb75985d5dc44
This commit is contained in:
Kaloyan Kotlarski 2024-01-10 08:42:29 +00:00
parent 57a30e2317
commit bcdcd7de35
3 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Octavia
name: octavia
version: 0.2.9
version: 0.2.10
home: https://docs.openstack.org/octavia/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Octavia/OpenStack_Project_Octavia_vertical.png
sources:

View File

@ -154,7 +154,7 @@ spec:
{{- $dependencyOpts := dict "envAll" $envAll "dependencyMixinParam" $envAll.Values.network.backend "dependencyKey" "health_manager" -}}
{{- $_ := include "helm-toolkit.utils.dependency_resolver" $dependencyOpts | toString | fromYaml }}
{{ tuple $envAll "pod_dependency" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
{{ tuple $envAll "health_manager" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
{{- $daemonset_yaml := list $daemonset $configMapName $serviceAccountName . | include "octavia.health_manager.daemonset" | toString | fromYaml }}
{{- $configmap_yaml := "octavia.configmap.etc" }}
{{- list $daemonset $daemonset_yaml $configmap_yaml $configMapName . | include "helm-toolkit.utils.daemonset_overrides" }}

View File

@ -13,4 +13,5 @@ octavia:
- 0.2.7 Use HTTP probe instead of TCP probe
- 0.2.8 Define service_type in keystone_authtoken to support application credentials with access rules
- 0.2.9 Use default timeout and retry configs for haproxy_amphora
- 0.2.10 Fix generating health_manager Role and RoleBinding
...