Skip to content

Commit

Permalink
Merge branch 'main' into nathan/bugfix-dynamictargeting
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantournant authored Aug 24, 2022
2 parents ed23e84 + be4cc64 commit b62e21c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions controllers/disruption_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (r *DisruptionReconciler) Reconcile(ctx context.Context, req ctrl.Request)
requeueDelay := *r.ExpiredDisruptionGCDelay

r.recordEventOnDisruption(instance, chaosv1beta1.EventDisruptionDurationOver, requeueDelay.String())
r.log.Infow("requeuing disruption to check for its expiration", "requeueDelay", requeueDelay.String())
r.log.Debugw("requeuing disruption to check for its expiration", "requeueDelay", requeueDelay.String())

return ctrl.Result{
Requeue: true,
Expand Down Expand Up @@ -310,7 +310,7 @@ func (r *DisruptionReconciler) Reconcile(ctx context.Context, req ctrl.Request)
// - an instance with at least one chaos pod as "ready" is considered as "partially injected"
// - an instance with no ready chaos pods is considered as "not injected"
func (r *DisruptionReconciler) updateInjectionStatus(instance *chaosv1beta1.Disruption) (bool, error) {
r.log.Infow("checking if injection status needs to be updated", "injectionStatus", instance.Status.InjectionStatus)
r.log.Debugw("checking if injection status needs to be updated", "injectionStatus", instance.Status.InjectionStatus)

status := chaostypes.DisruptionInjectionStatusNotInjected
readyPodsCount := 0
Expand Down
6 changes: 3 additions & 3 deletions injector/network_disruption.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (i *networkDisruptionInjector) addServiceFilters(serviceName string, filter
for _, filter := range filters {
filter.priority = i.getNewPriority()

i.config.Log.Infow("found service endpoint", "endpoint", filter.service.String(), "service", serviceName)
i.config.Log.Infow("found service endpoint", "resolvedEndpoint", filter.service.String(), "resolvedService", serviceName)

err := i.config.TrafficController.AddFilter(interfaces, "1:0", filter.priority, 0, nil, filter.service.ip, 0, filter.service.port, filter.service.protocol, flowid)
if err != nil {
Expand Down Expand Up @@ -769,7 +769,7 @@ func (i *networkDisruptionInjector) watchServiceChanges(watcher serviceWatcher,
if !ok { // channel is closed
watcher.kubernetesServiceWatcher = nil
} else {
i.config.Log.Infow(fmt.Sprintf("changes in service %s/%s", watcher.watchedServiceSpec.Name, watcher.watchedServiceSpec.Namespace), "eventType", event.Type)
i.config.Log.Debugw(fmt.Sprintf("changes in service %s/%s", watcher.watchedServiceSpec.Name, watcher.watchedServiceSpec.Namespace), "eventType", event.Type)

if err := i.handleKubernetesServiceChanges(event, &watcher, interfaces, flowid); err != nil {
i.config.Log.Errorf("couldn't apply changes to tc filters: %w... Rebuilding watcher", err)
Expand All @@ -786,7 +786,7 @@ func (i *networkDisruptionInjector) watchServiceChanges(watcher serviceWatcher,
if !ok { // channel is closed
watcher.kubernetesPodEndpointsWatcher = nil
} else {
i.config.Log.Infow(fmt.Sprintf("changes in pods of service %s/%s", watcher.watchedServiceSpec.Name, watcher.watchedServiceSpec.Namespace), "eventType", event.Type)
i.config.Log.Debugw(fmt.Sprintf("changes in pods of service %s/%s", watcher.watchedServiceSpec.Name, watcher.watchedServiceSpec.Namespace), "eventType", event.Type)

if err := i.handleKubernetesPodsChanges(event, &watcher, interfaces, flowid); err != nil {
i.config.Log.Errorf("couldn't apply changes to tc filters: %w... Rebuilding watcher", err)
Expand Down

0 comments on commit b62e21c

Please sign in to comment.