Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ComponentCondition (4.73 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/componentcondition.go

    	Error   *string                    `json:"error,omitempty"`
    }
    
    // ComponentConditionApplyConfiguration constructs an declarative configuration of the ComponentCondition type for use with
    // apply.
    func ComponentCondition() *ComponentConditionApplyConfiguration {
    	return &ComponentConditionApplyConfiguration{}
    }
    
    // WithType sets the Type field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. pkg/registry/core/componentstatus/rest.go

    	errorMsg := ""
    	if err != nil {
    		errorMsg = err.Error()
    	}
    
    	c := &api.ComponentCondition{
    		Type:    api.ComponentHealthy,
    		Status:  ToConditionStatus(status),
    		Message: msg,
    		Error:   errorMsg,
    	}
    
    	retVal := &api.ComponentStatus{
    		Conditions: []api.ComponentCondition{*c},
    	}
    	retVal.Name = name
    
    	return retVal
    }
    
    // Implement ShortNamesProvider
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. pkg/registry/core/componentstatus/rest_test.go

    			}
    		},
    	}
    }
    
    func createTestStatus(name string, status api.ConditionStatus, msg string, err string) *api.ComponentStatus {
    	retVal := &api.ComponentStatus{
    		Conditions: []api.ComponentCondition{
    			{Type: api.ComponentHealthy, Status: status, Message: msg, Error: err},
    		},
    	}
    	retVal.Name = name
    	return retVal
    }
    
    func TestList_NoError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top