Class LinuxContainerInstanceSecurityContext.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • fsGroup

        public LinuxContainerInstanceSecurityContext.Builder fsGroup​(Integer fsGroup)
        A special supplemental group that applies to all containers in the container instance.

        Some volume types allow the container instance to change ownership of the volume. The owning GID will be the fsGroup, the setgid bit will be set (new files will be owned by the fsGroup), and the permission bits are OR’d with rw-rw—-. If unset, the container instance will not modify the ownership and permissions of volumes.

        Parameters:
        fsGroup - the value to set
        Returns:
        this builder
      • fsGroupChangePolicy

        public LinuxContainerInstanceSecurityContext.Builder fsGroupChangePolicy​(ContainerFsGroupChangePolicyType fsGroupChangePolicy)
        Defines behavior of changing ownership and permission of the volume before being exposed inside the containers.

        This only applies to volumes which support fsGroup ownership and permissions, and will have no effect on ephemeral volumes. ON_ROOT_MISMATCH only changes permissions and ownership if the permission and ownership of the root directory does not match the expected permissions and ownership of the volume. This can improve container instance start times. ALWAYS changes permission and ownership of the volume when it is mounted. If unset, ALWAYS is used.

        Parameters:
        fsGroupChangePolicy - the value to set
        Returns:
        this builder