Skip to content

The latest version of istio client does not support v1 #6971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HuangGuanCaoFu opened this issue Mar 24, 2025 · 7 comments · Fixed by #6992
Closed

The latest version of istio client does not support v1 #6971

HuangGuanCaoFu opened this issue Mar 24, 2025 · 7 comments · Fixed by #6992
Assignees
Labels
component/extensions Deals with the extensions enhancement
Milestone

Comments

@HuangGuanCaoFu
Copy link

Check the model supports v1 in the 7.0.1 version, but the istio client does not support v1!When will it be supported, or how to create a java version of istio cilent by myself?

@manusa
Copy link
Member

manusa commented Mar 24, 2025

Could you please elaborate on your question?

There's v1 classes for all model types (check the io.fabric8:istio-model artifact).

I assume that your problem is with the IstioClient not exposing v1 API groups for DSL Access?

This can be fixed.

But again, note that this is not necessary at all if you're using the models directly. i.e. the Kubernetes Client does support Istio v1.

@manusa manusa added component/extensions Deals with the extensions enhancement labels Mar 24, 2025
@manusa manusa moved this to Planned in Eclipse JKube Mar 24, 2025
@andreaTP
Copy link
Member

@HuangGuanCaoFu have you attempted using the java-generator?
https://github.com/fabric8io/kubernetes-client/blob/main/doc/java-generation-from-CRD.md
on the specific CRDs installed in your cluster?

@HuangGuanCaoFu
Copy link
Author

@HuangGuanCaoFu have you attempted using the java-generator? https://github.com/fabric8io/kubernetes-client/blob/main/doc/java-generation-from-CRD.md on the specific CRDs installed in your cluster?

My English is not good, could you briefly introduce how to generate ?

@HuangGuanCaoFu
Copy link
Author

Could you please elaborate on your question?

There's v1 classes for all model types (check the io.fabric8:istio-model artifact).

I assume that your problem is with the IstioClient not exposing v1 API groups for DSL Access?

This can be fixed.

But again, note that this is not necessary at all if you're using the models directly. i.e. the Kubernetes Client does support Istio v1.

how to fixed ? I want to use istioClient to invoke DSL, by the way, can you give some demo using Kubernetes Client to invoke Istio V1?

@HuangGuanCaoFu
Copy link
Author

@HuangGuanCaoFu have you attempted using the java-generator? https://github.com/fabric8io/kubernetes-client/blob/main/doc/java-generation-from-CRD.md on the specific CRDs installed in your cluster?

@andreaTP how to generate ?

@HuangGuanCaoFu
Copy link
Author

Could you please elaborate on your question?

There's v1 classes for all model types (check the io.fabric8:istio-model artifact).

I assume that your problem is with the IstioClient not exposing v1 API groups for DSL Access?

This can be fixed.

But again, note that this is not necessary at all if you're using the models directly. i.e. the Kubernetes Client does support Istio v1.

@manusa can you give some kubernetes Client invoke istio v1 demo?

@manusa manusa moved this from Planned to In Progress in Eclipse JKube Apr 7, 2025
@manusa manusa self-assigned this Apr 7, 2025
@manusa
Copy link
Member

manusa commented Apr 7, 2025

@manusa can you give some kubernetes Client invoke istio v1 demo?

It depends on whatever resource you want to deal with.

For example, for Gatewats:

try (var client = new KubernetesClientBuilder().build()) {
  // List
  client.resources(io.fabric8.istio.api.networking.v1.Gateway.class).list();
  // Get
  client.resources(Gateway.class).inNamespace($namespace).withName($name).get();
  // Delete
  client.resources(Gateway.class).inNamespace($namespace).withName($name).delete();
  // Create
  client.resource(new io.fabric8.istio.api.networking.v1.GatewayBuilder()/*...*/.build()).create()
}

In any case, I just created #6992 to add the DSL entry points too.

@manusa manusa added this to the 7.2.0 milestone Apr 7, 2025 — with automated-tasks
@manusa manusa moved this from In Progress to Review in Eclipse JKube Apr 7, 2025
@github-project-automation github-project-automation bot moved this from Review to Done in Eclipse JKube Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/extensions Deals with the extensions enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants