Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setStatusCondition (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/storageversion/updater.go

    	}
    	forceTransition := false
    	if oldCommonEncodingVersion != nil && sv.Status.CommonEncodingVersion != nil &&
    		*oldCommonEncodingVersion != *sv.Status.CommonEncodingVersion {
    		forceTransition = true
    	}
    	setStatusCondition(&sv.Status.Conditions, condition, forceTransition)
    }
    
    func findStatusCondition(conditions []v1alpha1.StorageVersionCondition,
    	conditionType v1alpha1.StorageVersionConditionType) *v1alpha1.StorageVersionCondition {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 22:40:54 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package meta
    
    import (
    	"time"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    // SetStatusCondition sets the corresponding condition in conditions to newCondition and returns true
    // if the conditions are changed by this call.
    // conditions must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go

    				Status:             metav1.ConditionTrue,
    				LastTransitionTime: metav1.Time{Time: oneHourBefore},
    			}},
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			changed := SetStatusCondition(&test.conditions, test.toAdd)
    			if test.expectChanged != changed {
    				t.Errorf("expectChanged=%t != changed=%t", test.expectChanged, changed)
    			}
    			if !reflect.DeepEqual(test.conditions, test.expected) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top