Class KustomizationPatchDefinition


  • public final class KustomizationPatchDefinition
    extends Object
    The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.
    • Constructor Detail

      • KustomizationPatchDefinition

        public KustomizationPatchDefinition()
    • Method Detail

      • path

        public String path()
        Get the path property: The path in the source reference to reconcile on the cluster.
        Returns:
        the path value.
      • withPath

        public KustomizationPatchDefinition withPath​(String path)
        Set the path property: The path in the source reference to reconcile on the cluster.
        Parameters:
        path - the path value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • dependsOn

        public List<String> dependsOn()
        Get the dependsOn property: Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation.
        Returns:
        the dependsOn value.
      • withDependsOn

        public KustomizationPatchDefinition withDependsOn​(List<String> dependsOn)
        Set the dependsOn property: Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation.
        Parameters:
        dependsOn - the dependsOn value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • timeoutInSeconds

        public Long timeoutInSeconds()
        Get the timeoutInSeconds property: The maximum time to attempt to reconcile the Kustomization on the cluster.
        Returns:
        the timeoutInSeconds value.
      • withTimeoutInSeconds

        public KustomizationPatchDefinition withTimeoutInSeconds​(Long timeoutInSeconds)
        Set the timeoutInSeconds property: The maximum time to attempt to reconcile the Kustomization on the cluster.
        Parameters:
        timeoutInSeconds - the timeoutInSeconds value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • syncIntervalInSeconds

        public Long syncIntervalInSeconds()
        Get the syncIntervalInSeconds property: The interval at which to re-reconcile the Kustomization on the cluster.
        Returns:
        the syncIntervalInSeconds value.
      • withSyncIntervalInSeconds

        public KustomizationPatchDefinition withSyncIntervalInSeconds​(Long syncIntervalInSeconds)
        Set the syncIntervalInSeconds property: The interval at which to re-reconcile the Kustomization on the cluster.
        Parameters:
        syncIntervalInSeconds - the syncIntervalInSeconds value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • retryIntervalInSeconds

        public Long retryIntervalInSeconds()
        Get the retryIntervalInSeconds property: The interval at which to re-reconcile the Kustomization on the cluster in the event of failure on reconciliation.
        Returns:
        the retryIntervalInSeconds value.
      • withRetryIntervalInSeconds

        public KustomizationPatchDefinition withRetryIntervalInSeconds​(Long retryIntervalInSeconds)
        Set the retryIntervalInSeconds property: The interval at which to re-reconcile the Kustomization on the cluster in the event of failure on reconciliation.
        Parameters:
        retryIntervalInSeconds - the retryIntervalInSeconds value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • prune

        public Boolean prune()
        Get the prune property: Enable/disable garbage collections of Kubernetes objects created by this Kustomization.
        Returns:
        the prune value.
      • withPrune

        public KustomizationPatchDefinition withPrune​(Boolean prune)
        Set the prune property: Enable/disable garbage collections of Kubernetes objects created by this Kustomization.
        Parameters:
        prune - the prune value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • force

        public Boolean force()
        Get the force property: Enable/disable re-creating Kubernetes resources on the cluster when patching fails due to an immutable field change.
        Returns:
        the force value.
      • withForce

        public KustomizationPatchDefinition withForce​(Boolean force)
        Set the force property: Enable/disable re-creating Kubernetes resources on the cluster when patching fails due to an immutable field change.
        Parameters:
        force - the force value to set.
        Returns:
        the KustomizationPatchDefinition object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.