Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,256 for yamlv3 (0.22 sec)

  1. pilot/pkg/config/file/store.go

    	}
    
    	// Build flat map for analyzers if the line JSON object exists, if the YAML text is ill-formed, this will be nil
    	fieldMap := make(map[string]int)
    
    	// yamlv3.Node contains information like line number of the node, which will be used with its name to construct the field map
    	yamlChunkNode := yamlv3.Node{}
    	err = yamlv3.Unmarshal(yamlChunk, &yamlChunkNode)
    	if err == nil && len(yamlChunkNode.Content) == 1 {
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. operator/pkg/util/yaml.go

    		return true
    	}
    	ajb, err := yaml.YAMLToJSON([]byte(a))
    	if err != nil {
    		scope.Debugf("bad YAML in isYAMLEqual:\n%s", a)
    		return false
    	}
    	bjb, err := yaml.YAMLToJSON([]byte(b))
    	if err != nil {
    		scope.Debugf("bad YAML in isYAMLEqual:\n%s", b)
    		return false
    	}
    
    	return bytes.Equal(ajb, bjb)
    }
    
    // IsYAMLEmpty reports whether the YAML string y is logically empty.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. operator/pkg/object/objects_test.go

    				}
    			}
    		})
    	}
    }
    
    // compareYAMLContent compares two yaml resources and returns true if they are equal. If they have same content but different
    // order of fields, it will return true as well.
    func compareYAMLContent(yaml1, yaml2 string) bool {
    	var obj1, obj2 interface{}
    	err := k8syaml.Unmarshal([]byte(yaml1), &obj1)
    	if err != nil {
    		return false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  4. operator/pkg/tpath/util.go

    */
    
    package tpath
    
    import (
    	"gopkg.in/yaml.v2"
    	yaml2 "sigs.k8s.io/yaml"
    
    	"istio.io/istio/operator/pkg/util"
    )
    
    // AddSpecRoot adds a root node called "spec" to the given tree and returns the resulting tree.
    func AddSpecRoot(tree string) (string, error) {
    	t, nt := make(map[string]any), make(map[string]any)
    	if err := yaml.Unmarshal([]byte(tree), &t); err != nil {
    		return "", err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. operator/pkg/patch/patch.go

    // or a list of errors otherwise.
    func applyPatches(base *object.K8sObject, patches []*v1alpha1.K8SObjectOverlay_PathValue) (outYAML string, errs util.Errors) {
    	bo := make(map[any]any)
    	by, err := base.YAML()
    	if err != nil {
    		return "", util.NewErrs(err)
    	}
    	// Use yaml2 specifically to allow interface{} as key which WritePathContext treats specially
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. hack/testdata/kustomize/kustomization.yaml

    nameprefix: test-
    resources:
    - deployment.yaml
    - service.yaml
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 26 00:31:03 UTC 2019
    - 79 bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/artifacts/kustomization/kustomization.yaml

    nameprefix: test-
    resources:
    - deployment.yaml
    - service.yaml
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 26 00:29:27 UTC 2019
    - 79 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package yaml
    
    import (
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/yaml"
    )
    
    // yamlSerializer converts YAML passed to the Decoder methods to JSON.
    type yamlSerializer struct {
    	// the nested serializer
    	runtime.Serializer
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  9. build/dependencies.yaml

        - path: staging/src/k8s.io/kubectl/testdata/set/multi-resource-yaml.yaml
          match: registry.k8s.io\/pause:\d+\.\d+
        - path: staging/src/k8s.io/kubectl/testdata/set/namespaced-resource.yaml
          match: registry.k8s.io\/pause:\d+\.\d+
        - path: test/cmd/core.sh
          match: registry.k8s.io\/pause:\d+\.\d+
        - path: test/fixtures/pkg/kubectl/cmd/set/multi-resource-yaml.yaml
          match: registry.k8s.io\/pause:\d+\.\d+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. samples/addons/loki.yaml

    ---
    # Source: loki/templates/serviceaccount.yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: loki
      namespace: istio-system
      labels:
        helm.sh/chart: loki-6.6.3
        app.kubernetes.io/name: loki
        app.kubernetes.io/instance: loki
        app.kubernetes.io/version: "3.0.0"
        app.kubernetes.io/managed-by: Helm
    automountServiceAccountToken: true
    ---
    # Source: loki/templates/config.yaml
    apiVersion: v1
    kind: ConfigMap
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:57:35 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top