Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 91 for contexts (0.31 sec)

  1. istioctl/pkg/tag/util.go

    // limitations under the License.
    
    package tag
    
    import (
    	"context"
    	"fmt"
    
    	"github.com/hashicorp/go-multierror"
    	admitv1 "k8s.io/api/admissionregistration/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/kubernetes"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/util"
    )
    
    func GetRevisionWebhooks(ctx context.Context, client kubernetes.Interface) ([]admitv1.MutatingWebhookConfiguration, error) {
    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)
  2. istioctl/pkg/xds/google.go

    )
    
    type meshAuthCredentials struct {
    	k8sCreds credentials.PerRPCCredentials
    	gcpCreds credentials.PerRPCCredentials
    	project  string
    }
    
    func (c *meshAuthCredentials) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {
    	ret := map[string]string{
    		"x-goog-user-project": c.project,
    	}
    	if err := updateAuthHdrs(ctx, uri, "k8s", c.k8sCreds, ret, "x-mesh-authorization"); err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Nov 14 20:23:34 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  3. istioctl/pkg/kubeinject/google.go

    package kubeinject
    
    import (
    	"context"
    	"fmt"
    	"net/http"
    	"strings"
    
    	"golang.org/x/oauth2"
    	"golang.org/x/oauth2/google"
    )
    
    func isMCPAddr(addr string) bool {
    	// A bit inexact but should be good enough.
    	return strings.Contains(addr, ".googleapis.com/") || strings.Contains(addr, ".googleapis.com:443/")
    }
    
    func mcpTransport(ctx context.Context, tr http.RoundTripper) (http.RoundTripper, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  4. cni/pkg/pluginlistener/listener_test.go

    	conn.Close()
    }
    
    func connect(socket string) (*grpc.ClientConn, error) {
    	var opts []grpc.DialOption
    
    	opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    	conn, err := grpc.Dial(socket, opts...)
    	if err != nil {
    		return nil, err
    	}
    
    	return conn, nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 21:58:32 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. istioctl/pkg/tag/revision.go

    				Webhooks:         []*MutatingWebhookConfigInfo{{Name: hook.Name, Revision: rev, Tag: tagLabel}},
    			}
    		}
    	}
    
    	return revisions, nil
    }
    
    func Webhooks(ctx context.Context, client kube.CLIClient) ([]admitv1.MutatingWebhookConfiguration, error) {
    	hooks, err := client.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().List(ctx, metav1.ListOptions{})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Jan 28 13:16:05 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  6. cni/pkg/plugin/kubernetes.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package plugin
    
    import (
    	"context"
    	"fmt"
    	"strings"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/kubernetes"
    
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/log"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. docker/iptables.yaml

    contents:
      repositories:
        - https://packages.wolfi.dev/os
      keyring:
        - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
      packages:
        - ca-certificates-bundle
        - wolfi-baselayout
        - glibc
        - iptables
        - ip6tables
        - libnetfilter_conntrack
        - libnfnetlink
        - libmnl
        - libgcc
    archs:
      - x86_64
      - aarch64
    paths:
    - path: /run
      type: directory
      permissions: 0o755
    accounts:
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 17:24:41 GMT 2024
    - 541 bytes
    - Viewed (0)
  8. istioctl/pkg/proxystatus/proxystatus_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package proxystatus
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    	"github.com/spf13/cobra"
    	"google.golang.org/grpc"
    	corev1 "k8s.io/api/core/v1"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. manifests/charts/gateways/istio-ingress/templates/_affinity.tpl

    {{/* affinity - https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ */}} {{ define "nodeaffinity" }} nodeAffinity: requiredDuringSchedu: {{- include "nodeAffinityRequired" . }} preferredDuringSched: {{- include "nodeAffinityPreferre" . }} {{- end }} {{- define "nodeAffinityRequired" }} {{- $nodeSelector := default .global.defaultNodeSelector .nodeSelector -}} {{- if or .global.arch $nodeSelector }} nodeSelectorTerms: - matchExpressions: {{- if .global.arch }} - key: kubernetes.io/arch...
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Aug 10 21:23:08 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/compare/sds/util.go

    func NewSecretItemBuilder() SecretItemBuilder {
    	return &secretItemBuilder{}
    }
    
    // SecretItemBuilder wraps the process of setting fields for the SecretItem
    // and builds the Metadata fields from the cert contents behind the scenes
    type SecretItemBuilder interface {
    	Name(string) SecretItemBuilder
    	Data(string) SecretItemBuilder
    	Source(string) SecretItemBuilder
    	Destination(string) SecretItemBuilder
    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)
Back to top