java icon indicating copy to clipboard operation
java copied to clipboard

[Istio] managing `networking.istio.io` api group resources

Open agepalmist opened this issue 2 years ago • 4 comments
trafficstars

Hello team, is there a way to manage existing istio kubernetes resources using kubernetes-client/java. In particular, I need to get and analyze virtualservices. Thanks in advance. Regards, Denis.

agepalmist avatar Aug 08 '23 14:08 agepalmist

There is no built-in support for these custom resources. You effectively have two choices:

  • DynamicKubernetesClient - https://github.com/kubernetes-client/java/blob/master/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
  • Generate your own resources from the Istio OpenAPI specification (if they have one) - https://github.com/kubernetes-client/java/wiki/5.-Generate-Java-CRD-Model

If you do generate resources for Istio, we'd be happy to take a PR adding them along side the other user-supplied resources like Prometheus.

brendandburns avatar Aug 08 '23 15:08 brendandburns

@brendandburns, thanks for the response. The CRD's I found for Istio look incorrectly configured as I got the YAML conversion error while using "CRD Java Model Generate" workflow so it requires deep diving and might not be a fast solution for now. But yeah, if I find time I'll resolve this issue and share my result with you as a PR :) Have a good day! Regard, Denis.

agepalmist avatar Aug 09 '23 08:08 agepalmist

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 26 '24 02:01 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Feb 25 '24 02:02 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-triage-robot avatar Mar 26 '24 03:03 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Mar 26 '24 03:03 k8s-ci-robot