- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for Unstructured (0.27 sec)
-
istioctl/pkg/wait/wait_test.go
t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr) } } } func newUnstructured(apiVersion, kind, namespace, name string, generation int64) *unstructured.Unstructured { return &unstructured.Unstructured{ Object: map[string]any{ "apiVersion": apiVersion, "kind": kind, "metadata": map[string]any{ "namespace": namespace, "name": name,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 08:28:50 GMT 2024 - 6.8K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
) type validator struct{} func checkFields(un *unstructured.Unstructured) error { var errs error for key := range un.Object { if _, ok := validFields[key]; !ok { errs = multierror.Append(errs, fmt.Errorf("unknown field %q", key)) } } return errs } func (v *validator) validateResource(istioNamespace, defaultNamespace string, un *unstructured.Unstructured, writer io.Writer) (validation.Warning, error) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
package mesh import ( "bytes" "context" "errors" "fmt" "os" "path/filepath" "strings" kerrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes/scheme" "sigs.k8s.io/controller-runtime/pkg/client"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
istioctl/pkg/workload/workload.go
return "", fmt.Errorf("could not retrieve global.multiCluster.clusterName from injection config") } return vs, nil } // Because we are placing into an Unstructured, place as a map instead // of structured Istio types. (The go-client can handle the structured data, but the // fake go-client used for mocking cannot.) func unstructureIstioType(spec any) (map[string]any, error) { b, err := yaml.Marshal(spec) if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Apr 17 20:06:41 GMT 2024 - 25.5K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
g.Expect(c).Should(HavePathValueEqual(PathValue{"resources.requests.memory", "888Mi"})) dobj = mustGetDeployment(g, objs, "ilb-gateway") d = dobj.Unstructured() c = dobj.Container("istio-proxy") s := mustGetService(g, objs, "ilb-gateway").Unstructured() g.Expect(d).Should(HavePathValueContain(PathValue{"metadata.labels", toMap("app:istio-ingressgateway,istio:ingressgateway,release: istio")}))
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 18 18:16:49 GMT 2024 - 43.5K bytes - Viewed (0) -
operator/cmd/mesh/test-util_test.go
for _, o := range objs { if o.Kind == kind && o.Name == name { return o } } return nil } // mustGetValueAtPath returns the value at the given path in the unstructured tree t. Fails if the path is not found // in the tree. func mustGetValueAtPath(g *WithT, t map[string]any, path string) any { got, f, err := tpath.GetPathContext(t, util.PathFromString(path), false)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 15.3K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
labels: service.istio.io/canonical-name: helloworld service.istio.io/canonical-revision: v1 spec: replicas: 1 ` ) func fromYAML(in string) *unstructured.Unstructured { var un unstructured.Unstructured if err := yaml.Unmarshal([]byte(in), &un); err != nil { panic(err) } return &un } func TestValidateResource(t *testing.T) { cases := []struct { name string
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jul 25 08:08:36 GMT 2023 - 21.5K bytes - Viewed (0) -
cmd/signature-v4-parser.go
return signedHeaders, ErrNone } // signValues data type represents structured form of AWS Signature V4 header. type signValues struct { Credential credentialHeader SignedHeaders []string Signature string } // preSignValues data type represents structured form of AWS Signature V4 query string. type preSignValues struct { signValues Date time.Time
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.4K bytes - Viewed (0) -
cmd/common-main.go
} return envKV{ Key: key, Value: val, }, nil } // Similar to os.Environ returns a copy of strings representing // the environment values from a file, in the form "key, value". // in a structured form. func minioEnvironFromFile(envConfigFile string) ([]envKV, error) { f, err := Open(envConfigFile) if err != nil { return nil, err } defer f.Close() var ekvs []envKV
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 35.8K bytes - Viewed (2) -
internal/s3select/select.go
} // Suffix length return -end, -1, nil } start = int64(*s.Start) end := int64(*s.End) return start, end - start + 1, nil } // S3Select - filters the contents on a simple structured query language (SQL) statement. It // represents elements inside <SelectRequest/> in request XML specified in detail at // https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html. type S3Select struct {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Nov 06 22:26:08 GMT 2023 - 21K bytes - Viewed (0)