Class GrpcPodConfig

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class GrpcPodConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<GrpcPodConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    GrpcPodConfig contains configuration specified for a catalog source
    See Also:
    Serialized Form
    • Constructor Detail

      • GrpcPodConfig

        public GrpcPodConfig()
        No args constructor for use in serialization
      • GrpcPodConfig

        public GrpcPodConfig​(io.fabric8.kubernetes.api.model.Affinity affinity,
                             ExtractContentConfig extractContent,
                             io.fabric8.kubernetes.api.model.Quantity memoryTarget,
                             Map<String,​String> nodeSelector,
                             String priorityClassName,
                             String securityContextConfig,
                             List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
    • Method Detail

      • getAffinity

        public io.fabric8.kubernetes.api.model.Affinity getAffinity()
        GrpcPodConfig contains configuration specified for a catalog source
      • setAffinity

        public void setAffinity​(io.fabric8.kubernetes.api.model.Affinity affinity)
        GrpcPodConfig contains configuration specified for a catalog source
      • getExtractContent

        public ExtractContentConfig getExtractContent()
        GrpcPodConfig contains configuration specified for a catalog source
      • setExtractContent

        public void setExtractContent​(ExtractContentConfig extractContent)
        GrpcPodConfig contains configuration specified for a catalog source
      • getMemoryTarget

        public io.fabric8.kubernetes.api.model.Quantity getMemoryTarget()
        GrpcPodConfig contains configuration specified for a catalog source
      • setMemoryTarget

        public void setMemoryTarget​(io.fabric8.kubernetes.api.model.Quantity memoryTarget)
        GrpcPodConfig contains configuration specified for a catalog source
      • getNodeSelector

        public Map<String,​String> getNodeSelector()
        NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node.
      • setNodeSelector

        public void setNodeSelector​(Map<String,​String> nodeSelector)
        NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node.
      • getPriorityClassName

        public String getPriorityClassName()
        If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.
      • setPriorityClassName

        public void setPriorityClassName​(String priorityClassName)
        If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.
      • getSecurityContextConfig

        public String getSecurityContextConfig()
        SecurityContextConfig can be one of `legacy` or `restricted`. The CatalogSource's pod is either injected with the right pod.spec.securityContext and pod.spec.container[*].securityContext values to allow the pod to run in Pod Security Admission (PSA) `restricted` mode, or doesn't set these values at all, in which case the pod can only be run in PSA `baseline` or `privileged` namespaces. If the SecurityContextConfig is unspecified, the mode will be determined by the namespace's PSA configuration. If the namespace is enforcing `restricted` mode, then the pod will be configured as if `restricted` was specified. Otherwise, it will be configured as if `legacy` was specified. Specifying a value other than `legacy` or `restricted` result in a validation error. When using older catalog images, which can not run in `restricted` mode, the SecurityContextConfig should be set to `legacy`.


        More information about PSA can be found here: https://kubernetes.io/docs/concepts/security/pod-security-admission/

      • setSecurityContextConfig

        public void setSecurityContextConfig​(String securityContextConfig)
        SecurityContextConfig can be one of `legacy` or `restricted`. The CatalogSource's pod is either injected with the right pod.spec.securityContext and pod.spec.container[*].securityContext values to allow the pod to run in Pod Security Admission (PSA) `restricted` mode, or doesn't set these values at all, in which case the pod can only be run in PSA `baseline` or `privileged` namespaces. If the SecurityContextConfig is unspecified, the mode will be determined by the namespace's PSA configuration. If the namespace is enforcing `restricted` mode, then the pod will be configured as if `restricted` was specified. Otherwise, it will be configured as if `legacy` was specified. Specifying a value other than `legacy` or `restricted` result in a validation error. When using older catalog images, which can not run in `restricted` mode, the SecurityContextConfig should be set to `legacy`.


        More information about PSA can be found here: https://kubernetes.io/docs/concepts/security/pod-security-admission/

      • getTolerations

        public List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
        Tolerations are the catalog source's pod's tolerations.
      • setTolerations

        public void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
        Tolerations are the catalog source's pod's tolerations.
      • getAdditionalProperties

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

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

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