Skip to content

Commit

Permalink
Add aodh to autoscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzigold committed Sep 22, 2023
1 parent 2322752 commit b866397
Show file tree
Hide file tree
Showing 39 changed files with 2,664 additions and 171 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ repos:
- id: destroyed-symlinks
- id: check-yaml
args: [-m]
exclude: ^templates/autoscaling/config/prometheus.yaml
- id: check-json
- id: detect-private-key
- id: end-of-file-fixer
Expand Down
117 changes: 117 additions & 0 deletions api/bases/telemetry.openstack.org_autoscalings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,104 @@ spec:
spec:
description: AutoscalingSpec defines the desired state of Autoscaling
properties:
aodh:
description: Aodh spec
properties:
apiImage:
type: string
customServiceConfig:
default: '# add your customization here'
description: CustomServiceConfig - customize the service config
using this parameter to change service defaults, or overwrite
rendered information using raw OpenStack config format. The
content gets added to to /etc/<service>/<service>.conf.d directory
as custom.conf file.
type: string
databaseInstance:
description: MariaDB instance name Right now required by the maridb-operator
to get the credentials from the instance to create the DB Might
not be required in future
type: string
databaseUser:
default: aodh
description: Database user name Needed to connect to a database
used by aodh
type: string
defaultConfigOverwrite:
additionalProperties:
type: string
description: 'ConfigOverwrite - interface to overwrite default
config files like e.g. logging.conf or policy.json. But can
also be used to add additional files. Those get added to the
service config dir in /etc/<service> . TODO: -> implement'
type: object
evaluatorImage:
type: string
listenerImage:
type: string
memcachedInstance:
default: memcached
description: Memcached instance name.
type: string
networkAttachmentDefinitions:
description: NetworkAttachmentDefinitions list of network attachment
definitions the service pod gets attached to
items:
type: string
type: array
notifierImage:
type: string
passwordSelector:
default:
aodhService: AodhPassword
database: AodhDatabasePassword
description: PasswordSelectors - Selectors to identify the service
from the Secret
properties:
aodhService:
default: AodhPassword
description: AodhService - Selector to get the aodh service
password from the Secret
type: string
database:
default: AodhDatabasePassword
description: Database - Selector to get the aodh database
user password from the Secret
type: string
service:
default: CeilometerPassword
description: Service - Selector to get the ceilometer service
password from the Secret
type: string
type: object
preserveJobs:
default: false
description: PreserveJobs - do not delete jobs after they finished
e.g. to check logs
type: boolean
rabbitMqClusterName:
default: rabbitmq
description: RabbitMQ instance name Needed to request a transportURL
that is created and used in Aodh
type: string
secret:
description: Secret containing OpenStack password information
for aodh
type: string
serviceUser:
default: aodh
description: ServiceUser - optional username used for this service
to register in keystone
type: string
required:
- apiImage
- databaseInstance
- evaluatorImage
- listenerImage
- memcachedInstance
- notifierImage
- secret
type: object
enabled:
default: false
description: Allows enabling and disabling the autoscaling feature
Expand Down Expand Up @@ -105,15 +203,34 @@ spec:
- type
type: object
type: array
databaseHostname:
description: DatabaseHostname - Hostname for the database
type: string
hash:
additionalProperties:
type: string
description: Map of hashes to track e.g. job status
type: object
networks:
description: Networks in addtion to the cluster network, the service
is attached to
items:
type: string
type: array
prometheusHostname:
description: PrometheusHost - Hostname for prometheus used for autoscaling
type: string
prometheusPort:
description: PrometheusPort - Port for prometheus used for autoscaling
format: int32
type: integer
readyCount:
description: ReadyCount of autoscaling instances
format: int32
type: integer
transportURLSecret:
description: TransportURLSecret - Secret containing RabbitMQ transportURL
type: string
type: object
type: object
served: true
Expand Down
10 changes: 10 additions & 0 deletions api/bases/telemetry.openstack.org_ceilometers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ spec:
description: PasswordSelectors - Selectors to identify the service
from the Secret
properties:
aodhService:
default: AodhPassword
description: AodhService - Selector to get the aodh service password
from the Secret
type: string
database:
default: AodhDatabasePassword
description: Database - Selector to get the aodh database user
password from the Secret
type: string
service:
default: CeilometerPassword
description: Service - Selector to get the ceilometer service
Expand Down
108 changes: 108 additions & 0 deletions api/bases/telemetry.openstack.org_telemetries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,104 @@ spec:
description: Autoscaling - Spec definition for the Autoscaling service
of this Telemetry deployment
properties:
aodh:
description: Aodh spec
properties:
apiImage:
type: string
customServiceConfig:
default: '# add your customization here'
description: CustomServiceConfig - customize the service config
using this parameter to change service defaults, or overwrite
rendered information using raw OpenStack config format.
The content gets added to to /etc/<service>/<service>.conf.d
directory as custom.conf file.
type: string
databaseInstance:
description: MariaDB instance name Right now required by the
maridb-operator to get the credentials from the instance
to create the DB Might not be required in future
type: string
databaseUser:
default: aodh
description: Database user name Needed to connect to a database
used by aodh
type: string
defaultConfigOverwrite:
additionalProperties:
type: string
description: 'ConfigOverwrite - interface to overwrite default
config files like e.g. logging.conf or policy.json. But
can also be used to add additional files. Those get added
to the service config dir in /etc/<service> . TODO: -> implement'
type: object
evaluatorImage:
type: string
listenerImage:
type: string
memcachedInstance:
default: memcached
description: Memcached instance name.
type: string
networkAttachmentDefinitions:
description: NetworkAttachmentDefinitions list of network
attachment definitions the service pod gets attached to
items:
type: string
type: array
notifierImage:
type: string
passwordSelector:
default:
aodhService: AodhPassword
database: AodhDatabasePassword
description: PasswordSelectors - Selectors to identify the
service from the Secret
properties:
aodhService:
default: AodhPassword
description: AodhService - Selector to get the aodh service
password from the Secret
type: string
database:
default: AodhDatabasePassword
description: Database - Selector to get the aodh database
user password from the Secret
type: string
service:
default: CeilometerPassword
description: Service - Selector to get the ceilometer
service password from the Secret
type: string
type: object
preserveJobs:
default: false
description: PreserveJobs - do not delete jobs after they
finished e.g. to check logs
type: boolean
rabbitMqClusterName:
default: rabbitmq
description: RabbitMQ instance name Needed to request a transportURL
that is created and used in Aodh
type: string
secret:
description: Secret containing OpenStack password information
for aodh
type: string
serviceUser:
default: aodh
description: ServiceUser - optional username used for this
service to register in keystone
type: string
required:
- apiImage
- databaseInstance
- evaluatorImage
- listenerImage
- memcachedInstance
- notifierImage
- secret
type: object
enabled:
default: false
description: Allows enabling and disabling the autoscaling feature
Expand Down Expand Up @@ -105,6 +203,16 @@ spec:
description: PasswordSelectors - Selectors to identify the service
from the Secret
properties:
aodhService:
default: AodhPassword
description: AodhService - Selector to get the aodh service
password from the Secret
type: string
database:
default: AodhDatabasePassword
description: Database - Selector to get the aodh database
user password from the Secret
type: string
service:
default: CeilometerPassword
description: Service - Selector to get the ceilometer service
Expand Down
Loading

0 comments on commit b866397

Please sign in to comment.