Comments (7)
I see. We would need to add support for these resources.
As a workaround, you can try generating POJOs for OVN CRDs using Fabric8 Java Generator
from kubernetes-client.
@lherman-vd : It would be nice if you could provide some early feedback now that the functionality has been merged. I've created a demo project showcasing OVN networking extension.
After the nightly SNAPSHOT build, you should be able to access k8s.ovn.org/v1
resources by adding this dependency . You would need to configure your project to use SNAPSHOTs.
User would need to add this dependency in order to use this extension:
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>open-virtual-networking-client</artifactId>
<version>${fabric8.version}</version>
</dependency>
Here is an example of sample usage:
try (OpenVirtualNetworkingClient ovnClient = new KubernetesClientBuilder().build().adapt(OpenVirtualNetworkingClient.class)) {
EgressFirewall egressFirewall = new EgressFirewallBuilder()
.withNewMetadata()
.withName("default")
// ...
.build();
egressFirewall = ovnClient.v1().egressFirewalls().resource(egressFirewall).serverSideApply();
egressFirewall = ovnClient.v1().egressFirewalls().resource(egressFirewall).get();
System.out.println(egressFirewall.getMetadata().getName() + " Created");
}
from kubernetes-client.
Apologies, I was on holiday the past few weeks.
Thank you for working on it 🎉 , I'll test the integration in our project asap.
from kubernetes-client.
Is this OVN API enabled in OpenShift by default? Do I have to install some operator to add these resources? I'm not able to access these on OpenShift 4.13.12 (CRC).
from kubernetes-client.
Our OpenShift rep recommended us to directly enable the OVN api when we starting building a new cluster, I think the migration process for existing clusters is detailed here: https://docs.openshift.com/container-platform/4.12/networking/ovn_kubernetes_network_provider/migrate-from-openshift-sdn.html
from kubernetes-client.
Is this OVN API enabled in OpenShift by default? Do I have to install some operator to add these resources? I'm not able to access these on OpenShift 4.13.12 (CRC).
Could you please verify if by using the cluster bot to start an OVN variant cluster these types are enabled?
from kubernetes-client.
Umm, yes I can see OVN types when I create a cluster using cluster bot:
adminpolicybasedexternalroutes apbexternalroute k8s.ovn.org/v1 false AdminPolicyBasedExternalRoute
egressfirewalls k8s.ovn.org/v1 true EgressFirewall
egressips eip k8s.ovn.org/v1 false EgressIP
egressqoses k8s.ovn.org/v1 true EgressQoS
egressservices k8s.ovn.org/v1 true EgressService
from kubernetes-client.
Related Issues (20)
- Support javaType and existingJavaType extensions in java-generator HOT 4
- CRDGenerator allows setting multiple custom resource versions as stored but should not
- kubernetes-log4j doesn't generate Log4j2Plugins.dat HOT 1
- CRDGenerator: Replace assertions with ApprovalTests
- Fabric8 Kubernetes client is not working with Teleport HOT 3
- java-generator doesn't handle all integer formats HOT 2
- NoSuchMethodError: 'void okhttp3.internal.Internal.initializeInstanceForTests()' HOT 3
- CRD-Generator: Overview about validation constraints / Kubernetes OpenAPI schema properties HOT 4
- Gradle plugin extension does not allow `filesSuffixes` to be set, and also returns the wrong value for `generatedAnnotations`. HOT 3
- CRD generation fails when compiled using java version 19 and above HOT 6
- Generate a CRD with {type: string, format: date-time} HOT 19
- CRDGenerator: Add support for exclusiveMinimum/exclusiveMaximum HOT 4
- CRDGenerator Development Doc(s) HOT 5
- Support generating java classes from CRD that implement the Editable interface. HOT 13
- OpenId token not refreshed if the config is in-memory HOT 10
- CRDGenerator: Add support for generic schema definition with @Schema annotation HOT 5
- Release Fabric8 Kubernetes Client 6.13.0
- Kube API Test dependency not resolvable HOT 12
- Allow generated classes to implement additional interfaces HOT 4
- Release Fabric8 Kubernetes Client 6.12.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-client.