Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for genyaml (0.14 sec)

  1. cmd/genyaml/gen_kubectl_yaml.go

    	os.Setenv("HOME", "/home/username")
    	kubectl := cmd.NewKubectlCommand(cmd.KubectlOptions{IOStreams: genericiooptions.IOStreams{In: bytes.NewReader(nil), Out: io.Discard, ErrOut: io.Discard}})
    	genYaml(kubectl, "", outDir)
    	for _, c := range kubectl.Commands() {
    		genYaml(c, "kubectl", outDir)
    	}
    }
    
    // Temporary workaround for yaml lib generating incorrect yaml with long strings
    // that do not contain \n.
    func forceMultiLine(s string) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 14:05:23 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. hack/update-generated-docs.sh

    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    kube::util::ensure-temp-dir
    
    BINS=(
    	./cmd/gendocs
    	./cmd/genkubedocs
    	./cmd/genman
    	./cmd/genyaml
    )
    GOPROXY=off go install "${BINS[@]}"
    
    # Run all doc generators.
    # $1 is the directory to put those generated documents
    generate_docs() {
      local dest="$1"
    
      mkdir -p "${dest}/docs/user-guide/kubectl/"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:33 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/config/source.go

    	// YAML reads the yaml from this Source. If this source contains parameters,
    	// it is evaluated as a template.
    	YAML() (string, error)
    
    	// YAMLOrFail calls GetYAML and fails if an error occurs.
    	YAMLOrFail(t test.Failer) string
    
    	// MustYAML calls GetYAML and panics if an error occurs.
    	MustYAML() string
    
    	// Split this source into individual CRDs.
    	Split() ([]Source, error)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator_test.go

    	cmd += " --watchedNamespaces " + odArgs.common.watchedNamespaces
    	cmd += " --manifests=" + string(snapshotCharts)
    
    	gotYAML, err := runCommand(cmd)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if refreshGoldenFiles() {
    		t.Logf("Refreshing golden file for %s", goldenFilepath)
    		if err := os.WriteFile(goldenFilepath, []byte(gotYAML), 0o644); err != nil {
    			t.Error(err)
    		}
    	}
    
    	wantYAML, err := readFile(goldenFilepath)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:33 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. pkg/test/framework/components/opentelemetry/kube.go

        ports:
          http-tracing-span: 15443 # Do not change this port value
    `
    )
    
    func getYaml() (string, error) {
    	b, err := os.ReadFile(env.OtelCollectorInstallFilePath)
    	if err != nil {
    		return "", err
    	}
    	return string(b), nil
    }
    
    func install(ctx resource.Context, ns string) error {
    	y, err := getYaml()
    	if err != nil {
    		return err
    	}
    	return ctx.ConfigKube().YAML(ns, y).Apply()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 19:29:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. pilot/pkg/security/authz/model/model_test.go

    			}
    			p, _ := m.Generate(tc.forTCP, false, tc.action)
    			var gotYaml string
    			if p != nil {
    				if gotYaml, err = protomarshal.ToYAML(p); err != nil {
    					t.Fatalf("%s: failed to parse yaml: %s", tc.name, err)
    				}
    			}
    
    			for _, want := range tc.want {
    				if !strings.Contains(gotYaml, want) {
    					t.Errorf("got:\n%s but not found %s", gotYaml, want)
    				}
    			}
    			for _, notWant := range tc.notWant {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. pilot/pkg/model/conversion_test.go

    		t.Errorf("FromYAML failed: got %+v want %+v", spew.Sdump(gotFromJSON), spew.Sdump(msg))
    	}
    
    	gotYAML, err := protomarshal.ToYAML(msg)
    	if err != nil {
    		t.Errorf("ToYAML failed: %v", err)
    	}
    	if !reflect.DeepEqual(gotYAML, wantYAML) {
    		t.Errorf("ToYAML failed: got %+v want %+v", spew.Sdump(gotYAML), spew.Sdump(wantYAML))
    	}
    
    	if _, err = protomarshal.ToYAML(nil); err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 20:50:14 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier.go

    	for _, extension := range extensions {
    		if extension.GetValue().GetYaml() == "" ||
    			extension.GetName() != "x-kubernetes-group-version-kind" {
    			continue
    		}
    		var value map[string]string
    		err := yaml.Unmarshal([]byte(extension.GetValue().GetYaml()), &value)
    		if err != nil {
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 01:23:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. operator/pkg/tpath/struct_test.go

    			}
    			if tt.wantErr != "" || !tt.wantFound {
    				return
    			}
    			gotYAML := util.ToYAML(GotOut)
    			diff := util.YAMLDiff(gotYAML, tt.wantYAML)
    			if diff != "" {
    				t.Errorf("GetFromStructPath(%s): YAML of gotOut:\n%s\n, YAML of wantOut:\n%s\n, diff:\n%s\n", tt.desc, gotYAML, tt.wantYAML, diff)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  10. operator/pkg/tpath/tree_test.go

    					t.Error("tt.want is set but never checked")
    				}
    				return
    			}
    
    			err := WritePathContext(pc, tt.value, false)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			gotYAML := util.ToYAML(root)
    			diff := util.YAMLDiff(gotYAML, tt.want)
    			if diff != "" {
    				t.Errorf("%s: (got:-, want:+):\n%s\n", tt.desc, diff)
    			}
    		})
    	}
    }
    
    func TestWriteNode(t *testing.T) {
    	testTreeYAML := `
    a:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 15.6K bytes
    - Viewed (0)
Back to top