Skip to content

Commit

Permalink
rename rekor createsecret to eliminate naming confict (#1221)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Aug 13, 2024
1 parent 0e6914c commit 43d8dd9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ prober
/createctconfig
/createdb
/createsecret
/rekor-createsecret
/createtree
/getoidctoken
/managectroots
Expand Down
2 changes: 1 addition & 1 deletion .ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ builds:

- id: rekor-createsecret
dir: .
main: ./cmd/rekor/createsecret
main: ./cmd/rekor/rekor-createsecret
env:
- CGO_ENABLED=0
flags:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ build-getoidctoken:

.PHONY: build-rekor-createsecret
build-rekor-createsecret:
go build -trimpath ./cmd/rekor/createsecret
go build -trimpath ./cmd/rekor/rekor-createsecret

.PHONY: build-trillian-createdb
build-trillian-createdb:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ have the following (some stuff omitted for readability) in our Rekor Deployment
to ensure that Rekor will not start prior to TreeID having been properly
provisioned.
Rekor also needs a Signing Key that it will use, and we create one with
[CreateSecret](./cmd/rekor/createsecret/main.go). It will create two secrets,
[CreateSecret](./cmd/rekor/rekor-createsecret/main.go). It will create two secrets,
one holding the Private Signing key as well as the password used to encrypt it
with. By default the secret is named `rekor-signing-secret` and contains two
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {

ctx := signals.NewContext()
versionInfo := version.GetVersionInfo()
logging.FromContext(ctx).Infof("running createsecret Version: %s GitCommit: %s BuildDate: %s", versionInfo.GitVersion, versionInfo.GitCommit, versionInfo.BuildDate)
logging.FromContext(ctx).Infof("running rekor-createsecret Version: %s GitCommit: %s BuildDate: %s", versionInfo.GitVersion, versionInfo.GitCommit, versionInfo.BuildDate)

config, err := rest.InClusterConfig()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion config/rekor/createsecret/300-createsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
automountServiceAccountToken: true
containers:
- name: createsecret
image: ko://github.com/sigstore/scaffolding/cmd/rekor/createsecret
image: ko://github.com/sigstore/scaffolding/cmd/rekor/rekor-createsecret
env:
- name: NAMESPACE
valueFrom:
Expand Down

0 comments on commit 43d8dd9

Please sign in to comment.