- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,276 for corev1 (0.06 sec)
-
istioctl/pkg/multicluster/remote_secret.go
} if secretNamespace == "" { secretNamespace = opt.Namespace } return client.Kube().CoreV1().Secrets(secretNamespace).Get(context.TODO(), secretName, metav1.GetOptions{}) } func getOrCreateServiceAccount(client kube.CLIClient, opt RemoteSecretOptions) (*v1.ServiceAccount, error) { if sa, err := client.Kube().CoreV1().ServiceAccounts(opt.Namespace).Get( context.TODO(), opt.ServiceAccountName, metav1.GetOptions{}); err == nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 23.3K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics_test.go
} ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", }) client, err := ctx.CLIClient() if err != nil { t.Fatal(err) } client.Kube().CoreV1().Pods("istio-system").Create(context.TODO(), &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "prometheus", Namespace: "istio-system", Labels: map[string]string{ "app.kubernetes.io/name": "prometheus", }, },
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 01:35:47 UTC 2024 - 8K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
createClientFunc := func(client kube.CLIClient) { client.Kube().CoreV1().ServiceAccounts("bar").Create(context.Background(), &v1.ServiceAccount{ ObjectMeta: metav1.ObjectMeta{Namespace: "bar", Name: "vm-serviceaccount"}, Secrets: []v1.ObjectReference{{Name: "test"}}, }, metav1.CreateOptions{}) client.Kube().CoreV1().ConfigMaps("bar").Create(context.Background(), &v1.ConfigMap{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 14.6K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher.go
} return nil } func (s *CniPluginServer) getPodWithRetry(log *istiolog.Scope, name, namespace string) (*corev1.Pod, error) { log.Debugf("Checking if pod %s/%s is enabled for ambient", namespace, name) const maxStaleRetries = 10 const msInterval = 10 retries := 0 var ambientPod *corev1.Pod var err error
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
if err != nil { return err } pod, err := kubeClient.Kube().CoreV1().Pods(podNs).Get(context.TODO(), podName, metav1.GetOptions{}) if err != nil { return err } ns, err := kubeClient.Kube().CoreV1().Namespaces().Get(context.TODO(), podNs, metav1.GetOptions{}) if err != nil { return err } podLabels = pod.GetLabels()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
cni/pkg/repair/netns.go
// limitations under the License. package repair import ( "fmt" "math" "net" "strconv" netns "github.com/containernetworking/plugins/pkg/ns" "github.com/prometheus/procfs" corev1 "k8s.io/api/core/v1" "istio.io/istio/pkg/log" ) func getPidNamespace(pid int) string { return "/host/proc/" + strconv.Itoa(pid) + "/ns/net" } func runInHost[T any](f func() (T, error)) (T, error) { var res T
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.3K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "errors" "fmt" "path/filepath" "runtime" "sync" corev1 "k8s.io/api/core/v1" "istio.io/istio/pkg/maps" "istio.io/istio/pkg/zdsapi" ) var ErrPodNotFound = errors.New("netns not provided, but is needed as pod is not in cache") type PodNetnsCache interface {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 17:18:11 UTC 2024 - 4.3K bytes - Viewed (0) -
istioctl/pkg/tag/revision.go
// See the License for the specific language governing permissions and // limitations under the License. package tag import ( "context" "fmt" admitv1 "k8s.io/api/admissionregistration/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "istio.io/api/label" iopv1alpha1 "istio.io/istio/operator/pkg/apis" "istio.io/istio/pkg/kube" )
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 4.5K bytes - Viewed (0) -
cni/pkg/nodeagent/fakes_test.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "context" "embed" "io/fs" "sync/atomic" "syscall" corev1 "k8s.io/api/core/v1" "istio.io/istio/cni/pkg/iptables" ) //go:embed testdata/cgroupns var fakeProc embed.FS type fakeZtunnel struct { deletedPods atomic.Int32 addedPods atomic.Int32 addError error
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 23:33:46 UTC 2024 - 3.9K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns.go
"regexp" "strings" "unicode" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" "istio.io/istio/pkg/maps" "istio.io/istio/pkg/util/sets" ) type PodToNetns map[string]WorkloadInfo func (p PodToNetns) Close() { for _, wl := range p { wl.Netns.Close() } } type PodNetnsFinder interface { FindNetnsForPods(filter map[types.UID]*corev1.Pod) (PodToNetns, error) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 11K bytes - Viewed (0)