Skip to content

Commit a3e0dab

Browse files
IvMisticosclaude
andauthored
Rebrand ryodocx references to the IvMisticos fork (#9)
* Point error-location links at the IvMisticos fork The 'error occurred at:' links printed by kcc-cache and kcc-injector were hardcoded to the upstream ryodocx repo, so they pointed at source that doesn't match this fork. Repoint them at IvMisticos. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V2pTHkL3AmyFqgyQhgrohw * Rebrand remaining ryodocx references to IvMisticos fork Repoint every ryodocx/kube-credential-cache reference at the IvMisticos fork: the go.mod module path, README install/badge/release links, the benchmark transcript, and the asdf helper script. The upstream copyright notice in LICENSE is intentionally left unchanged. No internal Go code imports the module path, so the module rename needs no import rewrites. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V2pTHkL3AmyFqgyQhgrohw * asdf: match the fork's goreleaser asset naming The fork's goreleaser archive name_template omits the version (kube-credential-cache_Linux_x86_64.tar.gz), whereas download_release built a versioned URL (..._${version}_...). That mismatch 404'd the asdf install test once the download source pointed at the fork. Drop the version segment so the URL matches the published assets. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V2pTHkL3AmyFqgyQhgrohw --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 64b755d commit a3e0dab

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![lint](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/golangci-lint.yaml)
44
[![asdf-test](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/asdf-test.yml/badge.svg)](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/asdf-test.yml)
55
[![GoReleaser](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/goreleaser.yaml/badge.svg)](https://github.com/IvMisticos/kube-credential-cache/actions/workflows/goreleaser.yaml)
6-
[![Go Report Card](https://goreportcard.com/badge/github.com/ryodocx/kube-credential-cache)](https://goreportcard.com/report/github.com/ryodocx/kube-credential-cache)
6+
[![Go Report Card](https://goreportcard.com/badge/github.com/IvMisticos/kube-credential-cache)](https://goreportcard.com/report/github.com/IvMisticos/kube-credential-cache)
77

88
Fast access to Kubernetes!
99
Especially effective with kubectl + EKS, about 3~4x faster!
@@ -52,17 +52,17 @@ scoop bucket add IvMisticos https://github.com/IvMisticos/scoop-bucket
5252
scoop install kube-credential-cache
5353

5454
# go install
55-
go install github.com/ryodocx/kube-credential-cache/cmd/kcc-cache@latest
56-
go install github.com/ryodocx/kube-credential-cache/cmd/kcc-injector@latest
55+
go install github.com/IvMisticos/kube-credential-cache/cmd/kcc-cache@latest
56+
go install github.com/IvMisticos/kube-credential-cache/cmd/kcc-injector@latest
5757

5858
# asdf-vm: https://asdf-vm.com
5959
asdf plugin add kube-credential-cache
6060

6161
# aqua: https://aquaproj.github.io
62-
aqua g -i ryodocx/kube-credential-cache
62+
aqua g -i IvMisticos/kube-credential-cache
6363
```
6464

65-
or download from [releases](https://github.com/ryodocx/kube-credential-cache/releases).
65+
or download from [releases](https://github.com/IvMisticos/kube-credential-cache/releases).
6666
All methods install both `kcc-cache` and `kcc-injector`.
6767

6868
## Usage(edit kubeconfig)

benchmark/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Server Version: v1.24.0
3939
go test -bench . -cpu 1 -benchtime 10s
4040
goos: darwin
4141
goarch: arm64
42-
pkg: github.com/ryodocx/kube-credential-cache/benchmark
42+
pkg: github.com/IvMisticos/kube-credential-cache/benchmark
4343
BenchmarkKubectlEKS 14 811727732 ns/op # kubectl version (eks)
4444
BenchmarkKubectlEKSCache 52 211486883 ns/op # ↑ + cache
4545
BenchmarkGetCredentialEKS 21 539992825 ns/op # aws eks get-token --cluster-name example
@@ -50,7 +50,7 @@ BenchmarkGetCredentialCache 6933 1743538 ns/op # kcc-cache sh
5050
BenchmarkKubectlSlow 16 650367846 ns/op # kubectl version --user slow (use get-credential-wait.sh only)
5151
BenchmarkGetCredentialSlow 22 496425106 ns/op # sh get-credential-wait.sh
5252
PASS
53-
ok github.com/ryodocx/kube-credential-cache/benchmark 98.958s
53+
ok github.com/IvMisticos/kube-credential-cache/benchmark 98.958s
5454
```
5555

5656

bin/scripts/utils.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
GH_REPO="https://github.com/ryodocx/kube-credential-cache"
5+
GH_REPO="https://github.com/IvMisticos/kube-credential-cache"
66
TOOL_NAME="kube-credential-cache"
77

88
fail() {
@@ -24,7 +24,7 @@ sort_versions() {
2424
list_github_tags() {
2525
if which jq &>/dev/null; then
2626
# TODO: support pagination
27-
curl "${curl_opts[@]}" "https://api.github.com/repos/ryodocx/kube-credential-cache/releases?per_page=100" |
27+
curl "${curl_opts[@]}" "https://api.github.com/repos/IvMisticos/kube-credential-cache/releases?per_page=100" |
2828
jq -r '.[] | select(.prerelease == false) | .tag_name' |
2929
sed 's/^v//'
3030
else
@@ -43,7 +43,7 @@ download_release() {
4343
version="$1"
4444
filename="$2"
4545

46-
url="$GH_REPO/releases/download/v${version}/kube-credential-cache_${version}_$(uname -s)_$(uname -m).tar.gz"
46+
url="$GH_REPO/releases/download/v${version}/kube-credential-cache_$(uname -s)_$(uname -m).tar.gz"
4747

4848
echo "* Downloading $TOOL_NAME release $version..."
4949
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"

cmd/kcc-cache/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func fatal(format string, v ...any) {
335335
}
336336
}
337337
_, _, line, _ := runtime.Caller(1)
338-
fmt.Fprintf(os.Stderr, "error occurred at: https://github.com/ryodocx/kube-credential-cache/blob/%s/cmd/kcc-cache/main.go#L%d\n", commit, line)
338+
fmt.Fprintf(os.Stderr, "error occurred at: https://github.com/IvMisticos/kube-credential-cache/blob/%s/cmd/kcc-cache/main.go#L%d\n", commit, line)
339339

340340
os.Exit(1)
341341
}

cmd/kcc-injector/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func fatal(format string, v ...any) {
157157

158158
fmt.Fprintf(os.Stderr, "%s: ", path.Base(os.Args[0]))
159159
fmt.Fprintf(os.Stderr, format+"\n", v...)
160-
fmt.Fprintf(os.Stderr, "error occurred at: https://github.com/ryodocx/kube-credential-cache/blob/%s/cmd/kcc-injector/main.go#L%d\n", commit, line)
160+
fmt.Fprintf(os.Stderr, "error occurred at: https://github.com/IvMisticos/kube-credential-cache/blob/%s/cmd/kcc-injector/main.go#L%d\n", commit, line)
161161
flag.Usage()
162162
os.Exit(1)
163163
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ryodocx/kube-credential-cache
1+
module github.com/IvMisticos/kube-credential-cache
22

33
go 1.26.4
44

0 commit comments

Comments
 (0)