Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

[BUG] api_version is not correct #61

@XenGi

Description

@XenGi

Describe the bug
I tried the given example with my rancher cluster and it doesn't work. The API version is not correct. I don't know how to find out what the correct version is.

To Reproduce

  • cattlectl version: v2.0.0
  • Rancher Version: v2.4.5
  • I use cattlectl as commandline tool
  • Debug log output from cattlectl <command> -v1.
    DEBU[0000] values dose not exists                        values-file=/home/xengi/phpipam_test/values.yaml
    FATA[0000] Unsupported api version v3                    apply_file=project.yaml
    
  • The simplest example project descriptor and scripts needed to
    reproduce the bug.
    ---
    api_version: v1.0
    kind: Project
    metadata:
      name: phpipam
    namespaces:
      - name: phpipam
    

Expected behavior
I would think that this yaml would create a project called phpipam and a namespace called phpipam.

Additional context
I already tried v3 as the api_version because this is what I see in some requests to rancher but that gave the same output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions