def __init__( self, replicas: int = None, selector: "metav1.LabelSelector" = None, template: "k8sv1.PodTemplateSpec" = None, volume_claim_templates: List["k8sv1.PersistentVolumeClaim"] = None, service_name: str = "", pod_management_policy: PodManagementPolicyType = PodManagementPolicyType["OrderedReady"], update_strategy: "StatefulSetUpdateStrategy" = None, revision_history_limit: int = None, ): super().__init__() self.__replicas = replicas if replicas is not None else 1 self.__selector = selector self.__template = template if template is not None else k8sv1.PodTemplateSpec( ) self.__volume_claim_templates = (volume_claim_templates if volume_claim_templates is not None else []) self.__service_name = service_name self.__pod_management_policy = pod_management_policy self.__update_strategy = (update_strategy if update_strategy is not None else StatefulSetUpdateStrategy()) self.__revision_history_limit = (revision_history_limit if revision_history_limit is not None else 10)
def __init__( self, replicas: int = None, selector: "metav1.LabelSelector" = None, template: "k8sv1.PodTemplateSpec" = None, strategy: "DeploymentStrategy" = None, min_ready_seconds: int = None, revision_history_limit: int = None, paused: bool = None, progress_deadline_seconds: int = None, ): super().__init__() self.__replicas = replicas if replicas is not None else 1 self.__selector = selector self.__template = template if template is not None else k8sv1.PodTemplateSpec( ) self.__strategy = strategy if strategy is not None else DeploymentStrategy( ) self.__min_ready_seconds = min_ready_seconds self.__revision_history_limit = (revision_history_limit if revision_history_limit is not None else 10) self.__paused = paused self.__progress_deadline_seconds = (progress_deadline_seconds if progress_deadline_seconds is not None else 600)
def __init__( self, template: "k8sv1.PodTemplateSpec" = None, service_account_names: List[str] = None, ): super().__init__() self.__template = template if template is not None else k8sv1.PodTemplateSpec( ) self.__service_account_names = ( service_account_names if service_account_names is not None else [])
def __init__( self, template: "k8sv1.PodTemplateSpec" = None, user: str = None, groups: List[str] = None, ): super().__init__() self.__template = template if template is not None else k8sv1.PodTemplateSpec( ) self.__user = user self.__groups = groups if groups is not None else []
def __init__( self, replicas: int = None, min_ready_seconds: int = None, selector: "metav1.LabelSelector" = None, template: "k8sv1.PodTemplateSpec" = None, ): super().__init__() self.__replicas = replicas if replicas is not None else 1 self.__min_ready_seconds = min_ready_seconds self.__selector = selector self.__template = template if template is not None else k8sv1.PodTemplateSpec( )
def __init__( self, selector: "metav1.LabelSelector" = None, template: "k8sv1.PodTemplateSpec" = None, update_strategy: "DaemonSetUpdateStrategy" = None, min_ready_seconds: int = None, revision_history_limit: int = None, ): super().__init__() self.__selector = selector self.__template = template if template is not None else k8sv1.PodTemplateSpec( ) self.__update_strategy = (update_strategy if update_strategy is not None else DaemonSetUpdateStrategy()) self.__min_ready_seconds = min_ready_seconds self.__revision_history_limit = (revision_history_limit if revision_history_limit is not None else 10)
def __init__( self, parallelism: int = None, completions: int = None, active_deadline_seconds: int = None, backoff_limit: int = None, selector: "metav1.LabelSelector" = None, manual_selector: bool = None, template: "k8sv1.PodTemplateSpec" = None, ttl_seconds_after_finished: int = None, ): super().__init__() self.__parallelism = parallelism if parallelism is not None else 1 self.__completions = completions if completions is not None else 1 self.__active_deadline_seconds = active_deadline_seconds self.__backoff_limit = backoff_limit if backoff_limit is not None else 6 self.__selector = selector self.__manual_selector = manual_selector self.__template = template if template is not None else k8sv1.PodTemplateSpec() self.__ttl_seconds_after_finished = ttl_seconds_after_finished
def __init__(self, template: "k8sv1.PodTemplateSpec" = None): super().__init__() self.__template = template if template is not None else k8sv1.PodTemplateSpec( )