Skip to content
This repository has been archived by the owner on Jan 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from revit13/rename_project
Browse files Browse the repository at this point in the history
Rename project
  • Loading branch information
ronenkat authored Aug 1, 2021
2 parents b229573 + 9dd53fe commit d2f027d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# openapi2crd

[![Go Report Card](https://goreportcard.com/badge/github.com/mesh-for-data/openapi2crd)](https://goreportcard.com/report/github.com/mesh-for-data/openapi2crd)
[![Go Reference](https://pkg.go.dev/badge/github.com/mesh-for-data/openapi2crd.svg)](https://pkg.go.dev/github.com/mesh-for-data/openapi2crd)
[![golangci-lint](https://github.com/mesh-for-data/openapi2crd/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/mesh-for-data/openapi2crd/actions/workflows/golangci-lint.yml)
[![CodeQL](https://github.com/mesh-for-data/openapi2crd/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/mesh-for-data/openapi2crd/actions/workflows/codeql-analysis.yml)
[![gosec](https://github.com/mesh-for-data/openapi2crd/actions/workflows/golang-security.yml/badge.svg)](https://github.com/mesh-for-data/openapi2crd/actions/workflows/golang-security.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/fybrik/openapi2crd)](https://goreportcard.com/report/github.com/fybrik/openapi2crd)
[![Go Reference](https://pkg.go.dev/badge/github.com/fybrik/openapi2crd.svg)](https://pkg.go.dev/github.com/fybrik/openapi2crd)
[![golangci-lint](https://github.com/fybrik/openapi2crd/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/fybrik/openapi2crd/actions/workflows/golangci-lint.yml)
[![CodeQL](https://github.com/fybrik/openapi2crd/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/fybrik/openapi2crd/actions/workflows/codeql-analysis.yml)
[![gosec](https://github.com/fybrik/openapi2crd/actions/workflows/golang-security.yml/badge.svg)](https://github.com/fybrik/openapi2crd/actions/workflows/golang-security.yml)


`openapi2crd` is a CLI to generate Kubernetes Custom Resource Definition (CRD) resources from [OpenAPI 3.0](https://www.openapis.org/).

## Install

Download the appropriate version for your platform from [Releases](https://github.com/mesh-for-data/openapi2crd/releases/latest). You may want to install the binary to somewhere in your system's PATH such as `/usr/local/bin`.
Download the appropriate version for your platform from [Releases](https://github.com/fybrik/openapi2crd/releases/latest). You may want to install the binary to somewhere in your system's PATH such as `/usr/local/bin`.

Alternatively, if you have go 1.16 or later then you can also use `go install`. This will put `openapi2crd` in `$(go env GOPATH)/bin`:

```bash
go install github.com/mesh-for-data/openapi2crd@latest
go install fybrik.io/openapi2crd@latest
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mesh-for-data/openapi2crd
module fybrik.io/openapi2crd

go 1.16

Expand Down
6 changes: 3 additions & 3 deletions hack/get-openapi2crd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for mesh-for-data/openapi2crd
$this: download go binaries for fybrik/openapi2crd
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/mesh-for-data/openapi2crd/releases
https://github.com/fybrik/openapi2crd/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand Down Expand Up @@ -350,7 +350,7 @@ End of functions from https://github.com/client9/shlib
EOF

PROJECT_NAME="openapi2crd"
OWNER=mesh-for-data
OWNER=fybrik
REPO="openapi2crd"
BINARY=openapi2crd
FORMAT=tar.gz
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/spf13/viper"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"

"github.com/mesh-for-data/openapi2crd/pkg/config"
"github.com/mesh-for-data/openapi2crd/pkg/exporter"
"github.com/mesh-for-data/openapi2crd/pkg/generator"
"fybrik.io/openapi2crd/pkg/config"
"fybrik.io/openapi2crd/pkg/exporter"
"fybrik.io/openapi2crd/pkg/generator"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/getkin/kin-openapi/openapi3"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"

"github.com/mesh-for-data/openapi2crd/pkg/convert"
"fybrik.io/openapi2crd/pkg/convert"
)

type Generator struct {
Expand Down Expand Up @@ -38,7 +38,7 @@ func (g *Generator) Generate(crd *apiextensions.CustomResourceDefinition, spec o
}
// TODO: yaml.Marshal creates an empty status field that we should remove
// StoredVersions is set to empty array instead of nil to bypass the following issue:
// https://github.com/mesh-for-data/openapi2crd/issues/1
// https://github.com/fybrik/openapi2crd/issues/1
crd.Status.StoredVersions = []string{}

return crd, nil
Expand Down

0 comments on commit d2f027d

Please sign in to comment.