Skip to content

Commit

Permalink
Bump client to harbor v2.5.0 (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: He Weiwei <hweiwei@vmware.com>
  • Loading branch information
heww committed May 17, 2022
1 parent b75ff4f commit dbda328
Show file tree
Hide file tree
Showing 21 changed files with 1,126 additions and 1,289 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -7,7 +7,7 @@ SWAGGER_VERSION=v0.25.0
SWAGGER := $(DOCKERCMD) run --rm -it -v $(HOME):$(HOME) -w $(shell pwd) quay.io/goswagger/swagger:$(SWAGGER_VERSION)

ifeq ($(VERSION),)
VERSION := v2.4.0
VERSION := v2.5.0
endif

HARBOR_ASSIST_SPEC=api/swagger.yaml
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -16,26 +16,26 @@ api/

## Download swagger spec by version

Currently, the default Harbor version is `v2.4.0`.
Currently, the default Harbor version is `v2.5.0`.

*NOTE* Default version need to be updated manually inside [Makefile](Makefile)

To download swagger spec:

```sh
make update-swagger-spec
make update-spec
```

To download swagger spec from previous Harbor version, add `VERSION` as an argument:

```sh
make update-swagger-spec VERSION=v2.3.4
make update-spec VERSION=v2.5.0
```

## Generate Clients

```sh
make gen-harbor-api
make gen-harbor-api VERSION=v2.5.0
```

## Check all available make commands
Expand Down

0 comments on commit dbda328

Please sign in to comment.