Interface V1Admission.AdmissionResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V1Admission.AdmissionResponse, V1Admission.AdmissionResponse.Builder
Enclosing class:
V1Admission

public static interface V1Admission.AdmissionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.
    boolean
    Allowed indicates whether or not the admission request was permitted.
    Deprecated.
    int
    AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.
    AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.
    AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.
    AuditAnnotations is an unstructured key value map set by remote admission controller (e.g.
    com.google.protobuf.ByteString
    The patch body.
    The type of Patch.
    com.google.protobuf.ByteString
    The type of Patch.
    Result contains extra details into why an admission request was denied.
    Result contains extra details into why an admission request was denied.
    UID is an identifier for the individual request/response.
    com.google.protobuf.ByteString
    UID is an identifier for the individual request/response.
    getWarnings(int index)
    warnings is a list of warning messages to return to the requesting API client.
    com.google.protobuf.ByteString
    getWarningsBytes(int index)
    warnings is a list of warning messages to return to the requesting API client.
    int
    warnings is a list of warning messages to return to the requesting API client.
    warnings is a list of warning messages to return to the requesting API client.
    boolean
    Allowed indicates whether or not the admission request was permitted.
    boolean
    The patch body.
    boolean
    The type of Patch.
    boolean
    Result contains extra details into why an admission request was denied.
    boolean
    UID is an identifier for the individual request/response.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasUid

      boolean hasUid()
       UID is an identifier for the individual request/response.
       This must be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
    • getUid

      String getUid()
       UID is an identifier for the individual request/response.
       This must be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
    • getUidBytes

      com.google.protobuf.ByteString getUidBytes()
       UID is an identifier for the individual request/response.
       This must be copied over from the corresponding AdmissionRequest.
       
      optional string uid = 1;
    • hasAllowed

      boolean hasAllowed()
       Allowed indicates whether or not the admission request was permitted.
       
      optional bool allowed = 2;
    • getAllowed

      boolean getAllowed()
       Allowed indicates whether or not the admission request was permitted.
       
      optional bool allowed = 2;
    • hasStatus

      boolean hasStatus()
       Result contains extra details into why an admission request was denied.
       This field IS NOT consulted in any way if "Allowed" is "true".
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
    • getStatus

      Meta.Status getStatus()
       Result contains extra details into why an admission request was denied.
       This field IS NOT consulted in any way if "Allowed" is "true".
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
    • getStatusOrBuilder

      Meta.StatusOrBuilder getStatusOrBuilder()
       Result contains extra details into why an admission request was denied.
       This field IS NOT consulted in any way if "Allowed" is "true".
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
    • hasPatch

      boolean hasPatch()
       The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
       +optional
       
      optional bytes patch = 4;
    • getPatch

      com.google.protobuf.ByteString getPatch()
       The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
       +optional
       
      optional bytes patch = 4;
    • hasPatchType

      boolean hasPatchType()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
    • getPatchType

      String getPatchType()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
    • getPatchTypeBytes

      com.google.protobuf.ByteString getPatchTypeBytes()
       The type of Patch. Currently we only allow "JSONPatch".
       +optional
       
      optional string patchType = 5;
    • getAuditAnnotationsCount

      int getAuditAnnotationsCount()
       AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
       MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
       admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
       the admission webhook to add additional context to the audit log for this request.
       +optional
       
      map<string, string> auditAnnotations = 6;
    • containsAuditAnnotations

      boolean containsAuditAnnotations(String key)
       AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
       MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
       admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
       the admission webhook to add additional context to the audit log for this request.
       +optional
       
      map<string, string> auditAnnotations = 6;
    • getAuditAnnotations

      @Deprecated Map<String,String> getAuditAnnotations()
      Deprecated.
    • getAuditAnnotationsMap

      Map<String,String> getAuditAnnotationsMap()
       AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
       MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
       admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
       the admission webhook to add additional context to the audit log for this request.
       +optional
       
      map<string, string> auditAnnotations = 6;
    • getAuditAnnotationsOrDefault

      String getAuditAnnotationsOrDefault(String key, String defaultValue)
       AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
       MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
       admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
       the admission webhook to add additional context to the audit log for this request.
       +optional
       
      map<string, string> auditAnnotations = 6;
    • getAuditAnnotationsOrThrow

      String getAuditAnnotationsOrThrow(String key)
       AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
       MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
       admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by
       the admission webhook to add additional context to the audit log for this request.
       +optional
       
      map<string, string> auditAnnotations = 6;
    • getWarningsList

      List<String> getWarningsList()
       warnings is a list of warning messages to return to the requesting API client.
       Warning messages describe a problem the client making the API request should correct or be aware of.
       Limit warnings to 120 characters if possible.
       Warnings over 256 characters and large numbers of warnings may be truncated.
       +optional
       
      repeated string warnings = 7;
    • getWarningsCount

      int getWarningsCount()
       warnings is a list of warning messages to return to the requesting API client.
       Warning messages describe a problem the client making the API request should correct or be aware of.
       Limit warnings to 120 characters if possible.
       Warnings over 256 characters and large numbers of warnings may be truncated.
       +optional
       
      repeated string warnings = 7;
    • getWarnings

      String getWarnings(int index)
       warnings is a list of warning messages to return to the requesting API client.
       Warning messages describe a problem the client making the API request should correct or be aware of.
       Limit warnings to 120 characters if possible.
       Warnings over 256 characters and large numbers of warnings may be truncated.
       +optional
       
      repeated string warnings = 7;
    • getWarningsBytes

      com.google.protobuf.ByteString getWarningsBytes(int index)
       warnings is a list of warning messages to return to the requesting API client.
       Warning messages describe a problem the client making the API request should correct or be aware of.
       Limit warnings to 120 characters if possible.
       Warnings over 256 characters and large numbers of warnings may be truncated.
       +optional
       
      repeated string warnings = 7;