Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secrets fixups #4653

Merged
merged 3 commits into from
Feb 23, 2015
Merged

Secrets fixups #4653

merged 3 commits into from
Feb 23, 2015

Conversation

thockin
Copy link
Member

@thockin thockin commented Feb 20, 2015

Things I wanted to fix as I reviewed all the secrets work.

@markturansky
Copy link
Contributor

Will there be any attempt to extract an interface from these or otherwise make common attributes across all types? I am referring to the comment you left in another thread where you might want to request an EmptyDir with specific Throughput performance characteristics.

@vmarmol
Copy link
Contributor

vmarmol commented Feb 20, 2015

Assigning to @erictune, feel free to rebalance.

@thockin
Copy link
Member Author

thockin commented Feb 20, 2015

There may be common interfaces across them, but I want to use NFS and iscsi
as drivers for that, rather than just guessing.

On Fri, Feb 20, 2015 at 5:28 AM, Mark Turansky notifications@github.com
wrote:

Will there be any attempt to extract an interface from these or otherwise
make common attributes across all types? I am referring to the comment you
left in another thread where you might want to request an EmptyDir with
specific Throughput performance characteristics.

Reply to this email directly or view it on GitHub
#4653 (comment)
.

@erictune
Copy link
Member

LGTM. Not passing tests.

@erictune
Copy link
Member

looks like there is a new precommit hook. maybe a rebase will help

@thockin
Copy link
Member Author

thockin commented Feb 20, 2015

rebased and pushed.

On Fri, Feb 20, 2015 at 10:40 AM, Eric Tune notifications@github.com
wrote:

looks like there is a new precommit hook. maybe a rebase will help

Reply to this email directly or view it on GitHub
#4653 (comment)
.

@@ -1329,7 +1329,7 @@ const MaxSecretSize = 1 * 1024 * 1024
type SecretType string
Copy link
Member

Choose a reason for hiding this comment

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

@bgrant0607 wanted this renamed to SecretKind and for it to come before the Data field.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do in next push

@pmorie
Copy link
Member

pmorie commented Feb 23, 2015

@derekwaynecarr FYI

@pmorie
Copy link
Member

pmorie commented Feb 23, 2015

@thockin LGTM with the exception of renaming SecretType to SecretKind.

@pmorie
Copy link
Member

pmorie commented Feb 23, 2015

@thockin Rereading the comment on #4514 to make sure all feedback was accounted for here, I found this comment #4514 (comment). Tl;dr: need description on fields.

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

Pushed update with SecretKind. It looks like descriptions are OK now - I don't find any missing.

@pmorie
Copy link
Member

pmorie commented Feb 23, 2015

@thockin One last nit :) @bgrant0607 wanted SecretKind to appear before Data.

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

Little problem: if we rename Secret.Type to Secret.Kind we now conflict with TypeMeta.Kind, which is embedded in Secret. If we rename it to SecretKind then it is different from a dozen other "Kind" fields, which just happen to not be on API objects.

@bgrant0607 for an opinion on what to do with this.

@thockin thockin mentioned this pull request Feb 23, 2015
@bgrant0607
Copy link
Member

Annoyingly, this is only a problem in the Go inline structs, not in the json. Taking a look.

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

Propose to drop the Type/Kind from this series and deal with it on its own? If OK, I'll push a new update.

SecretTypeOpaque SecretType = "opaque" // Opaque (arbitrary data; default)
SecretTypeKubernetesAuthToken SecretType = "kubernetes-auth" // Kubernetes auth token
SecretTypeDockerRegistryAuth SecretType = "docker-reg-auth" // Docker registry auth
SecretKindOpaque SecretKind = "opaque" // Opaque (arbitrary data; default)
Copy link
Member

Choose a reason for hiding this comment

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

These don't follow our constant convention because?

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

Also we have AffinityType floating around

@bgrant0607
Copy link
Member

And LimitType, FSType, CapabilityType, CauseType.

Kinds include only PodConditionKind and NodeConditionKind.

So I guess it's the Kinds that are odd.

If you want to revert to SecretType, I'm ok with that.

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

I think this latest push addresses all comments except Kind/Type which we can reconsider on its own.

@pmorie
Copy link
Member

pmorie commented Feb 23, 2015

@thockin LGTM 👍

Thanks for fixing these nits.

@thockin
Copy link
Member Author

thockin commented Feb 23, 2015

LGTM accomplished. Will self-commit when green. Will think on type/kind.

thockin added a commit that referenced this pull request Feb 23, 2015
@thockin thockin merged commit eed3645 into kubernetes:master Feb 23, 2015
@thockin thockin deleted the secret_fixups branch March 2, 2015 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants