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

GCE: Add functions for Alpha address and forwarding rules #51138

Merged
merged 2 commits into from Aug 24, 2017

Conversation

yujuhong
Copy link
Contributor

No description provided.

@yujuhong yujuhong added the release-note-none Denotes a PR that doesn't merit a release note. label Aug 22, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 22, 2017
@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 22, 2017
@freehan
Copy link
Contributor

freehan commented Aug 22, 2017

just curious, do you need experimental flag for the alpha apis?

@yujuhong
Copy link
Contributor Author

just curious, do you need experimental flag for the alpha apis?

I was planning to add that later, after your PR gets merged.

@bowei
Copy link
Member

bowei commented Aug 22, 2017

/lgtm I would prefer not renaming compute to computev1 to reduce change

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2017
@@ -105,6 +113,18 @@ func (gce *GCECloud) CreateRegionForwardingRule(rule *compute.ForwardingRule, re
return gce.waitForRegionOp(op, region, mc)
}

// CreateAlphaRegionForwardingRule creates and returns an Alpha
// forwarding fule in the given region.
func (gce *GCECloud) CreateAlphaRegionForwardingRule(rule *computealpha.ForwardingRule, region string) error {
Copy link
Contributor

@freehan freehan Aug 22, 2017

Choose a reason for hiding this comment

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

do you want to do something like this?

func (gce *GCECloud) createRegionForwardingRuleInternal(rule gceObject, region string) {
       mc := newForwardingRuleMetricContext("create", region)
       switch v := rule.(type) {
                  .............
       }
       return gce.waitForRegionOp(op, region, mc)
}


func (gce *GCECloud) CreateRegionForwardingRule(rule *computev1.ForwardingRule, region string) error {
        return createRegionForwardingRuleInternal(rule, region)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, that doesn't seem to help.

@freehan
Copy link
Contributor

freehan commented Aug 22, 2017

/approve no-issue

no strong opinion though since you only change one.

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 22, 2017
@nicksardo
Copy link
Contributor

nicksardo commented Aug 22, 2017

@bowei What do you think about specifying "alpha_" or "beta_" in the metrics for each API func?

Also, I agree about not renaming compute to computev1.

@bowei
Copy link
Member

bowei commented Aug 22, 2017

Add "alpha_" or "beta_" to the metrics makes sense.

@nicksardo
Copy link
Contributor

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2017
@yujuhong
Copy link
Contributor Author

@bowei What do you think about specifying "alpha_" or "beta_" in the metrics?

I actually did that previously in the POC: yujuhong@7d58ea2

@yujuhong
Copy link
Contributor Author

/lgtm I would prefer not renaming compute to computev1 to reduce change

@freehan's previous PRs renamed the imports. I was trying to be consistent. will remove.

@nicksardo
Copy link
Contributor

I actually did that previously in the POC: yujuhong/kubernetes@7d58ea2

I like having its own field even better.

@yujuhong
Copy link
Contributor Author

yujuhong commented Aug 22, 2017

Reverted the package renaming in the first commit. Added a new commit for recording the version. PTAL

@bowei
Copy link
Member

bowei commented Aug 22, 2017

look ok to me, nick has the final lgtm

@nicksardo
Copy link
Contributor

Looks awesome, thanks!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bowei, freehan, nicksardo, yujuhong

Associated issue requirement bypassed by: freehan

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@yujuhong yujuhong added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Aug 23, 2017
@yujuhong
Copy link
Contributor Author

Forgot about bazel. Updated the BUILD file and re-applied lgtm.

@yujuhong
Copy link
Contributor Author

/test pull-kubernetes-e2e-gce-etcd3

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 5cb1ccc into kubernetes:master Aug 24, 2017
@yujuhong yujuhong deleted the alpha-calls branch September 11, 2017 20:31
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants