Skip to content

Commit

Permalink
Add kuttl jobs configuration for Prometheus integration
Browse files Browse the repository at this point in the history
This patch is adjusting kuttl jobs for Prometheus integration. This
includes telemetry deployment in the deps  part and minor fixes in the
spec to make sure the watcher deployment deployes the used CA bundle
created in the controlplane.
  • Loading branch information
amoralej committed Jan 17, 2025
1 parent 2003269 commit f5f6817
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/samples/watcher_v1beta1_watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ metadata:
name: watcher
spec:
databaseInstance: "openstack"
apiContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-api:current-podified"
decisionengineContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-decision-engine:current-podified"
applierContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-applier:current-podified"
tls:
caBundleSecretName: "combined-ca-bundle"
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ spec:
apiContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-api:current-podified"
decisionengineContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-decision-engine:current-podified"
applierContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-applier:current-podified"
tls:
caBundleSecretName: "combined-ca-bundle"
2 changes: 1 addition & 1 deletion tests/kuttl/test-suites/default/deps/infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ spec:
cinder:
enabled: false
telemetry:
enabled: false
enabled: true
3 changes: 3 additions & 0 deletions tests/kuttl/test-suites/default/deps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace: watcher-kuttl-default
secretGenerator:
- literals:
- AdminPassword=password
- AodhPassword=password
- CeilometerPassword=password
- DbRootPassword=password
- DatabasePassword=password
- WatcherPassword=password
Expand Down Expand Up @@ -40,3 +42,4 @@ patches:
secret: osp-secret
- path: infra.yaml
- path: keystone.yaml
- path: telemetry.yaml
35 changes: 35 additions & 0 deletions tests/kuttl/test-suites/default/deps/telemetry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: core.openstack.org/v1beta1
kind: OpenStackControlPlane
metadata:
name: openstack
spec:
telemetry:
template:
metricStorage:
enabled: true
dashboardsEnabled: true
monitoringStack:
alertingEnabled: true
scrapeInterval: 30s
storage:
strategy: persistent
retention: 24h
persistent:
pvcStorageRequest: 1G
autoscaling:
enabled: false
aodh:
passwordSelectors:
databaseAccount: aodh
databaseInstance: openstack
secret: osp-secret
heatInstance: heat
ceilometer:
enabled: true
secret: osp-secret
passwordSelector:
aodhService: AodhPassword
ceilometerService: CeilometerPassword
serviceUser: ceilometer
logging:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ spec:
apiContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-api:current-podified"
decisionengineContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-decision-engine:current-podified"
applierContainerImageURL: "quay.io/podified-master-centos9/openstack-watcher-applier:current-podified"
tls:
caBundleSecretName: "combined-ca-bundle"
apiServiceTemplate:
replicas: 2

0 comments on commit f5f6817

Please sign in to comment.