Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for patchContent (0.19 sec)

  1. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner_test.go

    			Namespace: "default",
    		},
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{{Name: "foo", VolumeSource: v1.VolumeSource{Secret: &v1.SecretVolumeSource{SecretName: "token-secret-1"}}}},
    		},
    	}
    }
    
    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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. pkg/serviceaccount/legacy.go

    	now := time.Now().UTC()
    	today := now.Format("2006-01-02")
    	tomorrow := now.AddDate(0, 0, 1).Format("2006-01-02")
    	lastUsed := secret.Labels[LastUsedLabelKey]
    	if lastUsed != today && lastUsed != tomorrow {
    		patchContent, err := json.Marshal(applyv1.Secret(secret.Name, secret.Namespace).WithUID(secret.UID).WithLabels(map[string]string{LastUsedLabelKey: today}))
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

    		if err != nil {
    			invalidSince = now.Format(dateFormat)
    			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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_test.go

    							if action.GetVerb() == "patch" {
    								var (
    									err          error
    									patchAction  = action.(core.PatchActionImpl)
    									patchContent = patchAction.GetPatch()
    								)
    								savedNode, err = applyNodeStatusPatch(test.existingNode, patchContent)
    								if err != nil {
    									t.Logf("node patching failed, %v", err)
    									return false, nil
    								}
    							}
    						}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/envoyfilter/rc_patch.go

    			continue
    		}
    		if commonConditionMatch(patchContext, rp) &&
    			routeConfigurationMatch(patchContext, routeConfiguration, rp, portMap) {
    			merge.Merge(routeConfiguration, rp.Value)
    			IncrementEnvoyFilterMetric(rp.Key(), Route, true)
    		} else {
    			IncrementEnvoyFilterMetric(rp.Key(), Route, false)
    		}
    	}
    	patchVirtualHosts(patchContext, efw.Patches, routeConfiguration, portMap)
    
    	return routeConfiguration
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/listener_patch.go

    				if lp.Match.Context == networking.EnvoyFilter_ANY && patchContext != networking.EnvoyFilter_SIDECAR_OUTBOUND &&
    					patchContext != networking.EnvoyFilter_GATEWAY {
    					continue
    				}
    				if !commonConditionMatch(patchContext, lp) {
    					IncrementEnvoyFilterMetric(lp.Key(), Listener, false)
    					continue
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 15:39:29 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/envoyfilter/rc_patch_test.go

    	type args struct {
    		rc           *route.RouteConfiguration
    		patchContext networking.EnvoyFilter_PatchContext
    		cp           *model.EnvoyFilterConfigPatchWrapper
    		portMap      model.GatewayPortMap
    	}
    	tests := []struct {
    		name string
    		args args
    		want bool
    	}{
    		{
    			name: "nil route match",
    			args: args{
    				patchContext: networking.EnvoyFilter_SIDECAR_OUTBOUND,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/envoyfilter/cluster_patch_test.go

    			output := []*cluster.Cluster{}
    			for _, c := range tc.input {
    				if ShouldKeepCluster(tc.patchContext, efw, c, []host.Name{host.Name(tc.host)}) {
    					pc := ApplyClusterMerge(tc.patchContext, efw, c, []host.Name{host.Name(tc.host)})
    					output = append(output, pc)
    				}
    			}
    			output = append(output, InsertedClusters(tc.patchContext, efw)...)
    			if diff := cmp.Diff(tc.output, output, protocmp.Transform()); diff != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/tools/ToolSearchPath.java

                if (!new String(header, "utf-8").equals("!<symlink>")) {
                    return null;
                }
                byte[] pathContent = new byte[(int) symlink.length() - 11];
                instr.readFully(pathContent);
                pathStr = new String(pathContent, "utf-8");
            } finally {
                instr.close();
            }
    
            symlink = new File(symlink.getParentFile(), pathStr);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    	type args struct {
    		patchContext networking.EnvoyFilter_PatchContext
    		proxy        *model.Proxy
    		push         *model.PushContext
    		listeners    []*listener.Listener
    		skipAdds     bool
    	}
    	tests := []struct {
    		name string
    		args args
    		want []*listener.Listener
    	}{
    		{
    			name: "gateway lds",
    			args: args{
    				patchContext: networking.EnvoyFilter_GATEWAY,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
Back to top