Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for diff (0.27 sec)

  1. operator/cmd/mesh/profile-diff.go

    	return &cobra.Command{
    		Use:   "diff <profile|file1.yaml> <profile|file2.yaml>",
    		Short: "Diffs two Istio configuration profiles",
    		Long:  "The diff subcommand displays the differences between two Istio configuration profiles.",
    		Example: `  # Profile diff by providing yaml files
      istioctl profile diff manifests/profiles/default.yaml manifests/profiles/demo.yaml
    
      # Profile diff by providing a profile name
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-diff.go

    }
    
    func manifestDiffCmd(diffArgs *manifestDiffArgs) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "diff <file|dir> <file|dir>",
    		Short: "Compare manifests and generate diff",
    		Long: "The diff subcommand compares manifests from two files or directories. The output is a list of\n" +
    			"changed paths with the value changes shown as OLD-VALUE -> NEW-VALUE.\n" +
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. bin/diff_yaml.py

                print("## ", k)
                s0 = yaml.safe_dump(q0[k], default_flow_style=False, indent=2)
                s1 = yaml.safe_dump(q1[k], default_flow_style=False, indent=2)
    
                print(datadiff.diff(s0, s1, fromfile=args.orig, tofile=args.new))
    
        return changed + len(added) + len(removed)
    
    
    def main(args):
        return compare(args)
    
    
    def get_parser():
        parser = argparse.ArgumentParser(
    Python
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/testdata/configdump_diff.json

    Xiaopeng Han <******@****.***> 1710237729 +0800
    Json
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 51.6K bytes
    - Viewed (0)
  5. operator/cmd/mesh/profile-diff_test.go

    func TestProfileDiff(t *testing.T) {
    	cases := []profileDiffTestcase{
    		{
    			args:       "profile diff demo default --unknown-flag",
    			shouldFail: true,
    		},
    		{
    			args:       "profile diff demo",
    			shouldFail: true,
    		},
    		{
    			args:       "profile diff",
    			shouldFail: true,
    		},
    		{
    			args:       fmt.Sprintf("profile diff default unknown-profile --manifests %s", snapshotCharts),
    			shouldFail: true,
    		},
    		{
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  6. operator/cmd/mesh/operator_test.go

    			t.Error(err)
    		}
    	}
    
    	wantYAML, err := readFile(goldenFilepath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if diff := util.YAMLDiff(wantYAML, gotYAML); diff != "" {
    		t.Fatalf("diff: %s", diff)
    	}
    }
    
    func TestOperatorDumpJSONFormat(t *testing.T) {
    	goldenFilepath := filepath.Join(env.IstioSrc, "operator/cmd/mesh/testdata/operator/output/operator-dump.json")
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  7. common/scripts/check_clean_repo.sh

    function write_patch_file() {
        if [ -z "${ARTIFACTS}" ]; then
          return 0
        fi
    
        PATCH_NAME="check-clean-repo-diff.patch"
        PATCH_OUT="${ARTIFACTS}/${PATCH_NAME}"
        git diff > "${PATCH_OUT}"
    
        [ -n "${JOB_NAME}" ] && [ -n "${BUILD_ID}" ]
        IN_PROW="$?"
    
        # Don't persist large diffs (30M+) on CI
        LARGE_FILE="$(find "${ARTIFACTS}" -name "${PATCH_NAME}" -type 'f' -size +30M)"
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jan 11 22:57:12 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. .gitattributes

    *.descriptor      linguist-generated=true
    *.descriptor      -diff -merge
    *.descriptor_set  linguist-generated=true
    *.descriptor_set  -diff -merge
    *.pb.html linguist-generated=true
    *.pb.go linguist-generated=true
    *.gen.go linguist-generated=true
    *.gen.yaml linguist-generated=true
    *.gen.json linguist-generated=true
    *_pb2.py linguist-generated=true
    manifests/charts/**/profile*.yaml linguist-generated=true
    go.sum merge=union
    vendor/**  linguist-vendored
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 01 19:15:39 GMT 2024
    - 545 bytes
    - Viewed (0)
  9. cni/test/install_cni.go

    	}
    	expectedFile, err := os.ReadFile(expected)
    	if err != nil {
    		return fmt.Errorf("couldn't read expected: %v", err)
    	}
    	if !bytes.Equal(resultFile, expectedFile) {
    		return fmt.Errorf("expected != result. Diff: %v", cmp.Diff(string(expectedFile), string(resultFile)))
    	}
    	return nil
    }
    
    // compareConfResult does a string compare of 2 test files.
    func compareConfResult(result, expected string, t *testing.T) {
    	t.Helper()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  10. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    //
    // Non-canonical values will still parse as long as they are well formed,
    // but will be re-emitted in their canonical form. (So always use canonical
    // form, or don't diff.)
    //
    // This format is intended to make it difficult to use these numbers without
    // writing some sort of special handling code in the hopes that that will
    // cause implementors to also use a fixed point implementation.
    //
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top