Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Replace 'konveyor' org in quay.io with 'kubev2v'
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Nov 15, 2022
1 parent b195d9d commit c28f9b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LABEL name="konveyor/forklift-must-gather-api" \
license="Apache License 2.0" \
maintainer="[email protected]" \
summary="Konveyor Must Gather API service" \
url="https://quay.io/repository/konveyor/forklift-must-gather-api" \
url="https://quay.io/repository/kubev2v/forklift-must-gather-api" \
usage="podman run konveyor/forklift-must-gather-api:latest" \
com.redhat.component="forklift-must-gather-api-container" \
io.k8s.display-name="must-gather-api" \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Image URL to use all building/pushing image targets
IMG ?= quay.io/konveyor/forklift-must-gather-api:latest
IMG ?= quay.io/kubev2v/forklift-must-gather-api:latest
GOOS ?= `go env GOOS`
GOBIN ?= ${GOPATH}/bin
GO111MODULE = auto
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Forklift must-gather API service

[![Must-gather API Repository on Quay](https://quay.io/repository/konveyor/forklift-must-gather-api/status "Must-gather API Repository on Quay")](https://quay.io/repository/konveyor/forklift-must-gather-api) [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/konveyor/forklift-must-gather-api/pulls)
[![Must-gather API Repository on Quay](https://quay.io/repository/kubev2v/forklift-must-gather-api/status "Must-gather API Repository on Quay")](https://quay.io/repository/kubev2v/forklift-must-gather-api) [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/kubev2v/forklift-must-gather-api/pulls)

This repo provides HTTP API to allow trigger OpenShift must-gather (full or targeted) and provide output archive again via HTTP.

Expand All @@ -9,8 +9,8 @@ This repo provides HTTP API to allow trigger OpenShift must-gather (full or targ
### Get it and run

```
$ go get github.com/konveyor/forklift-must-gather-api
$ cd ~/go/src/github.com/konveyor/forklift-must-gather-api
$ go get github.com/kubev2v/forklift-must-gather-api
$ cd ~/go/src/github.com/kubev2v/forklift-must-gather-api
$ go run pkg/must-gather-api.go
```

Expand All @@ -19,7 +19,7 @@ $ go run pkg/must-gather-api.go
Start must-gather execution

```
$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" -d '{"image": "quay.io/konveyor/forklift-must-gather", "timeout": "15m"}' http://localhost:8080/must-gather
$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" -d '{"image": "quay.io/kubev2v/forklift-must-gather", "timeout": "15m"}' http://localhost:8080/must-gather
```

Get must-gather execution (status field values: new, inprogress, completed, error)
Expand Down Expand Up @@ -48,7 +48,7 @@ Example of must-gather JSON object returned by API
"updated-at": "2021-06-30T15:23:05.415732774+02:00",
"custom-name": "",
"status": "completed",
"image": "quay.io/konveyor/forklift-must-gather",
"image": "quay.io/kubev2v/forklift-must-gather",
"image-stream": "",
"node-name": "",
"command": "",
Expand Down Expand Up @@ -91,7 +91,7 @@ Option | Default value | Description
--- | --- | ---
PORT | ```8080``` | Port where the wrapper listens on
DB_PATH | ```./gatherings.db``` | Local storage for must-gather executions records, can be ephemeral or just in memory ```file::memory:?cache=shared```
MUST_GATHER_IMAGE | ```quay.io/konveyor/forklift-must-gather``` | Image name to be used if it was not specified in API call
MUST_GATHER_IMAGE | ```quay.io/kubev2v/forklift-must-gather``` | Image name to be used if it was not specified in API call
TIMEOUT | ```20m``` | Timeout for must-gather execution
ARCHIVE_FILENAME | ```must-gather.tar.gz``` | Archive filename to be searched in must-gather execution directory to be provided to user as the result archive
CLEANUP_MAX_AGE | ```-1``` | Maximum age of must-gather executions kept available in the wrapper, -1 disables the deletion, e.g. ```24h```
Expand Down
2 changes: 1 addition & 1 deletion pkg/must-gather-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func triggerGathering(c *gin.Context) {
if err := c.Bind(&gathering); err == nil {
gathering.Status = "new"
if gathering.Image == "" {
gathering.Image = backend.ConfigEnvOrDefault("MUST_GATHER_IMAGE", "quay.io/konveyor/forklift-must-gather") // default image configurable via OS ENV vars
gathering.Image = backend.ConfigEnvOrDefault("MUST_GATHER_IMAGE", "quay.io/kubev2v/forklift-must-gather") // default image configurable via OS ENV vars
}
if gathering.Timeout == "" {
gathering.Timeout = backend.ConfigEnvOrDefault("TIMEOUT", "20m") // default timeout for must-gather execution
Expand Down

0 comments on commit c28f9b6

Please sign in to comment.