Skip to content

Commit

Permalink
Merge pull request #281 from openstack-k8s-operators/preserve-jobs-gl…
Browse files Browse the repository at this point in the history
…obal-flag

Add a global flag to enable preserveJobs in all svcs

Reviewed-by: Balazs Gibizer <[email protected]>
Reviewed-by: Harald <[email protected]>
Reviewed-by: John Fulton <[email protected]>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jun 14, 2024
2 parents c5231f4 + 38d5734 commit f335a17
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 14 deletions.
2 changes: 2 additions & 0 deletions automation/vars/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ vas:
oc -n openstack wait osctlplane controlplane --for condition=Ready
--timeout=60m
values:
- name: service-values
src_file: service-values.yaml
- name: network-values
src_file: nncp/values.yaml
build_output: ../control-plane.yaml
Expand Down
12 changes: 0 additions & 12 deletions dt/uni05epsilon/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,6 @@ replacements:
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.glanceAPIs.default.preserveJobs
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.glanceAPIs.default.preserveJobs
options:
create: true

- source:
kind: ConfigMap
name: service-values
Expand Down
1 change: 1 addition & 0 deletions examples/dt/bgp/bgp_dt01/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
glance:
customServiceConfig: |
[DEFAULT]
Expand Down
1 change: 1 addition & 0 deletions examples/dt/bgp/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
glance:
customServiceConfig: |
[DEFAULT]
Expand Down
1 change: 1 addition & 0 deletions examples/dt/uni01alpha/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderVolumes:
lvm-iscsi:
replicas: 1
Expand Down
2 changes: 1 addition & 1 deletion examples/dt/uni02beta/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderVolumes:
ontap-nfs:
customServiceConfig: |
Expand Down Expand Up @@ -86,6 +87,5 @@ data:
databaseInstance: openstack
glanceAPIs:
default:
preserveJobs: false
replicas: 1
type: single
1 change: 1 addition & 0 deletions examples/dt/uni04delta/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderBackup:
customServiceConfig: |
[DEFAULT]
Expand Down
2 changes: 1 addition & 1 deletion examples/dt/uni05epsilon/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderBackup:
customServiceConfig: |
[DEFAULT]
Expand Down Expand Up @@ -82,7 +83,6 @@ data:
databaseInstance: openstack
glanceAPIs:
default:
preserveJobs: false
replicas: 1
type: split

Expand Down
1 change: 1 addition & 0 deletions examples/dt/uni06zeta/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderVolumes:
lvm-nvme-tcp:
replicas: 1
Expand Down
1 change: 1 addition & 0 deletions examples/dt/uni07eta/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
config.kubernetes.io/local-config: "true"

data:
preserveJobs: false
cinderVolumes:
ontap-iscsi:
customServiceConfig: |
Expand Down
1 change: 1 addition & 0 deletions examples/va/hci/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ components:

resources:
- nncp/values.yaml
- service-values.yaml
9 changes: 9 additions & 0 deletions examples/va/hci/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: service-values
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
1 change: 1 addition & 0 deletions examples/va/hci/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
cinderAPI:
replicas: 3
cinderBackup:
Expand Down
1 change: 1 addition & 0 deletions examples/va/nfv/ovs-dpdk-sriov/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
neutron:
customServiceConfig: |
[DEFAULT]
Expand Down
1 change: 1 addition & 0 deletions examples/va/nfv/ovs-dpdk/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
neutron:
customServiceConfig: |
[DEFAULT]
Expand Down
1 change: 1 addition & 0 deletions examples/va/nfv/sriov/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
neutron:
customServiceConfig: |
[ml2]
Expand Down
1 change: 1 addition & 0 deletions examples/va/pidone/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
data:
preserveJobs: false
glance:
customServiceConfig: |
[DEFAULT]
Expand Down
27 changes: 27 additions & 0 deletions lib/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,30 @@ replacements:
kind: OpenStackControlPlane
fieldPaths:
- spec.ovn.template.ovnController.nicMappings.datacentre

- source:
kind: ConfigMap
name: service-values
fieldPath: data.preserveJobs
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.barbican.template.preserveJobs
- spec.cinder.template.preserveJobs
- spec.designate.template.preserveJobs
- spec.glance.template.preserveJobs
- spec.heat.template.preserveJobs
- spec.horizon.template.preserveJobs
- spec.ironic.template.ironicInspector.preserveJobs
- spec.ironic.template.preserveJobs
- spec.keystone.template.preserveJobs
- spec.manila.template.preserveJobs
- spec.neutron.template.preserveJobs
- spec.nova.template.preserveJobs
- spec.octavia.template.octaviaAPI.preserveJobs
- spec.octavia.template.preserveJobs
- spec.placement.template.preserveJobs
- spec.telemetry.template.autoscaling.aodh.preserveJobs
options:
create: true

0 comments on commit f335a17

Please sign in to comment.