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

DataSources is now common to Secrets and ConfigMaps. #714

Merged
merged 1 commit into from
Jan 23, 2019

Conversation

monopole
Copy link
Contributor

@monopole monopole commented Jan 23, 2019

Code reduction. Code still settling after #692

@monopole monopole requested a review from sethpollack January 23, 2019 02:58
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 23, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: monopole

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 23, 2019
@monopole monopole removed the request for review from mengqiy January 23, 2019 02:58
Copy link
Contributor

@sethpollack sethpollack left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -206,15 +206,15 @@ type GeneratorArgs struct {
// 'replace': replace the existing one
// 'merge': merge with the existing one
Behavior string `json:"behavior,omitempty" yaml:"behavior,omitempty"`

// DataSources for the generator.
DataSources `json:",inline,omitempty" yaml:",inline,omitempty"`
}

// ConfigMapArgs contains the metadata of how to generate a configmap.
type ConfigMapArgs struct {
// GeneratorArgs for the configmap.
GeneratorArgs `json:",inline,omitempty" yaml:",inline,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the moment, I prefer this PR to a PR that does an even stronger coupling:

type SecretArgs {
  ConfigMapArgs
  Type string
}

but might change my mind.

The current PR draws a stronger distinction between the two types, for what that's worth,
leaving an obvious opening as to how they could further differ.

Maybe that option isn't worth much.

Copy link
Contributor

Choose a reason for hiding this comment

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

I like the option for them to further differ. I'm really hoping we can find a way to get secret generation back in a way that is compatible with kubectl

@monopole monopole merged commit 1edfdea into kubernetes-sigs:master Jan 23, 2019
@monopole monopole deleted the deleteField branch January 27, 2019 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants