Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 385 for admission (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/metrics/metrics.go

    const (
    	metricsNamespace = "apiserver"
    	metricsSubsystem = "validating_admission_policy"
    )
    
    var (
    	// Metrics provides access to validation admission metrics.
    	Metrics = newValidationAdmissionMetrics()
    )
    
    // ValidatingAdmissionPolicyMetrics aggregates Prometheus metrics related to validation admission control.
    type ValidatingAdmissionPolicyMetrics struct {
    	policyCheck      *metrics.CounterVec
    	policyDefinition *metrics.CounterVec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    	"github.com/stretchr/testify/require"
    
    	admissionv1 "k8s.io/api/admission/v1"
    	v1 "k8s.io/api/admissionregistration/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/apiserver/pkg/admission/plugin/cel"
    	"k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // Allowed values are "Never" and "IfNeeded".
      //
      // Never: the webhook will not be called more than once in a single admission evaluation.
      //
      // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
      // if the object being admitted is modified by other admission plugins after the initial webhook call.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go

    		}
    	}
    	return false
    }
    
    // IsExemptAdmissionConfigurationResource determines if an admission.Attributes object is describing
    // the admission of a ValidatingWebhookConfiguration or a MutatingWebhookConfiguration or a ValidatingAdmissionPolicy or a ValidatingAdmissionPolicyBinding
    func IsExemptAdmissionConfigurationResource(attr admission.Attributes) bool {
    	gvk := attr.GetKind()
    	if gvk.Group == "admissionregistration.k8s.io" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:38:55 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. pkg/apis/admissionregistration/types.go

    	// Allowed values are "Never" and "IfNeeded".
    	//
    	// Never: the webhook will not be called more than once in a single admission evaluation.
    	//
    	// IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
    	// if the object being admitted is modified by other admission plugins after the initial webhook call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 52.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package initializer
    
    import (
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/client-go/dynamic"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/component-base/featuregate"
    )
    
    type pluginInitializer struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. pkg/testcerts/testcerts.go

    limitations under the License.
    */
    
    // This file was generated using openssl by the gencerts.sh script
    // and holds raw certificates for the webhook tests.
    
    package testcerts
    
    // CACert is a test cert for dynamic admission controller.
    var CACert = []byte(`-----BEGIN CERTIFICATE-----
    MIIC9DCCAdygAwIBAgIJAIFe3lWPaalKMA0GCSqGSIb3DQEBCwUAMA4xDDAKBgNV
    BAMMA19jYTAgFw0xNzEyMjIxODA0MjRaGA8yMjkxMTAwNzE4MDQyNFowDjEMMAoG
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:03 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/admissionregistration/v1/types_swagger_doc_generated.go

    "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent,...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 48.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors_test.go

    			f.Fuzz(orig)
    
    			// zero out any accessor type specific fields not included in the accessor
    			orig.ReinvocationPolicy = nil
    
    			uid := fmt.Sprintf("test.configuration.admission/%s/0", orig.Name)
    			accessor := NewMutatingWebhookAccessor(uid, "test.configuration.admission", orig)
    			if uid != accessor.GetUID() {
    				t.Errorf("expected GetUID to return %s, but got %s", accessor.GetUID(), uid)
    			}
    			m, ok := accessor.GetMutatingWebhook()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    	// rather than a namespace object.
    	if attr.GetResource().Resource == "namespaces" &&
    		len(attr.GetSubresource()) == 0 &&
    		(attr.GetOperation() == admission.Create || attr.GetOperation() == admission.Update) {
    		accessor, err := meta.Accessor(attr.GetObject())
    		if err != nil {
    			return nil, err
    		}
    		return accessor.GetLabels(), nil
    	}
    
    	namespaceName := attr.GetNamespace()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top