io.fabric8.istio.client.V1beta1APIGroupClient 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.istio.client;
import io.fabric8.istio.api.networking.v1beta1.DestinationRule;
import io.fabric8.istio.api.networking.v1beta1.DestinationRuleList;
import io.fabric8.istio.api.networking.v1beta1.Gateway;
import io.fabric8.istio.api.networking.v1beta1.GatewayList;
import io.fabric8.istio.api.networking.v1beta1.ProxyConfig;
import io.fabric8.istio.api.networking.v1beta1.ProxyConfigList;
import io.fabric8.istio.api.networking.v1beta1.ServiceEntry;
import io.fabric8.istio.api.networking.v1beta1.ServiceEntryList;
import io.fabric8.istio.api.networking.v1beta1.Sidecar;
import io.fabric8.istio.api.networking.v1beta1.SidecarList;
import io.fabric8.istio.api.networking.v1beta1.VirtualService;
import io.fabric8.istio.api.networking.v1beta1.VirtualServiceList;
import io.fabric8.istio.api.networking.v1beta1.WorkloadEntry;
import io.fabric8.istio.api.networking.v1beta1.WorkloadEntryList;
import io.fabric8.istio.api.networking.v1beta1.WorkloadGroup;
import io.fabric8.istio.api.networking.v1beta1.WorkloadGroupList;
import io.fabric8.istio.api.security.v1beta1.AuthorizationPolicy;
import io.fabric8.istio.api.security.v1beta1.AuthorizationPolicyList;
import io.fabric8.istio.api.security.v1beta1.PeerAuthentication;
import io.fabric8.istio.api.security.v1beta1.PeerAuthenticationList;
import io.fabric8.istio.api.security.v1beta1.RequestAuthentication;
import io.fabric8.istio.api.security.v1beta1.RequestAuthenticationList;
import io.fabric8.kubernetes.client.Client;
import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.fabric8.kubernetes.client.extension.ClientAdapter;
public class V1beta1APIGroupClient extends ClientAdapter implements V1beta1APIGroupDSL {
public V1beta1APIGroupClient() {
super();
}
V1beta1APIGroupClient(Client client) {
init(client);
}
@Override
public V1beta1APIGroupClient newInstance() {
return new V1beta1APIGroupClient();
}
// networking
@Override
public MixedOperation> destinationRules() {
return resources(DestinationRule.class, DestinationRuleList.class);
}
@Override
public MixedOperation> gateways() {
return resources(Gateway.class, GatewayList.class);
}
@Override
public MixedOperation> serviceEntries() {
return resources(ServiceEntry.class, ServiceEntryList.class);
}
@Override
public MixedOperation> sidecars() {
return resources(Sidecar.class, SidecarList.class);
}
@Override
public MixedOperation> virtualServices() {
return resources(VirtualService.class, VirtualServiceList.class);
}
@Override
public MixedOperation> workloadEntries() {
return resources(WorkloadEntry.class, WorkloadEntryList.class);
}
// security
@Override
public MixedOperation> peerAuthentications() {
return resources(PeerAuthentication.class, PeerAuthenticationList.class);
}
@Override
public MixedOperation> proxyConfigs() {
return resources(ProxyConfig.class, ProxyConfigList.class);
}
@Override
public MixedOperation> requestAuthentications() {
return resources(RequestAuthentication.class, RequestAuthenticationList.class);
}
@Override
public MixedOperation> authorizationPolicies() {
return resources(AuthorizationPolicy.class, AuthorizationPolicyList.class);
}
@Override
public MixedOperation> workloadGroups() {
return resources(WorkloadGroup.class, WorkloadGroupList.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy