GoogleApi.BinaryAuthorization.V1.Model.AdmissionRule (google_api_binary_authorization v0.18.0)

View Source

An admission rule specifies either that all container images used in a pod creation request must be attested to by one or more attestors, that all pod creations will be allowed, or that all pod creations will be denied. Images matching an admission allowlist pattern are exempted from admission rules and will never block a pod creation.

Attributes

  • enforcementMode (type: String.t, default: nil) - Required. The action when a pod creation is denied by the admission rule.
  • evaluationMode (type: String.t, default: nil) - Required. How this admission rule will be evaluated.
  • requireAttestationsBy (type: list(String.t), default: nil) - Optional. The resource names of the attestors that must attest to a container image, in the format projects/*/attestors/*. Each attestor must exist before a policy can reference it. To add an attestor to a policy the principal issuing the policy change request must be able to read the attestor resource. Note: this field must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION, otherwise it must be empty.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.BinaryAuthorization.V1.Model.AdmissionRule{
  enforcementMode: String.t() | nil,
  evaluationMode: String.t() | nil,
  requireAttestationsBy: [String.t()] | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.