Skip to content

Commit 4d561fe

Browse files
committed
Inject Watcher service
This provides an example of potential structure and how to compose controlplane and dataplane.
1 parent 2b7a17b commit 4d561fe

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
patches:
6+
- path: service.yaml
7+
target:
8+
kind: OpenStackControlPlane
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/18.0/html-single/optimizing_infrastructure_resource_utilization/index#deploy-optimize-exist-control-plane_deploy-optmz
3+
apiVersion: core.openstack.org/v1beta1
4+
kind: OpenStackControlPlane
5+
metadata:
6+
name: openstack-control-plane
7+
spec:
8+
watcher:
9+
enabled: true
10+
template:
11+
decisionengineServiceTemplate:
12+
customServiceConfig: |
13+
[watcher_cluster_data_model_collectors.compute]
14+
period = 60
15+
[watcher_cluster_data_model_collectors.storage]
16+
period = 60

example/controlplane/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44

55
components:
6+
# Remote refs (for CI/ArgoCD):
67
- https://github.com/openstack-gitops/rhoso-gitops/components/argocd/annotations?ref=cleaning
78
- https://github.com/openstack-gitops/rhoso-gitops/components/rhoso/controlplane?ref=cleaning
9+
- https://github.com/openstack-gitops/rhoso-gitops/components/rhoso/controlplane/services/watcher?ref=cleaning
10+
# Local paths (for "kustomize build" testing):
11+
# - ../../components/argocd/annotations
12+
# - ../../components/rhoso/controlplane
13+
# - ../../components/rhoso/controlplane/services/watcher
814

915
# Add needed patches according to your infrastructure

example/dataplane/kustomization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44

55
components:
6+
# Remote refs (for CI/ArgoCD):
67
- https://github.com/openstack-gitops/rhoso-gitops/components/argocd/annotations?ref=cleaning
78
- https://github.com/openstack-gitops/rhoso-gitops/components/rhoso/dataplane?ref=cleaning
9+
# Local paths (for "kustomize build" testing):
10+
# - ../../components/argocd/annotations
11+
# - ../../components/rhoso/dataplane
812

913
# Add needed patches according to your infrastructure

0 commit comments

Comments
 (0)