Skip to content

generate openapi removes shortNames from CRD #1323

@enisoc

Description

@enisoc

Bug Report

What did you do?

  1. operator-sdk add api ...
  2. Edit deploy/crds/my_crd.yaml to add shortNames: ["blah"].
  3. operator-sdk generate openapi

What did you expect to see?
The validation section should be filled in without removing my shortNames.

What did you see instead? Under which circumstances?
The generator removed my shortNames.

Environment

  • operator-sdk version: v0.7.0
  • go version: 1.12.2

Additional context

I also tried the +kubebuilder annotation for setting shortNames, but it was ignored:

// +kubebuilder:resource:path=services,shortName=to;ty

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions