- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 151 for admitPV (0.14 sec)
-
plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go
switch a.GetResource().GroupResource() { case pvResource: return c.admitPV(a) case pvcResource: return c.admitPVC(a) default: return nil } } func (c *storageProtectionPlugin) admitPV(a admission.Attributes) error { if len(a.GetSubresource()) != 0 { return nil } pv, ok := a.GetObject().(*api.PersistentVolume) // if we can't convert the obj to PV, just return if !ok { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 02 21:13:50 UTC 2021 - 3.2K bytes - Viewed (0) -
istioctl/pkg/tag/util.go
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) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 16 17:43:42 UTC 2024 - 5.4K bytes - Viewed (0) -
plugin/pkg/admission/priority/admission.go
var ( podResource = core.Resource("pods") priorityClassResource = scheduling.Resource("priorityclasses") ) // Admit checks Pods and admits or rejects them. It also resolves the priority of pods based on their PriorityClass. // Note that pod validation mechanism prevents update of a pod priority. func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { operation := a.GetOperation()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 08 10:11:23 UTC 2022 - 9K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
Name: "istio-sidecar-injector", Labels: map[string]string{label.IoIstioRev.Name: "default"}, }, Webhooks: []admitv1.MutatingWebhook{ { Name: fmt.Sprintf("namespace.%s", istioInjectionWebhookSuffix), ClientConfig: admitv1.WebhookClientConfig{ Service: &admitv1.ServiceReference{ Namespace: "default", Name: "istiod", }, CABundle: []byte("ca"), }, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 16 17:43:49 UTC 2024 - 12.1K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
tag string webhooksBefore admitv1.MutatingWebhookConfigurationList webhooksAfter admitv1.MutatingWebhookConfigurationList namespaces corev1.NamespaceList outputMatches []string skipConfirmation bool error string }{ { name: "TestSimpleRemove", tag: "sample", webhooksBefore: admitv1.MutatingWebhookConfigurationList{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Nov 17 22:41:06 UTC 2023 - 8.7K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list.go
fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", namespace.Name, hook.Name, revision, injectedImages[revision]) } } return w.Flush() } func getInjector(namespace *corev1.Namespace, hooks []admitv1.MutatingWebhookConfiguration) *admitv1.MutatingWebhookConfiguration { // find matching hook for _, hook := range hooks { for _, webhook := range hook.Webhooks { nsSelector, err := metav1.LabelSelectorAsSelector(webhook.NamespaceSelector)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 04 03:08:06 UTC 2024 - 10.4K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission_test.go
err := admissiontesting.WithReinvocationTesting(t, admit).Admit(context.TODO(), attrs, nil) if err == nil { t.Errorf("Expected error for missing service account, got none") } } func TestAutomountsAPIToken(t *testing.T) { admit := NewServiceAccount() informerFactory := informers.NewSharedInformerFactory(nil, controller.NoResyncPeriodFunc()) admit.SetExternalKubeInformerFactory(informerFactory)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 36.9K bytes - Viewed (0) -
istioctl/pkg/tag/generate.go
return nil, err } if vwh == nil { return whConfig, nil } if whConfig.FailurePolicy == nil { whConfig.FailurePolicy = map[string]*admitv1.FailurePolicyType{} } for _, wh := range vwh.Webhooks { if wh.FailurePolicy != nil && *wh.FailurePolicy == admitv1.Fail { whConfig.FailurePolicy[wh.Name] = nil } else { whConfig.FailurePolicy[wh.Name] = wh.FailurePolicy } } return whConfig, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 16 17:43:49 UTC 2024 - 13.2K bytes - Viewed (0) -
pkg/revisions/default_watcher.go
webhooks kclient.Client[*admitv1.MutatingWebhookConfiguration] mu sync.RWMutex } func NewDefaultWatcher(client kube.Client, revision string) DefaultWatcher { p := &defaultWatcher{ revision: revision, mu: sync.RWMutex{}, } p.queue = controllers.NewQueue("default revision", controllers.WithReconciler(p.setDefault)) p.webhooks = kclient.New[*admitv1.MutatingWebhookConfiguration](client)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 09 02:22:47 UTC 2023 - 3.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/injection/image-auto.go
}, } } // Analyze implements Analyzer. func (a *ImageAutoAnalyzer) Analyze(c analysis.Context) { var istioWebhooks []admitv1.MutatingWebhook c.ForEach(gvk.MutatingWebhookConfiguration, func(resource *resource.Instance) bool { mwhc := resource.Message.(*admitv1.MutatingWebhookConfiguration) for _, wh := range mwhc.Webhooks { if strings.HasSuffix(wh.Name, "istio.io") { istioWebhooks = append(istioWebhooks, wh)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 01 01:34:15 UTC 2023 - 4K bytes - Viewed (0)