Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bindata/v3.11.0/config/route-controller-defaultconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: openshiftcontrolplane.config.openshift.io/v1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

route-controller-defaultconfig.yaml -> route-controller-manager-defaultconfig.yaml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed all route-controller-manager files to have a consistent prefix

kind: OpenShiftControllerManagerConfig
leaderElection:
name: openshift-route-controllers
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: ClusterRole
metadata:
name: system:openshift:openshift-route-controller-manager
rules:
# informers
- apiGroups:
- ""
resources:
Expand All @@ -29,6 +30,7 @@ rules:
- get
- list
- watch
# emitting events
- apiGroups:
- ""
- events.k8s.io
Expand All @@ -38,3 +40,12 @@ rules:
- create
- patch
- update
# used for detection of HA to configure leader election
- apiGroups:
- config.openshift.io
resources:
- infrastructures
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ spec:
ports:
- containerPort: 8443
terminationMessagePolicy: FallbackToLogsOnError
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller
"v3.11.0/openshift-controller-manager/leader-role.yaml",
"v3.11.0/openshift-controller-manager/leader-rolebinding.yaml",
"v3.11.0/openshift-controller-manager/ns.yaml",
"v3.11.0/openshift-controller-manager/route-controller-informer-clusterrole.yaml",
"v3.11.0/openshift-controller-manager/route-controller-informer-clusterrolebinding.yaml",
"v3.11.0/openshift-controller-manager/route-controller-clusterrole.yaml",
"v3.11.0/openshift-controller-manager/route-controller-clusterrolebinding.yaml",
"v3.11.0/openshift-controller-manager/route-controller-leader-role.yaml",
"v3.11.0/openshift-controller-manager/route-controller-leader-rolebinding.yaml",
"v3.11.0/openshift-controller-manager/route-controller-ns.yaml",
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/sync_openshiftcontrollermanager_v311_00.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ func manageOpenShiftControllerManagerConfigMap_v311_00_to_latest(kubeClient kube
// similar logic for route-controller-manager in manageOpenShiftControllerManagerConfigMap_v311_00_to_latest
func manageRouteControllerManagerConfigMap_v311_00_to_latest(kubeClient kubernetes.Interface, client coreclientv1.ConfigMapsGetter, recorder events.Recorder, operatorConfig *operatorapiv1.OpenShiftControllerManager) (*corev1.ConfigMap, bool, error) {
configMap := resourceread.ReadConfigMapV1OrDie(v311_00_assets.MustAsset("v3.11.0/openshift-controller-manager/route-controller-cm.yaml"))
defaultConfig := v311_00_assets.MustAsset("v3.11.0/config/defaultconfig.yaml")
requiredConfigMap, _, err := resourcemerge.MergeConfigMap(configMap, "config.yaml", nil, defaultConfig, operatorConfig.Spec.ObservedConfig.Raw, operatorConfig.Spec.UnsupportedConfigOverrides.Raw)
rcmDefaultConfig := v311_00_assets.MustAsset("v3.11.0/config/route-controller-defaultconfig.yaml")
requiredConfigMap, _, err := resourcemerge.MergeConfigMap(configMap, "config.yaml", nil, rcmDefaultConfig, operatorConfig.Spec.ObservedConfig.Raw, operatorConfig.Spec.UnsupportedConfigOverrides.Raw)
if err != nil {
return nil, false, err
}
Expand Down
224 changes: 132 additions & 92 deletions pkg/operator/v311_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.