You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for configuring environment variables for operators
This change allows users to specify custom environment variables for
operator containers through the operatorOverrides field in the OpenStack
CR.
Changes:
- Add Env field to ContainerSpec in the API types
- Implement mergeEnvVars() to merge custom environment variables with defaults
- Update SetOverrides() to apply environment variable overrides
- Enhance operator deployment templates to support both Value and ValueFrom
for environment variables (supporting secrets, configmaps, and field refs)
Usage example - Configure OPERATOR_SCOPE_NAMESPACE for rabbitmq-cluster-operator:
apiVersion: operator.openstack.org/v1beta1
kind: OpenStack
metadata:
name: openstack
spec:
operatorOverrides:
- name: rabbitmq-cluster
controllerManager:
env:
- name: OPERATOR_SCOPE_NAMESPACE
value: "namespace1,namespace2,namespace3"
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments