io.fabric8.openshift.client.impl.OpenShiftMachineConfigurationAPIGroupClient 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.openshift.client.impl;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.fabric8.kubernetes.client.extension.ClientAdapter;
import io.fabric8.openshift.api.model.machineconfig.v1.ContainerRuntimeConfig;
import io.fabric8.openshift.api.model.machineconfig.v1.ContainerRuntimeConfigList;
import io.fabric8.openshift.api.model.machineconfig.v1.ControllerConfig;
import io.fabric8.openshift.api.model.machineconfig.v1.ControllerConfigList;
import io.fabric8.openshift.api.model.machineconfig.v1.KubeletConfig;
import io.fabric8.openshift.api.model.machineconfig.v1.KubeletConfigList;
import io.fabric8.openshift.api.model.machineconfig.v1.MachineConfig;
import io.fabric8.openshift.api.model.machineconfig.v1.MachineConfigList;
import io.fabric8.openshift.api.model.machineconfig.v1.MachineConfigPool;
import io.fabric8.openshift.api.model.machineconfig.v1.MachineConfigPoolList;
import io.fabric8.openshift.client.dsl.MachineConfigurationAPIGroupDSL;
public class OpenShiftMachineConfigurationAPIGroupClient extends ClientAdapter
implements MachineConfigurationAPIGroupDSL {
@Override
public NonNamespaceOperation> containerRuntimeConfigs() {
return resources(ContainerRuntimeConfig.class, ContainerRuntimeConfigList.class);
}
@Override
public NonNamespaceOperation> controllerConfigs() {
return resources(ControllerConfig.class, ControllerConfigList.class);
}
@Override
public NonNamespaceOperation> kubeletConfigs() {
return resources(KubeletConfig.class, KubeletConfigList.class);
}
@Override
public NonNamespaceOperation> machineConfigPools() {
return resources(MachineConfigPool.class, MachineConfigPoolList.class);
}
@Override
public NonNamespaceOperation> machineConfigs() {
return resources(MachineConfig.class, MachineConfigList.class);
}
@Override
public OpenShiftMachineConfigurationAPIGroupClient newInstance() {
return new OpenShiftMachineConfigurationAPIGroupClient();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy