Skip to content

Commit dc76279

Browse files
committed
pre-deploy kustomization to enable ApplicationCredentials (ZDPR) globally
Set OpenStackControlPlane.spec.applicationCredential.enabled=true by a replace patch applied pre-deploy. This enables Keystone Application Credentials to support zero-downtime password rotation for service users. Signed-off-by: Milana Levy [email protected] Signed-off-by: Milana Levy <[email protected]>
1 parent 84c46b6 commit dc76279

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# Copyright Red Hat, Inc.
3+
# All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6+
# not use this file except in compliance with the License. You may obtain
7+
# a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
# License for the specific language governing permissions and limitations
15+
# under the License.
16+
- name: Configure ZDPR Application Credentials in OpenStackControlPlane
17+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
18+
tasks:
19+
- name: Create Kustomization to enable AppCreds (ZDPR)
20+
ansible.builtin.copy:
21+
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/openstackcontrolplane-applicationcredentials.yaml"
22+
content: |-
23+
apiVersion: kustomize.config.k8s.io/v1beta1
24+
kind: Kustomization
25+
resources:
26+
- namespace: {{ namespace }}
27+
patches:
28+
- target:
29+
kind: OpenStackControlPlane
30+
name: .*
31+
patch: |-
32+
- op: replace
33+
path: /spec/applicationCredential/enabled
34+
value: true
35+
mode: "0644"

0 commit comments

Comments
 (0)