- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 72 for GetSubresource (0.3 sec)
-
plugin/pkg/admission/extendedresourcetoleration/admission.go
func (p *plugin) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) error { // Ignore all calls to subresources or resources other than pods. if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != core.Resource("pods") { return nil } pod, ok := attributes.GetObject().(*core.Pod) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 3.1K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission_test.go
username := a.GetUser().GetName() if username == "non-deleter" { if a.GetVerb() == "delete" { return authorizer.DecisionNoOpinion, "", nil } if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" { return authorizer.DecisionNoOpinion, "", nil } if a.GetAPIGroup() == "*" && a.GetResource() == "*" { // this user does not have full rights return authorizer.DecisionNoOpinion, "", nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
plugin/pkg/admission/defaulttolerationseconds/admission.go
if attributes.GetResource().GroupResource() != api.Resource("pods") { return nil } if len(attributes.GetSubresource()) > 0 { // only run the checks below on pods proper and not subresources return nil } pod, ok := attributes.GetObject().(*api.Pod) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 4K bytes - Viewed (0) -
plugin/pkg/admission/priority/admission.go
func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { operation := a.GetOperation() // Ignore all calls to subresources if len(a.GetSubresource()) != 0 { return nil } switch a.GetResource().GroupResource() { case podResource: if operation == admission.Create || operation == admission.Update { return p.admitPod(a) } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 08 10:11:23 UTC 2022 - 9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go
if len(parts) == 2 { return parts[0], parts[1] } return parts[0], "" } func (r *Matcher) resource() bool { opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource() for _, res := range r.Rule.Resources { res, sub := splitResource(res) resMatch := res == "*" || res == opRes subMatch := sub == "*" || sub == opSub if resMatch && subMatch { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:38:55 UTC 2022 - 3.7K bytes - Viewed (0) -
plugin/pkg/admission/certificates/subjectrestriction/admission_test.go
admission.Attributes // nil panic if any other methods called } func (t *testAttributes) GetResource() schema.GroupVersionResource { return t.resource.WithVersion("ignored") } func (t *testAttributes) GetSubresource() string { return t.subresource } func (t *testAttributes) GetObject() runtime.Object { return t.obj } func (t *testAttributes) GetName() string { return t.name }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 27 15:50:14 UTC 2020 - 5K bytes - Viewed (0) -
plugin/pkg/admission/namespace/exists/admission_test.go
if err == nil { actions := "" for _, action := range mockClient.Actions() { actions = actions + action.GetVerb() + ":" + action.GetResource().Resource + ":" + action.GetSubresource() + ", " } t.Errorf("expected error returned from admission handler: %v", actions) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 4.4K bytes - Viewed (0) -
plugin/pkg/admission/storage/persistentvolume/resize/admission.go
if a.GetResource().GroupResource() != api.Resource("persistentvolumeclaims") { return nil } if len(a.GetSubresource()) != 0 { return nil } pvc, ok := a.GetObject().(*api.PersistentVolumeClaim) // if we can't convert then we don't handle this object so just return if !ok { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 3.9K bytes - Viewed (0) -
pkg/kubelet/server/auth.go
attrs.Subresource = "checkpoint" } klog.V(5).InfoS("Node request attributes", "user", attrs.GetUser().GetName(), "verb", attrs.GetVerb(), "resource", attrs.GetResource(), "subresource", attrs.GetSubresource()) return attrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 18:09:38 UTC 2024 - 4K bytes - Viewed (0) -
plugin/pkg/admission/certificates/signing/admission.go
// Ignore all calls to anything other than 'certificatesigningrequests/status'. // Ignore all operations other than UPDATE. if a.GetSubresource() != "status" || a.GetResource().GroupResource() != csrGroupResource { return nil } oldCSR, ok := a.GetOldObject().(*api.CertificateSigningRequest) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 28 16:20:40 UTC 2020 - 3.5K bytes - Viewed (0)