Files
openstack-helm/octavia/templates/job-db-drop.yaml
ricolin d151a81650 Allows Octavia Amphore V2
Add support for Octavia Amphore V2

For backward compatibility the default driver still Amphore v1.

One can use Amphore V2 as driver, by specify
`config.octavia.api_settings.default_provider_driver`
`config.octavia.api_settings.enabled_provider_drivers`

Also for authentication, you can provide
`.Values.endpoints.valkey.password` to use password auth, but more
recommanded way is to use CA cert access.
And then add path to
`config.octavia.task_flow.jobboard_redis_backend_ssl_options` and
`config.octavia.task_flow.jobboard_redis_sentinel_ssl_options`.

Change-Id: I6e652c1ed3a6ae45c72bb47809a1f8d846352314
2025-04-07 04:46:14 +00:00

25 lines
1.4 KiB
YAML

{{/*
Copyright 2019 Samsung Electronics Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- if .Values.manifests.job_db_drop }}
{{- $serviceName := "octavia" -}}
{{- $dbSvc := dict "adminSecret" .Values.secrets.oslo_db.admin "configFile" (printf "/etc/%s/%s.conf" $serviceName $serviceName ) "logConfigFile" (printf "/etc/%s/logging.conf" $serviceName ) "configDbSection" "database" "configDbKey" "connection" -}}
{{- $dbPersist := dict "adminSecret" .Values.secrets.oslo_db.admin "configFile" (printf "/etc/%s/%s.conf" $serviceName $serviceName ) "logConfigFile" (printf "/etc/%s/logging.conf" $serviceName ) "configDbSection" "task_flow" "configDbKey" "persistence_connection" -}}
{{- $dbsToDrop := list $dbSvc $dbPersist }}
{{- $dbDropJob := dict "envAll" . "serviceName" $serviceName "dbsToDrop" $dbsToDrop -}}
{{ $dbDropJob | include "helm-toolkit.manifests.job_db_drop_mysql" }}
{{- end }}