Class BaselinePodSecurityProvider

java.lang.Object
io.strimzi.plugin.security.profiles.impl.BaselinePodSecurityProvider
All Implemented Interfaces:
PodSecurityProvider
Direct Known Subclasses:
RestrictedPodSecurityProvider

public class BaselinePodSecurityProvider extends Object implements PodSecurityProvider
The default implementation of the PodSecurityProvider. It implements the Baseline Kubernetes security profile.
  • Constructor Details

    • BaselinePodSecurityProvider

      public BaselinePodSecurityProvider()
  • Method Details

    • configure

      public void configure(PlatformFeatures platformFeatures)
      Description copied from interface: PodSecurityProvider
      A method called first to initiate the provider. It is always called before any of the other methods for providing security context are called. This method can be used to preconfigure the provider based on the platform it is running on. But it can also configure the provider based on information from additional sources (for example environment variables).
      Specified by:
      configure in interface PodSecurityProvider
      Parameters:
      platformFeatures - Describes the platform we are running on and the features it provides
    • zooKeeperPodSecurityContext

      public io.fabric8.kubernetes.api.model.PodSecurityContext zooKeeperPodSecurityContext(PodSecurityProviderContext context)
      Description copied from interface: PodSecurityProvider
      Provides the Pod security context for the ZooKeeper pods. The default implementation just returns the security context configured by the user in the template section or null (no Pod security context).
      Specified by:
      zooKeeperPodSecurityContext in interface PodSecurityProvider
      Parameters:
      context - Provides the context which can be used to generate the Pod security context
      Returns:
      Pod security context which will be set for the ZooKeeper pods
    • kafkaPodSecurityContext

      public io.fabric8.kubernetes.api.model.PodSecurityContext kafkaPodSecurityContext(PodSecurityProviderContext context)
      Description copied from interface: PodSecurityProvider
      Provides the Pod security context for the Kafka pods. The default implementation just returns the security context configured by the user in the template section or null (no Pod security context).
      Specified by:
      kafkaPodSecurityContext in interface PodSecurityProvider
      Parameters:
      context - Provides the context which can be used to generate the Pod security context
      Returns:
      Pod security context which will be set for the Kafka pods