- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for admitPV (0.13 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/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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission.go
func (admit *managedFieldsValidatingAdmissionController) Handles(operation admission.Operation) bool { return admit.wrap.Handles(operation) } // Admit calls the wrapped admission.Interface if applicable and resets the managedFields to their state before admission if they // got modified in an invalid way
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.7K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
return matched, fmt.Sprintf("%s=%s", me.Key, v) } } } return matched, "" } func extractRevision(wh *admitv1.MutatingWebhookConfiguration) string { return wh.GetLabels()[label.IoIstioRev.Name] } func isIstioWebhook(wh *admitv1.MutatingWebhookConfiguration) bool { for _, w := range wh.Webhooks { if strings.HasSuffix(w.Name, "istio.io") { return true } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/tag/revision.go
} } } 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 { return []admitv1.MutatingWebhookConfiguration{}, err } return hooks.Items, nil } func renderWithDefault(s, def string) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 28 13:16:05 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/chain_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 5.4K bytes - Viewed (0)