Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Rename to citadel #23

Merged
merged 3 commits into from
Mar 29, 2018
Merged

Rename to citadel #23

merged 3 commits into from
Mar 29, 2018

Conversation

enj
Copy link
Owner

@enj enj commented Mar 28, 2018

Fixes #22

@npmccallum I will rename the repo after this merges.

cc @lancejjohnson

This change only moves files and updates import paths.  It does
change the behavior of any APIs.  The code continues to compile.

Signed-off-by: Monis Khan <[email protected]>
runtimeName = "kms_cmd"
runtimeVersion = "0.0.1" // TODO embed git sha on build
)
const kmsAPIVersion = "v1beta1"

var apiVersionResponse = &v1beta1.VersionResponse{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is what you are renaming later?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as its still kms in this file.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually plan to make a v1beta1 folder and, in the future, a v1 folder (so a single daemon process will support all versions of the KMS API).

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kms is correct because it refers to the Kube API only.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for the rename, then.

😄

@@ -48,7 +48,7 @@ var (
)

func init() {
flag.StringVar(&args.endpoint, "endpoint", "", `the listen address (ex. unix:///tmp/kms.sock)`)
flag.StringVar(&args.endpoint, "endpoint", "", `the listen address (ex. unix:///tmp/socketfile.sock)`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This undoes my previous change. I'm trying to keep doc strings short (for an 80 character terminal). Also, "socketfile.sock" is redundant.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to remove the use of "kms", and this was what the kube examples used. I can pick something else that is short.


KMS is a simple daemon that implements the Kubernetes Key Management Service
Citadel (c5l) is a simple daemon that implements the Kubernetes Key Management Service (KMS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the c5l abbreviation. citadel isn't that long.

Copy link
Owner Author

@enj enj Mar 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used it as the short name in the prefix code (to mimic kube), so I wanted to actually use it so people would know what it was referring to.

I am not really worried about the length in the docs, it is more of "google will find it"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't like it, but if you want to mimic kube, I can accept that.

README.md Outdated
@@ -29,7 +29,7 @@ socket activation is assumed.

### Optional

* `--endpoint string`: the listen address (ex. `unix:///tmp/kms.sock`)
* `--endpoint string`: the listen address (ex. `unix:///tmp/socketfile.sock`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous comment about length and redundancy.

enj added 2 commits March 28, 2018 23:19
This change breaks the existing prefix API by changing the short
name used to "c5l" instead of "ck" - hopefully for the last time.
The string "kms" is now exclusively used to refer to the Kubernetes
interface and the daemon correctly identifies itself as "citadel."

Signed-off-by: Monis Khan <[email protected]>
This change updates the README to refer to the daemon as "citadel"
or "c5l" for short.  KMS now only refers to the Kubernetes interface.

Signed-off-by: Monis Khan <[email protected]>
@enj enj force-pushed the enj/i/fix_name/22 branch from 114998a to 9b46f75 Compare March 29, 2018 03:20
@enj
Copy link
Owner Author

enj commented Mar 29, 2018

@npmccallum PTAL

@npmccallum npmccallum merged commit 12d0097 into master Mar 29, 2018
@enj enj deleted the enj/i/fix_name/22 branch March 29, 2018 03:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants