- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 72 for GetSubresource (0.22 sec)
-
plugin/pkg/admission/certificates/subjectrestriction/admission.go
// attribute is not set to `system:masters`. func (p *Plugin) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error { if a.GetResource().GroupResource() != csrGroupResource || a.GetSubresource() != "" { return nil } csr, ok := a.GetObject().(*certificatesapi.CertificateSigningRequest) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 05 22:45:34 UTC 2020 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go
if !attributes.IsResourceRequest() { return fmt.Sprintf("User %q cannot %s path %q", username, attributes.GetVerb(), attributes.GetPath()) } resource := attributes.GetResource() if subresource := attributes.GetSubresource(); len(subresource) > 0 { resource = resource + "/" + subresource } if ns := attributes.GetNamespace(); len(ns) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 16:18:47 UTC 2018 - 2.8K bytes - Viewed (0) -
plugin/pkg/admission/antiaffinity/admission.go
func (p *Plugin) Validate(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) (err error) { // Ignore all calls to subresources or resources other than pods. if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("pods") { return nil } pod, ok := attributes.GetObject().(*api.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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go
gvk := invocation.Kind gvr := invocation.Resource subresource := invocation.Subresource requestGVK := attr.GetKind() requestGVR := attr.GetResource() requestSubResource := attr.GetSubresource() aUserInfo := attr.GetUserInfo() userInfo := authenticationv1.UserInfo{ Extra: make(map[string]authenticationv1.ExtraValue), Groups: aUserInfo.GetGroups(), UID: aUserInfo.GetUID(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 9.5K bytes - Viewed (0) -
plugin/pkg/admission/certificates/approval/admission.go
// Ignore all calls to anything other than 'certificatesigningrequests/approval'. // Ignore all operations other than UPDATE. if a.GetSubresource() != "approval" || a.GetResource().GroupResource() != csrGroupResource { return nil } // We check permissions against the *old* version of the resource, in case
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/interfaces.go
GetNamespace() string // GetResource is the name of the resource being requested. This is not the kind. For example: pods GetResource() schema.GroupVersionResource // GetSubresource is the name of the subresource being requested. This is a different resource, scoped to the parent resource, but it may have a different kind.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 28 14:03:18 UTC 2021 - 8K bytes - Viewed (0) -
plugin/pkg/admission/network/denyserviceexternalips/admission.go
if attr.GetResource().GroupResource() != core.Resource("services") { return nil } if len(attr.GetSubresource()) != 0 { return nil } // if we can't convert then we don't handle this object so just return newSvc, ok := attr.GetObject().(*core.Service) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 29 18:00:11 UTC 2020 - 3.2K bytes - Viewed (0) -
plugin/pkg/admission/nodetaint/admission.go
func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { // Our job is just to taint nodes. if a.GetResource().GroupResource() != nodeResource || a.GetSubresource() != "" { return nil } node, ok := a.GetObject().(*api.Node) if !ok { return admission.NewForbidden(a, fmt.Errorf("unexpected type %T", a.GetObject())) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 2.5K bytes - Viewed (0) -
plugin/pkg/admission/storage/storageclass/setdefault/admission.go
if attr.GetResource().GroupResource() != api.Resource("persistentvolumeclaims") { return nil } if len(attr.GetSubresource()) != 0 { return nil } pvc, ok := attr.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 02 18:52:04 UTC 2022 - 3.4K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission.go
// // if the request is in the whitelist, we skip mutation checks for this resource. if a.isWhiteListed(attributes.GetResource().GroupResource(), attributes.GetSubresource()) { return nil } // if we aren't changing owner references, then the edit is always allowed if !isChangingOwnerReference(attributes.GetObject(), attributes.GetOldObject()) { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 10.3K bytes - Viewed (0)