Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for ExtractInto (0.32 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract.go

    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime"
    )
    
    // ExtractInto extracts the applied configuration state from object for fieldManager
    // into applyConfiguration. If no managed fields are found for the given fieldManager,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 03:17:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract_test.go

    			out := map[string]interface{}{}
    			accessor, err := meta.Accessor(tc.obj)
    			if err != nil {
    				t.Fatalf("Error accessing object: %v", err)
    			}
    			accessor.SetManagedFields(tc.managedFields)
    			err = ExtractInto(tc.obj, tc.objType, tc.fieldManager, &out, tc.subresource)
    			if err != nil {
    				t.Fatalf("Unexpected extract error: %v", err)
    			}
    			if !equality.Semantic.DeepEqual(out, tc.expectedOut) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 22 22:32:45 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  3. hack/golangci-strict.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. hack/golangci.yaml.in

          settings:
            config: |
              {{include "hack/logcheck.conf" | indent 10 | trim}}
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 13:12:04 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. hack/golangci-hints.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. hack/golangci.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/client-go/applyconfigurations/apiserverinternal/v1alpha1/storageversion.go

    }
    
    func extractStorageVersion(storageVersion *v1alpha1.StorageVersion, fieldManager string, subresource string) (*StorageVersionApplyConfiguration, error) {
    	b := &StorageVersionApplyConfiguration{}
    	err := managedfields.ExtractInto(storageVersion, internal.Parser().Type("io.k8s.api.apiserverinternal.v1alpha1.StorageVersion"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(storageVersion.Name)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 12.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/deployment.go

    }
    
    func extractDeployment(deployment *appsv1beta2.Deployment, fieldManager string, subresource string) (*DeploymentApplyConfiguration, error) {
    	b := &DeploymentApplyConfiguration{}
    	err := managedfields.ExtractInto(deployment, internal.Parser().Type("io.k8s.api.apps.v1beta2.Deployment"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(deployment.Name)
    	b.WithNamespace(deployment.Namespace)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1/validatingadmissionpolicybinding.go

    	b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
    	err := managedfields.ExtractInto(validatingAdmissionPolicyBinding, internal.Parser().Type("io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 20:51:52 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/job.go

    	return extractJob(job, fieldManager, "status")
    }
    
    func extractJob(job *apibatchv1.Job, fieldManager string, subresource string) (*JobApplyConfiguration, error) {
    	b := &JobApplyConfiguration{}
    	err := managedfields.ExtractInto(job, internal.Parser().Type("io.k8s.api.batch.v1.Job"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    	b.WithName(job.Name)
    	b.WithNamespace(job.Namespace)
    
    	b.WithKind("Job")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 11.6K bytes
    - Viewed (0)
Back to top