Class AuditConfig

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<AuditConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AuditConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AuditConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    AuditConfig holds configuration for the audit capabilities
    See Also:
    Serialized Form
    • Constructor Detail

      • AuditConfig

        public AuditConfig()
        No args constructor for use in serialization
    • Method Detail

      • getAuditFilePath

        public String getAuditFilePath()
        All requests coming to the apiserver will be logged to this file.
      • setAuditFilePath

        public void setAuditFilePath​(String auditFilePath)
        All requests coming to the apiserver will be logged to this file.
      • getEnabled

        public Boolean getEnabled()
        If this flag is set, audit log will be printed in the logs. The logs contains, method, user and a requested URL.
      • setEnabled

        public void setEnabled​(Boolean enabled)
        If this flag is set, audit log will be printed in the logs. The logs contains, method, user and a requested URL.
      • getLogFormat

        public String getLogFormat()
        Format of saved audits (legacy or json).
      • setLogFormat

        public void setLogFormat​(String logFormat)
        Format of saved audits (legacy or json).
      • getMaximumFileRetentionDays

        public Integer getMaximumFileRetentionDays()
        Maximum number of days to retain old log files based on the timestamp encoded in their filename.
      • setMaximumFileRetentionDays

        public void setMaximumFileRetentionDays​(Integer maximumFileRetentionDays)
        Maximum number of days to retain old log files based on the timestamp encoded in their filename.
      • getMaximumFileSizeMegabytes

        public Integer getMaximumFileSizeMegabytes()
        Maximum size in megabytes of the log file before it gets rotated. Defaults to 100MB.
      • setMaximumFileSizeMegabytes

        public void setMaximumFileSizeMegabytes​(Integer maximumFileSizeMegabytes)
        Maximum size in megabytes of the log file before it gets rotated. Defaults to 100MB.
      • getMaximumRetainedFiles

        public Integer getMaximumRetainedFiles()
        Maximum number of old log files to retain.
      • setMaximumRetainedFiles

        public void setMaximumRetainedFiles​(Integer maximumRetainedFiles)
        Maximum number of old log files to retain.
      • getPolicyConfiguration

        public Object getPolicyConfiguration()
        AuditConfig holds configuration for the audit capabilities
      • setPolicyConfiguration

        public void setPolicyConfiguration​(Object policyConfiguration)
        AuditConfig holds configuration for the audit capabilities
      • getPolicyFile

        public String getPolicyFile()
        policyFile is a path to the file that defines the audit policy configuration.
      • setPolicyFile

        public void setPolicyFile​(String policyFile)
        policyFile is a path to the file that defines the audit policy configuration.
      • getWebHookKubeConfig

        public String getWebHookKubeConfig()
        Path to a .kubeconfig formatted file that defines the audit webhook configuration.
      • setWebHookKubeConfig

        public void setWebHookKubeConfig​(String webHookKubeConfig)
        Path to a .kubeconfig formatted file that defines the audit webhook configuration.
      • getWebHookMode

        public String getWebHookMode()
        Strategy for sending audit events (block or batch).
      • setWebHookMode

        public void setWebHookMode​(String webHookMode)
        Strategy for sending audit events (block or batch).
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)