
io.fabric8.kubernetes.client.dsl.StatusPatchable Maven / Gradle / Ivy
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.dsl;
import io.fabric8.kubernetes.client.dsl.base.PatchContext;
import io.fabric8.kubernetes.client.dsl.base.PatchType;
public interface StatusPatchable {
/**
* Does a PATCH request to the /status subresource ignoring changes to anything except the status stanza.
* This method has the same patching behavior as {@link Patchable#patch(PatchContext, Object)}, with {@link PatchType#JSON_MERGE} but against the status subresource.
*
Set the resourceVersion to null to prevent optimistic locking.
*
* @param item kubernetes object
* @return updated object
*/
T patchStatus(T item);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy