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

Split implementations from generic code #12

Closed
wants to merge 6 commits into from

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Nov 10, 2016

Edit: this is the first step

  • enable travis-ci
  • fix gce code (change name of packages)
  • refactoring of nginx controller code
  • update godeps

fixes #4

@aledbf aledbf changed the title WIP: Split implementations from generic code Split implementations from generic code Nov 11, 2016
@aledbf
Copy link
Member Author

aledbf commented Nov 11, 2016

@bprashanth ping

@aledbf aledbf mentioned this pull request Nov 11, 2016
Copy link
Contributor

@bprashanth bprashanth left a comment

Choose a reason for hiding this comment

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

This is really hard to review, the change is too big. Can you split the important bits (generic controller/interface) into another pr and keep this one for mostly the things that are remaining same. Nginx controller refactor to accomodate generic controller is fine, I'd just like to do a more thorough review of the interface between the generic controller and the backends.

@@ -0,0 +1,22 @@
package = "lua-resty-http"
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this? dependency management for lua?


data := map[string]string{}
ing.SetAnnotations(data)
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

why is it commentd out?


// Interface holds the methods to handle an Ingress backend
type Interface interface {
Start()
Copy link
Contributor

Choose a reason for hiding this comment

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

please add godoc

/*
Copyright 2015 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
Copy link
Contributor

Choose a reason for hiding this comment

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

can you move this into ingress/controller/generic/
with
README
interfaces.go
controller.go
tests...
etc?

Start()
Stop() error

Info() string
Copy link
Contributor

Choose a reason for hiding this comment

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

I find it weird that all the interface methods don't take args, how are we communicating endpoint/service info to the backend?

return ir < jr
}

// getUpstreamServers returns a list of Upstream and Server to be used by the backend
Copy link
Contributor

Choose a reason for hiding this comment

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

Please define what an upstream is somewhere, since only nginx really uses it

@aledbf
Copy link
Member Author

aledbf commented Nov 11, 2016

@bprashanth ok, #14 contains only changes to the gce controller (package names) and a godep update. After that I can continue with #15.

@aledbf aledbf closed this Nov 16, 2016
@aledbf aledbf deleted the merge-aledbf-ingress branch November 2, 2017 02:05
haoqing0110 referenced this pull request in stolostron/management-ingress Mar 5, 2021
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.

Add presubmit checks
2 participants