Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for WithPatch (0.27 sec)

  1. cmd/kubeadm/app/phases/upgrade/policy_test.go

    				clusterVersion: minimumControlPlaneVersion.WithPatch(3).String(),
    				kubeletVersion: minimumControlPlaneVersion.WithPatch(3).String(),
    				kubeadmVersion: minimumControlPlaneVersion.WithPatch(5).String(),
    			},
    			newK8sVersion: minimumControlPlaneVersion.WithPatch(5).String(),
    		},
    		{
    			name: "major upgrade",
    			vg: &fakeVersionGetter{
    				clusterVersion: minimumControlPlaneVersion.WithPatch(3).String(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 03:17:05 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/preflight/checks_test.go

    		{"v" + minimumKubeletVersion.String(), minimumControlPlaneVersion.WithPatch(5).String(), false, false},                             // kubelet within same major.minor as control plane
    		{"v" + minimumKubeletVersion.WithPatch(5).String(), minimumControlPlaneVersion.WithPatch(1).String(), false, false},                // kubelet is newer, but still within same major.minor as control plane
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/upgrade/compute_test.go

    	v1X0 := versionutil.MustParseSemantic("v1.14.0")
    	v1X5 := v1X0.WithPatch(5)
    
    	// v1.Y series, where Y = X+1, e.g. v1.15
    	v1Y0 := versionutil.MustParseSemantic("v1.15.0")
    	v1Y0alpha0 := v1Y0.WithPreRelease("alpha.0")
    	v1Y0alpha1 := v1Y0.WithPreRelease("alpha.1")
    	v1Y1 := v1Y0.WithPatch(1)
    	v1Y2 := v1Y0.WithPatch(2)
    	v1Y3 := v1Y0.WithPatch(3)
    	v1Y5 := v1Y0.WithPatch(5)
    
    	// v1.Z series, where Z = Y+1, e.g. v1.16
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 08:39:51 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/uploadconfig/uploadconfig_test.go

    			if err != nil {
    				t2.Fatalf("UploadConfiguration() error = %v", err)
    			}
    			cfg.ComponentConfigs = kubeadmapi.ComponentConfigMap{}
    			cfg.ClusterConfiguration.KubernetesVersion = kubeadmconstants.MinimumControlPlaneVersion.WithPatch(10).String()
    			cfg.NodeRegistration.Name = "node-foo"
    			cfg.NodeRegistration.CRISocket = kubeadmconstants.DefaultCRISocket
    
    			client := clientsetfake.NewSimpleClientset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 08:46:51 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/version/version.go

    func (v *Version) WithMinor(minor uint) *Version {
    	result := *v
    	result.components = []uint{v.Major(), minor, v.Patch()}
    	return &result
    }
    
    // WithPatch returns copy of the version object with requested patch number
    func (v *Version) WithPatch(patch uint) *Version {
    	result := *v
    	result.components = []uint{v.Major(), v.Minor(), patch}
    	return &result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  6. operator/pkg/helmreconciler/apply_test.go

    	"istio.io/istio/operator/pkg/apis/istio/v1alpha1"
    	"istio.io/istio/operator/pkg/object"
    )
    
    var interceptorFunc = interceptor.Funcs{Patch: func(
    	ctx context.Context,
    	clnt client.WithWatch,
    	obj client.Object,
    	patch client.Patch,
    	opts ...client.PatchOption,
    ) error {
    	// Apply patches are supposed to upsert, but fake client fails if the object doesn't exist,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest_shared_test.go

    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    var interceptorFunc = interceptor.Funcs{Patch: func(
    	ctx context.Context,
    	clnt client.WithWatch,
    	obj client.Object,
    	patch client.Patch,
    	opts ...client.PatchOption,
    ) error {
    	// Apply patches are supposed to upsert, but fake client fails if the object doesn't exist,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 20 22:39:28 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top