Class NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl

    • Constructor Detail

      • NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl

        public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl​(okhttp3.OkHttpClient client,
                                                                                Config config,
                                                                                String namespace,
                                                                                String explicitNamespace,
                                                                                Boolean fromServer,
                                                                                Boolean deletingExisting,
                                                                                List<io.fabric8.kubernetes.api.builder.Visitor> visitors,
                                                                                InputStream is,
                                                                                Boolean cascading,
                                                                                long watchRetryInitialBackoffMillis,
                                                                                double watchRetryBackoffMultiplier,
                                                                                boolean dryRun)
      • NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl

        public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl​(okhttp3.OkHttpClient client,
                                                                                Config config,
                                                                                String namespace,
                                                                                String explicitNamespace,
                                                                                Boolean fromServer,
                                                                                Boolean deletingExisting,
                                                                                List<io.fabric8.kubernetes.api.builder.Visitor> visitors,
                                                                                Object item,
                                                                                long gracePeriodSeconds,
                                                                                io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
                                                                                Boolean cascading,
                                                                                long watchRetryInitialBackoffMillis,
                                                                                double watchRetryBackoffMultiplier,
                                                                                boolean dryRun)
    • Method Detail

      • apply

        public io.fabric8.kubernetes.api.model.HasMetadata apply()
        Specified by:
        apply in interface Applicable<io.fabric8.kubernetes.api.model.HasMetadata>
      • createOrReplace

        public io.fabric8.kubernetes.api.model.HasMetadata createOrReplace()
        Specified by:
        createOrReplace in interface Applicable<io.fabric8.kubernetes.api.model.HasMetadata>
      • createOrReplaceAnd

        public Waitable<io.fabric8.kubernetes.api.model.HasMetadata,​io.fabric8.kubernetes.api.model.HasMetadata> createOrReplaceAnd()
        Specified by:
        createOrReplaceAnd in interface ApplicableAnd<Waitable<io.fabric8.kubernetes.api.model.HasMetadata,​io.fabric8.kubernetes.api.model.HasMetadata>>
      • delete

        public Boolean delete()
        Description copied from interface: Deletable
        Deletes resource and all managed resources, returns null or false if not found.
        Specified by:
        delete in interface Deletable
        Returns:
        value indicating object was deleted or not
      • get

        public io.fabric8.kubernetes.api.model.HasMetadata get()
        Specified by:
        get in interface Gettable<io.fabric8.kubernetes.api.model.HasMetadata>
        Returns:
        the item or null if the item doesn't exist.
      • withGracePeriod

        public CascadingDeletable<io.fabric8.kubernetes.api.model.HasMetadata> withGracePeriod​(long gracePeriodSeconds)
        Description copied from interface: GracePeriodConfigurable
        The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
        Specified by:
        withGracePeriod in interface GracePeriodConfigurable<CascadingDeletable<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        gracePeriodSeconds - grace period integer value in seconds
        Returns:
        the object for which grace period is configured
      • withPropagationPolicy

        public CascadingDeletable<io.fabric8.kubernetes.api.model.HasMetadata> withPropagationPolicy​(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
        Description copied from interface: PropagationPolicyConfigurable
        Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both.

        The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.

        Acceptable values are:
        'Orphan' - orphan the dependents;
        'Background' - allow the garbage collector to delete the dependents in the background;
        'Foreground' - a cascading policy that deletes all dependents in the foreground.

        Specified by:
        withPropagationPolicy in interface PropagationPolicyConfigurable<CascadingDeletable<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        propagationPolicy - propagation policy in form of string DeletionPropagation
        Returns:
        resource
      • cascading

        public Deletable cascading​(boolean cascading)
        Description copied from interface: Cascading
        deletes dependent resources. Sets `orphanDependents` field to `false` when set `true`
        Specified by:
        cascading in interface Cascading<Deletable>
        Parameters:
        cascading - whether dependents should be orphaned or not.
        Returns:
        resource
      • withWaitRetryBackoff

        public Waitable<io.fabric8.kubernetes.api.model.HasMetadata,​io.fabric8.kubernetes.api.model.HasMetadata> withWaitRetryBackoff​(long initialBackoff,
                                                                                                                                            TimeUnit backoffUnit,
                                                                                                                                            double backoffMultiplier)
        Description copied from interface: Waitable
        Configure the backoff strategy to use when waiting for conditions, in case the watcher encounters a retryable error.
        Specified by:
        withWaitRetryBackoff in interface Waitable<io.fabric8.kubernetes.api.model.HasMetadata,​io.fabric8.kubernetes.api.model.HasMetadata>
        Parameters:
        initialBackoff - the value for the initial backoff on first error
        backoffUnit - the TimeUnit for the initial backoff value
        backoffMultiplier - what to multiply the backoff by on each subsequent error
        Returns:
        the waitable
      • watch

        public Watch watch​(Watcher<io.fabric8.kubernetes.api.model.HasMetadata> watcher)
        Description copied from interface: Watchable
        Watch returns Watch interface that watches requested resource
        Specified by:
        watch in interface Watchable<Watcher<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        watcher - Watcher interface of Kubernetes resource
        Returns:
        watch interface Watch
      • watch

        public Watch watch​(String resourceVersion,
                           Watcher<io.fabric8.kubernetes.api.model.HasMetadata> watcher)
        Description copied from interface: Watchable
        Watch returns Watch interface that watches requested resource from specified resourceVersion
        Specified by:
        watch in interface Watchable<Watcher<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        resourceVersion - resource version from where to start watch
        watcher - Watcher interface of Kubernetes resource
        Returns:
        watch interface Watch
      • watch

        public Watch watch​(io.fabric8.kubernetes.api.model.ListOptions options,
                           Watcher<io.fabric8.kubernetes.api.model.HasMetadata> watcher)
        Description copied from interface: Watchable
        Watch returns Watch interface that watches requested resource
        Specified by:
        watch in interface Watchable<Watcher<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        options - options available for watch operation
        watcher - Watcher interface of Kubernetes resource
        Returns:
        watch interface Watch
      • getReadiness

        protected Readiness getReadiness()
      • dryRun

        public VisitFromServerWritable<io.fabric8.kubernetes.api.model.HasMetadata> dryRun​(boolean isDryRun)
        Description copied from interface: DryRunable
        Indicates whether modifications should not be persisted or not. If enabled, All dry run stages will be processed. the request is still processed as typical request: the fields are defaulted, the object is validated, it goes through the validation admission chain, and through the mutating admission chain, and then the final object is returned to the user as it normally would, without being persisted.
        Specified by:
        dryRun in interface DryRunable<VisitFromServerWritable<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        isDryRun - whether dry run is enabled or disabled
        Returns:
        write operations which are applicable for dry run