- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for decoder (0.17 sec)
-
istioctl/pkg/validate/validate.go
) (validation.Warning, error) { decoder := yaml.NewDecoder(reader) decoder.SetStrict(true) var errs error var warnings validation.Warning for { // YAML allows non-string keys and the produces generic keys for nested fields raw := make(map[any]any) err := decoder.Decode(&raw) if err == io.EOF { return warnings, errs } if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
} webhookYAML, err := generateValidatingWebhook(webhookConfig, opts) if err != nil { t.Fatalf("tag webhook YAML generation failed with error: %v", err) } vwhObject, _, err := deserializer.Decode([]byte(webhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{}) if err != nil { t.Fatalf("could not parse webhook from generated YAML: %s", vwhObject) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jan 16 17:43:49 GMT 2024 - 12.1K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/util.go
if err != nil { return SecretItem{}, fmt.Errorf("error building secret: %v", err) } return secret, nil } func secretMetaFromCert(rawCert []byte) (SecretMeta, error) { block, _ := pem.Decode(rawCert) if block == nil { return SecretMeta{}, fmt.Errorf("failed to parse certificate PEM") } cert, err := x509.ParseCertificate(block.Bytes) if err != nil { return SecretMeta{}, err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jun 06 15:14:48 GMT 2023 - 6.6K bytes - Viewed (0) -
istioctl/pkg/tag/util.go
// switch back to it. This is a hack but it is meant to cover a corner case where a user wants to migrate from a non-revisioned // old version and then later decides to switch back to the old revision again. func DeactivateIstioInjectionWebhook(ctx context.Context, client kubernetes.Interface) error { whs, err := GetWebhooksWithRevision(ctx, client, DefaultRevisionName) if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jan 16 17:43:42 GMT 2024 - 5.4K bytes - Viewed (1) -
istioctl/pkg/waypoint/waypoint.go
kubeClient, err := ctx.CLIClientWithRevision(revision) if err != nil { return fmt.Errorf("failed to create Kubernetes client: %v", err) } ns := ctx.NamespaceOrDefault(ctx.Namespace()) // If a user decides to enroll their namespace with a waypoint, verify that they have labeled their namespace as ambient. // If they don't, the user will be warned and be presented with the command to label their namespace as ambient if they
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 19:45:58 GMT 2024 - 15.5K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
uglyJSON, err := yaml.YAMLToJSON([]byte(yml)) if err != nil { return "", err } var decoded any if uglyJSON[0] == '[' { decoded = make([]any, 0) } else { decoded = map[string]any{} } if err := json.Unmarshal(uglyJSON, &decoded); err != nil { return "", err } prettyJSON, err := json.MarshalIndent(decoded, "", " ") if err != nil { return "", err } return string(prettyJSON), nil }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto
// Package-wide variables from generator "generated". option go_package = "k8s.io/api/apiserverinternal/v1alpha1"; // An API server instance reports the version it can decode and the version it // encodes objects to when persisting objects in the backend. message ServerStorageVersion { // The ID of the reporting API server. optional string apiServerID = 1;
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Mar 11 18:43:24 GMT 2024 - 4.1K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
return nil, err } var obj runtime.Object var ar *kube.AdmissionReview out, _, err := deserializer.Decode(body, nil, obj) if err != nil { return nil, fmt.Errorf("could not decode body: %v", err) } ar, err = kube.AdmissionReviewKubeToAdapter(out) if err != nil { return nil, fmt.Errorf("could not decode object: %v", err) } return ar.Response.Patch, nil } var (
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 29 02:29:02 GMT 2024 - 21.6K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("request not successful %s", resp.Status) } err = json.NewDecoder(resp.Body).Decode(&scopeInfos) if err != nil { return nil, fmt.Errorf("cannot deserialize response %s", err) } return scopeInfos, nil } func (c *ControlzClient) PutScope(scope *ScopeInfo) error {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 13.5K bytes - Viewed (0) -
common-protos/k8s.io/api/admissionregistration/v1/generated.proto
// a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. // // Defaults to "Equivalent" // +optional optional string matchPolicy = 9; // NamespaceSelector decides whether to run the webhook on an object based // on whether the namespace for that object matches the selector. If the // object itself is a namespace, the matching is performed on
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Mar 11 18:43:24 GMT 2024 - 24.4K bytes - Viewed (0)