Enum AdmissionRule.EnforcementMode (1.18.0)

publicenumAdmissionRule.EnforcementModeextendsEnum<AdmissionRule.EnforcementMode>implementsProtocolMessageEnum

Defines the possible actions when a pod creation is denied by an admission rule.

Protobuf enum google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode

Implements

ProtocolMessageEnum

Static Fields

Name Description
DRYRUN_AUDIT_LOG_ONLY

Dryrun mode: Audit logging only. This will allow the pod creation as if the admission request had specified break-glass.

DRYRUN_AUDIT_LOG_ONLY = 2;

DRYRUN_AUDIT_LOG_ONLY_VALUE

Dryrun mode: Audit logging only. This will allow the pod creation as if the admission request had specified break-glass.

DRYRUN_AUDIT_LOG_ONLY = 2;

ENFORCED_BLOCK_AND_AUDIT_LOG

Enforce the admission rule by blocking the pod creation.

ENFORCED_BLOCK_AND_AUDIT_LOG = 1;

ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE

Enforce the admission rule by blocking the pod creation.

ENFORCED_BLOCK_AND_AUDIT_LOG = 1;

ENFORCEMENT_MODE_UNSPECIFIED

Do not use.

ENFORCEMENT_MODE_UNSPECIFIED = 0;

ENFORCEMENT_MODE_UNSPECIFIED_VALUE

Do not use.

ENFORCEMENT_MODE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.