Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for Encode (0.15 sec)

  1. istioctl/pkg/tag/generate.go

    			Yaml:   true,
    			Pretty: true,
    			Strict: true,
    		})
    
    	whObject, _, err := deserializer.Decode([]byte(validatingWebhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{})
    	if err != nil {
    		return "", fmt.Errorf("could not decode generated webhook: %w", err)
    	}
    	decodedWh := whObject.(*admitv1.ValidatingWebhookConfiguration)
    	for i := range decodedWh.Webhooks {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. istioctl/pkg/multicluster/remote_secret.go

    	return c
    }
    
    func createRemoteServiceAccountSecret(kubeconfig *api.Config, clusterName, secName string) (*v1.Secret, error) { // nolint:interfacer
    	var data bytes.Buffer
    	if err := latest.Codec.Encode(kubeconfig, &data); err != nil {
    		return nil, err
    	}
    	key := clusterName
    	if secName == configSecretName {
    		key = configSecretKey
    	}
    	out := &v1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/pod_cache.go

    		if existing.Netns.Inode() == workload.Netns.Inode() {
    			workload.Netns.Close()
    			// Replace the workload, but keep the old Netns
    			p.currentPodCache[uid] = WorkloadInfo{
    				Workload: workload.Workload,
    				Netns:    existing.Netns,
    			}
    			// already in cache
    			return existing.Netns
    		}
    		log.Debug("netns inode mismatch, using the new one")
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/workload.go

    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    			return in < jn
    		}
    		iNode := verifiedWorkloads[i].Node
    		jNode := verifiedWorkloads[j].Node
    		return iNode < jNode
    	})
    
    	if filter.Verbose {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns_other.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	return 0, fmt.Errorf("unable to get inode os not supported")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 781 bytes
    - Viewed (0)
  6. istioctl/pkg/writer/table/writer.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package table
    
    import (
    	"fmt"
    	"io"
    	"strings"
    	"unicode/utf8"
    
    	"github.com/fatih/color"
    )
    
    type ColoredTableWriter struct {
    	writer     io.Writer
    	header     Row
    	rows       []Row
    	addRowFunc func(obj interface{}) Row
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate.go

    	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 {
    			errs = multierror.Append(errs, multierror.Prefix(err, fmt.Sprintf("failed to decode file %s: ", path)))
    			return warnings, errs
    		}
    		if len(raw) == 0 {
    			continue
    		}
    		out := transformInterfaceMap(raw)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret_test.go

    			wantErrStr: `no "token" data found`,
    		},
    		{
    			testName:          "fail to encode secret",
    			objs:              []runtime.Object{kubeSystemNamespace, sa, saSecret},
    			outputWriterError: errors.New("injected encode error"),
    			wantErrStr:        "injected encode error",
    		},
    		{
    			testName: "success",
    			objs:     []runtime.Object{kubeSystemNamespace, sa, saSecret},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  9. istioctl/pkg/multixds/gather.go

    	for _, response := range responses {
    		retval[CpInfo(response).ID] = response
    	}
    
    	return retval, nil
    }
    
    // CpInfo returns the Istio control plane info from JSON-encoded XDS ControlPlane Identifier
    func CpInfo(xdsResponse *discovery.DiscoveryResponse) pilotxds.IstioControlPlaneInstance {
    	if xdsResponse.ControlPlane == nil {
    		return pilotxds.IstioControlPlaneInstance{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. manifests/charts/base/crds/crd-all.gen.yaml

                              description: An optional list of hex-encoded SHA-256 hashes
                                of the authorized client certificates.
                              items:
                                type: string
                              type: array
                            verifyCertificateSpki:
                              description: An optional list of base64-encoded SHA-256
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 20:20:47 GMT 2024
    - 606.1K bytes
    - Viewed (0)
Back to top