Class KubePriorityClassProps.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • globalDefault

        @Stability(Stable)
        public KubePriorityClassProps.Builder globalDefault​(Boolean globalDefault)
        Parameters:
        globalDefault - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as globalDefault. However, if more than one PriorityClasses exists with their globalDefault field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
        Returns:
        this
      • preemptionPolicy

        @Stability(Stable)
        public KubePriorityClassProps.Builder preemptionPolicy​(String preemptionPolicy)
        Parameters:
        preemptionPolicy - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
        Returns:
        this