Skip to content
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

Duplicate TOC for OCP 3.11 OpenAPI #2

Open
jboxman opened this issue Sep 15, 2020 · 0 comments
Open

Duplicate TOC for OCP 3.11 OpenAPI #2

jboxman opened this issue Sep 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@jboxman
Copy link
Owner

jboxman commented Sep 15, 2020

So what causes a duplicate Template to appear?

/openshift-apidocs-gen build --map tmp/api-map-311.yaml tmp/openshift-openapi-spec-3.11.json

- Name: template.openshift.io
  Dir: template_openshift_io
  Topics:
  - Name: About template.openshift.io
    File: template-openshift-io-index
  - Name: 'BrokerTemplateInstance [template.openshift.io/v1]'
    File: brokertemplateinstance-template-openshift-io-v1
  - Name: 'Template [template.openshift.io/v1]'
    File: template-template-openshift-io-v1
  - Name: 'TemplateInstance [template.openshift.io/v1]'
    File: templateinstance-template-openshift-io-v1
  - Name: 'Template [template.openshift.io/v1]'
    File: template-template-openshift-io-v1

Answer. ProcessedTemplate presents as Template.

  - kind: Template
    group: template.openshift.io
    version: v1
    plural: processedtemplates
    namespaced: true
  - kind: Template
    group: template.openshift.io
    version: v1
    plural: templates
    namespaced: true

Because:

cat tmp/api-resources-3.11.txt | grep -i template
podtemplates                                                                        true         PodTemplate
brokertemplateinstances                              template.openshift.io          false        BrokerTemplateInstance
processedtemplates                                   template.openshift.io          true         Template
templateinstances                                    template.openshift.io          true         TemplateInstance
templates                                            template.openshift.io          true         Template
@jboxman jboxman added the bug Something isn't working label Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant