
io.fabric8.kubernetes.client.dsl.ImageEditReplacePatchable 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 java.util.Map;
public interface ImageEditReplacePatchable extends EditReplacePatchable {
/**
* Update existing container image(s) of resources
*
* @param containerToImageMap Map with keys as container name and value as image
* @return updated resource
*/
T updateImage(Map containerToImageMap);
/**
* Update existing container image of single container resource
*
* @param image image to be updated
* @return updated resource
*/
T updateImage(String image);
/**
* Mark the provided resource as paused
*
* @return updated resource
*/
T pause();
/**
* Resume a paused resource. Paused resources will not be reconciled by a controller.
* By resuming a resource, we allow it to be reconciled again.
*
* @return updated resource
*/
T resume();
/**
* Restart a resource. Resource will be rollout restarted.
*
* @return updated resource
*/
T restart();
/**
* Rollback to previous rollout.
*
* @return updated resource
*/
T undo();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy