Skip to content

Commit

Permalink
Merge pull request #307 from shiftstack/OCPBUGS-43653
Browse files Browse the repository at this point in the history
OCPBUGS-43653: Add missing credentials secret hook
  • Loading branch information
openshift-merge-bot[bot] authored Oct 23, 2024
2 parents 8f8d508 + 6d357d4 commit e71aab2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions pkg/driver/openstack-cinder/openstack_cinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ func GetOpenStackCinderOperatorControllerConfig(ctx context.Context, flavour gen

// Hooks to run on all clusters
cfg.AddDeploymentHookBuilders(c, withCABundleDeploymentHook, withConfigDeploymentHook)
cfg.AddDaemonSetHookBuilders(c, withCABundleDaemonSetHook, withConfigDaemonSetHook)

cfg.DeploymentWatchedSecretNames = append(cfg.DeploymentWatchedSecretNames, cloudCredSecretName, metricsCertSecretName)

cfg.AddDaemonSetHookBuilders(c, withCABundleDaemonSetHook, withConfigDaemonSetHook)
cfg.DaemonSetWatchedSecretNames = append(cfg.DaemonSetWatchedSecretNames, cloudCredSecretName)

configMapSyncer, err := createConfigMapSyncer(c)
if err != nil {
return nil, err
Expand Down
9 changes: 6 additions & 3 deletions pkg/operator/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ type OperatorControllerConfig struct {
DeploymentHooks []deploymentcontroller.DeploymentHookFunc
// List of informers that should be added to the Deployment controller.
DeploymentInformers []factory.Informer
// List of secrets that should be watched by the Deployment controller. Change of content of these secrets
// will cause redeployment of the controller.
// List of secrets that should be watched by the Deployment controller. Any change of content of these secrets
// will cause redeployment of the controller. You will typically want to include your cloud credentials secret
// and metric certificate secret in here, if they exist/are required.
DeploymentWatchedSecretNames []string

// List of secrets that should be watched by daemonset controller
// List of secrets that should be watched by DaemonSet controller. Any change of content of these secrets
// will cause redeployment of the node pods. You will typically want to include your cloud credentials secret
// in here, if one exists/is required.
DaemonSetWatchedSecretNames []string

// List of library-go style controllers to run in the control-plane namespace.
Expand Down

0 comments on commit e71aab2

Please sign in to comment.