- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for genyaml (0.14 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 01:23:27 UTC 2023 - 5.7K bytes - Viewed (0) -
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) -
pkg/test/util/yml/apply.go
return "", fmt.Errorf("json merge error (%s) for base object: \n%s\n override object: \n%s", err, mainYaml, overlayYaml) } resYaml, err := yaml.JSONToYAML(merged) if err != nil { return "", fmt.Errorf("jsonToYAML error (%s) for merged object: \n%s", err, merged) } return string(resYaml), nil } // MustApplyNamespace applies the given namespaces to the resources in the yamlText if not set.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 17 07:02:38 UTC 2023 - 3.8K bytes - Viewed (0) -
operator/pkg/apis/istio/common.go
iops := &v1alpha1.IstioOperatorSpec{} if err := util.UnmarshalWithJSONPB(iopsYAML, iops, false); err != nil { return nil, fmt.Errorf("could not unmarshal the merged YAML: %s\n\nYAML:\n%s", err, iopsYAML) } if errs := validate.CheckIstioOperatorSpec(iops, true); len(errs) != 0 { return iops, fmt.Errorf(errs.Error()) } return iops, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 23 17:19:38 UTC 2022 - 2K bytes - Viewed (0)