Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UpdateConfigCondition (0.14 sec)

  1. pilot/pkg/model/status/helper.go

    	for _, cond := range conditions {
    		if cond.Type == condition {
    			return cond
    		}
    	}
    	return nil
    }
    
    func UpdateConfigCondition(cfg config.Config, condition *v1alpha1.IstioCondition) config.Config {
    	cfg = cfg.DeepCopy()
    	var status *v1alpha1.IstioStatus
    	if cfg.Status == nil {
    		cfg.Status = &v1alpha1.IstioStatus{}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 15:06:10 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pilot/pkg/autoregistration/internal/state/store.go

    		if healthCondition != nil {
    			if healthCondition.LastProbeTime.AsTime().After(condition.LastProbeTime.AsTime()) {
    				return nil
    			}
    		}
    	}
    
    	// replace the updated status
    	wle := status.UpdateConfigCondition(*cfg, condition)
    	// update the status
    	_, err := s.store.UpdateStatus(wle)
    	if err != nil {
    		return fmt.Errorf("error while updating WorkloadEntry health status for %s: %w", proxyID, err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceregistry_test.go

    	}
    	cfg.Annotations[status.WorkloadEntryHealthCheckAnnotation] = "true"
    	if healthy {
    		return status.UpdateConfigCondition(cfg, &v1alpha1.IstioCondition{
    			Type:   status.ConditionHealthy,
    			Status: status.StatusTrue,
    		})
    	}
    	return status.UpdateConfigCondition(cfg, &v1alpha1.IstioCondition{
    		Type:   status.ConditionHealthy,
    		Status: status.StatusFalse,
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top