Skip to content

Commit

Permalink
fix: add gv info
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Feb 29, 2024
1 parent c187ae3 commit 3e128b0
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/api/common/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// Package common contains common API Schema definitions
// +kubebuilder:object:generate=true
// +groupName=webapp.test.k8s.elastic.co
package common

import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "webapp.test.k8s.elastic.co", Version: "common"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)
26 changes: 26 additions & 0 deletions test/expected.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,35 @@
== API Reference

.Packages
- xref:{anchor_prefix}-webapp-test-k8s-elastic-co-common[$$webapp.test.k8s.elastic.co/common$$]
- xref:{anchor_prefix}-webapp-test-k8s-elastic-co-v1[$$webapp.test.k8s.elastic.co/v1$$]


[id="{anchor_prefix}-webapp-test-k8s-elastic-co-common"]
=== webapp.test.k8s.elastic.co/common

Package common contains common API Schema definitions



[id="{anchor_prefix}-github-com-elastic-crd-ref-docs-api-common-commonstring"]
==== CommonString

_Underlying type:_ _string_





.Appears In:
****
- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-guestbookspec[$$GuestbookSpec$$]
- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-guestbookstatus[$$GuestbookStatus$$]
****




[id="{anchor_prefix}-webapp-test-k8s-elastic-co-v1"]
=== webapp.test.k8s.elastic.co/v1

Expand Down
22 changes: 22 additions & 0 deletions test/expected.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
# API Reference

## Packages
- [webapp.test.k8s.elastic.co/common](#webapptestk8selasticcocommon)
- [webapp.test.k8s.elastic.co/v1](#webapptestk8selasticcov1)


## webapp.test.k8s.elastic.co/common

Package common contains common API Schema definitions



#### CommonString

_Underlying type:_ _string_





_Appears in:_
- [GuestbookSpec](#guestbookspec)
- [GuestbookStatus](#guestbookstatus)




## webapp.test.k8s.elastic.co/v1

Package v1 contains API Schema definitions for the webapp v1 API group
Expand Down

0 comments on commit 3e128b0

Please sign in to comment.