Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 42 of 42 for withBuild (0.17 sec)

  1. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

    			logger.Info("Mark the auto-generated service account token as invalid", "invalidSince", invalidSince, "secret", klog.KRef(secret.Namespace, secret.Name))
    			patchContent, err := json.Marshal(applyv1.Secret(secret.Name, secret.Namespace).WithUID(secret.UID).WithLabels(map[string]string{serviceaccount.InvalidSinceLabelKey: invalidSince}))
    			if err != nil {
    				logger.Error(err, "Failed to marshal invalid since label")
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner_test.go

    		},
    	}
    }
    
    func patchContent(namespace, name, invalidSince string, uID types.UID) []byte {
    	patch, _ := json.Marshal(applyv1.Secret(name, namespace).WithUID(uID).WithLabels(map[string]string{serviceaccount.InvalidSinceLabelKey: invalidSince}))
    	return patch
    }
    
    func TestLegacyServiceAccountTokenCleanUp(t *testing.T) {
    	testcases := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top