Expected Behavior
The ClusterBus resources should have status similar to the Bus resource.
Actual Behavior
The ClusterBus status is empty
Steps to Reproduce the Problem
- create a ClusterBus
- check it's status
Additional Info
|
func (c *Controller) updateClusterBusStatus( |
|
clusterBus *channelsv1alpha1.ClusterBus, |
|
dispatcherService *corev1.Service, |
|
dispatcherDeployment *appsv1.Deployment, |
|
provisionerDeployment *appsv1.Deployment, |
|
) error { |
|
// NEVER modify objects from the store. It's a read-only, local cache. |
|
// You can use DeepCopy() to make a deep copy of original object and modify this copy |
|
// Or create a copy manually for better performance |
|
clusterBusCopy := clusterBus.DeepCopy() |
|
// Only update if status has changed |
|
if !equality.Semantic.DeepEqual(clusterBus.Status, clusterBusCopy.Status) { |
|
// If the CustomResourceSubresources feature gate is not enabled, |
|
// we must use Update instead of UpdateStatus to update the Status block of the ClusterBus resource. |
|
// UpdateStatus will not allow changes to the Spec of the resource, |
|
// which is ideal for ensuring nothing other than resource status has been updated. |
|
_, err := c.clusterbusclientset.ChannelsV1alpha1().ClusterBuses().Update(clusterBusCopy) |
|
return err |
|
} |
|
return nil |
|
} |
Expected Behavior
The ClusterBus resources should have status similar to the Bus resource.
Actual Behavior
The ClusterBus status is empty
Steps to Reproduce the Problem
Additional Info
eventing/pkg/controller/clusterbus/controller.go
Lines 438 to 458 in 5cec8a6