python icon indicating copy to clipboard operation
python copied to clipboard

utils.create_from_dict fails for custom objects ArgoprojIoV1alpha1Api

Open poriniki opened this issue 2 years ago • 3 comments

Hi, I have the same issue here #1792 for creating a resource kind Workflow (it's for argo workflow) using utils.create_from_dict I have this error:

module 'kubernetes.client' has no attribute 'ArgoprojIoV1alpha1Api'

but when I use the CLI kubectl, it works fine with the create -f file.yaml

I tried the solution above but I get this :

404
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'eee8ca83-533c-47cd-b6b1-a2e04566d0b2', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '15bb149d-4605-405f-be86-f44fedbf33be', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'd6fe364f-537d-4ef3-9f6b-31a9ee9729b9', 'Date': 'Tue, 22 Aug 2023 12:36:22 GMT', 'Content-Length': '200'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"namespaces \\"stg-argowf\\" not found","reason":"NotFound","details":{"name":"stg-argowf","kind":"namespaces"},"code":404}\n'

poriniki avatar Aug 22 '23 13:08 poriniki

see: https://github.com/kubernetes-client/python/issues/1792 for a work around

g-bohncke avatar Aug 30 '23 10:08 g-bohncke

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 27 '24 07: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 26 '24 08: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 27 '24 09: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 27 '24 09:03 k8s-ci-robot