-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove grw in favor of caching layer
Signed-off-by: Nico Braun <[email protected]>
- Loading branch information
Showing
30 changed files
with
558 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,13 +409,13 @@ Kobold exposes prometheus metrics on port 8080. The metrics are exposed in the | |
# HELP kobold_git_fetch number of git fetches | ||
# TYPE kobold_git_fetch counter | ||
kobold_git_fetch{repo="[email protected]:bluebrown/foobar"} 3 | ||
kobold_git_fetch{repo="[email protected]:v3/myorg/myproject/kobold-test"} 3 | ||
# HELP kobold_git_push number of git pushes | ||
# TYPE kobold_git_push counter | ||
kobold_git_push{repo="[email protected]:bluebrown/foobar"} 1 | ||
kobold_git_push{repo="[email protected]:bluebrown/foobar"} 4 | ||
# HELP kobold_image_seen number of images seen | ||
# TYPE kobold_image_seen counter | ||
kobold_image_seen{ref="docker.io/bluebrown/busybox"} 3 | ||
kobold_image_seen{ref="docker.io/bluebrown/nginx"} 2 | ||
kobold_image_seen{ref="library/busybox"} 5 | ||
# HELP kobold_msg_recv number of messages received | ||
# TYPE kobold_msg_recv counter | ||
kobold_msg_recv{channel="dockerhub",rejected="false"} 5 | ||
|
@@ -424,8 +424,8 @@ kobold_msg_recv{channel="dockerhub",rejected="false"} 5 | |
kobold_run_active 0 | ||
# HELP kobold_run_status run status (task groups) | ||
# TYPE kobold_run_status counter | ||
kobold_run_status{repo="[email protected]:bluebrown/foobar",status="success"} 2 | ||
kobold_run_status{repo="git@github.com:bluebrown/foobar",status="failure"} 1 | ||
kobold_run_status{repo="[email protected]:bluebrown/foobar",status="success"} 6 | ||
kobold_run_status{repo="git@ssh.dev.azure.com:v3/myorg/myproject/kobold-test",status="success"} 3 | ||
``` | ||
|
||
## Web API | ||
|
@@ -498,23 +498,10 @@ items: | |
- test.azurecr.io/nginx:v1@sha256:993518ca49ede3c4e751fe799837ede16e60bc410452e3922602ebceda9b4c73 | ||
``` | ||
|
||
### Git Read/Writer | ||
|
||
The `grw` command is a git read/writer. It reads from a source repository and | ||
emits the resources to stdout. Optionally, by using the `-a` flag, it sets | ||
tracking annotation, to improve the write performance, by preventing multiple | ||
clones. | ||
|
||
This example reads from git, pipes to a krm filter, and writes back to git: | ||
|
||
```bash | ||
bin/grw -a source '[email protected]:bluebrown/foobar.git@main/manifests' \ | ||
| bin/image-ref-updater testdata/events.yaml - \ | ||
| bin/grw sink '[email protected]:bluebrown/foobar.git@main/manifests' | ||
``` | ||
|
||
### ConFix | ||
|
||
TODO: fix this program. It is currently broken. | ||
|
||
The `confix` command can be used to migrate from the v1 to the v2 config format. | ||
I tries to conver the config on a best effort basis, but careful review is | ||
required. Some features previously supported, are not supported anymore. For | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
replace github.com/volatiletech/null/v8.String string | ||
replace kioutil.GitPackageURI string | ||
replace git.GitPackageURI string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
version: "2" | ||
sql: | ||
- engine: sqlite | ||
queries: ../sql/*.query.sql | ||
schema: ../sql/*.schema.sql | ||
gen: | ||
go: | ||
package: store | ||
out: ../store/ | ||
emit_json_tags: true | ||
emit_empty_slices: true | ||
emit_sql_as_comment: true | ||
- engine: sqlite | ||
queries: ../sql/*.query.sql | ||
schema: ../sql/*.schema.sql | ||
gen: | ||
go: | ||
package: store | ||
out: ../store/ | ||
emit_json_tags: true | ||
emit_empty_slices: true | ||
emit_sql_as_comment: true | ||
|
||
overrides: | ||
- db_type: text | ||
nullable: true | ||
go_type: | ||
import: github.com/volatiletech/null/v8 | ||
package: "null" | ||
type: String | ||
overrides: | ||
- db_type: text | ||
nullable: true | ||
go_type: | ||
import: github.com/volatiletech/null/v8 | ||
package: "null" | ||
type: String | ||
|
||
- column: "*.repo_uri" | ||
go_type: | ||
import: github.com/bluebrown/kobold/kioutil | ||
package: kioutil | ||
type: GitPackageURI | ||
- column: "*.repo_uri" | ||
go_type: | ||
import: github.com/bluebrown/kobold/git | ||
package: git | ||
type: PackageURI | ||
|
||
- column: "*.msgs" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
- column: "*.msgs" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
|
||
- column: "*.warnings" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
- column: "*.warnings" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
|
||
- column: "*.task_ids" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
- column: "*.task_ids" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: SliceText | ||
|
||
- column: "*.fingerprint" | ||
go_type: | ||
type: string | ||
- column: "*.fingerprint" | ||
go_type: | ||
type: string | ||
|
||
- column: "*.channels" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: JsonArray | ||
- column: "*.channels" | ||
go_type: | ||
import: github.com/bluebrown/kobold/dbutil | ||
package: dbutil | ||
type: JsonArray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.