io.fabric8.kubernetes.client.impl.AppsAPIGroupClient 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.impl;
import io.fabric8.kubernetes.api.model.apps.ControllerRevision;
import io.fabric8.kubernetes.api.model.apps.ControllerRevisionList;
import io.fabric8.kubernetes.api.model.apps.DaemonSet;
import io.fabric8.kubernetes.api.model.apps.DaemonSetList;
import io.fabric8.kubernetes.api.model.apps.Deployment;
import io.fabric8.kubernetes.api.model.apps.DeploymentList;
import io.fabric8.kubernetes.api.model.apps.ReplicaSet;
import io.fabric8.kubernetes.api.model.apps.ReplicaSetList;
import io.fabric8.kubernetes.api.model.apps.StatefulSet;
import io.fabric8.kubernetes.api.model.apps.StatefulSetList;
import io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL;
import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.fabric8.kubernetes.client.dsl.RollableScalableResource;
import io.fabric8.kubernetes.client.dsl.internal.apps.v1.DeploymentOperationsImpl;
import io.fabric8.kubernetes.client.dsl.internal.apps.v1.ReplicaSetOperationsImpl;
import io.fabric8.kubernetes.client.dsl.internal.apps.v1.StatefulSetOperationsImpl;
import io.fabric8.kubernetes.client.extension.ClientAdapter;
public class AppsAPIGroupClient extends ClientAdapter implements AppsAPIGroupDSL {
@Override
public MixedOperation> daemonSets() {
return resources(DaemonSet.class, DaemonSetList.class);
}
@Override
public MixedOperation> deployments() {
return new DeploymentOperationsImpl(getClient());
}
@Override
public MixedOperation> replicaSets() {
return new ReplicaSetOperationsImpl(getClient());
}
@Override
public MixedOperation> statefulSets() {
return new StatefulSetOperationsImpl(getClient());
}
@Override
public MixedOperation> controllerRevisions() {
return resources(ControllerRevision.class, ControllerRevisionList.class);
}
@Override
public AppsAPIGroupClient newInstance() {
return new AppsAPIGroupClient();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy