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

WIP: Configurable load balancer attributes (access logging and read timeout) #218

Conversation

antoniobeyah
Copy link

Fixes #90 (access logging) and #79 (read timeout)

Copy link

@joshrosso joshrosso left a comment

Choose a reason for hiding this comment

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

@antoniobeyah initial annotation work looks good. Small change requested. Will review again once you propagate this to ALB create / modification.

Thanks for the work!

switch {
case *rawAttr == "":
continue
case len(parts) < 2:
Copy link

@joshrosso joshrosso Sep 20, 2017

Choose a reason for hiding this comment

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

You'll always expect parts to have length 2 here, correct?

Possibly best to set this check such that when it's anything other than 2, we return the error. Preventing cases like attr=value=value2

@antoniobeyah
Copy link
Author

@joshrosso how should the controller deal with configuration items there were set outside of the controller? Looking at the way the reconcile works if someone setup access logging outside the scope of the controller and did not add in the matching annotations access logging would be disabled. Is this something we should try to handle in code or just add it as a warning in the changelog?

@joshrosso
Copy link

@antoniobeyah Our approach thus far has been that all ALBs the controller manages always uses the desired state (derived from ingress manifests) as what we'll eventually get to. Meaning, any configuration options made outside of the ALB (ie AWS) should be overwritten by the controller in the next reconcile.

Let me know if this answers your Q.

@r0fls r0fls mentioned this pull request Nov 17, 2017
@masterzen masterzen mentioned this pull request Nov 30, 2017
@masterzen
Copy link

Hi,

Because we needed to setup the ALB access log, I finished the work started by @antoniobeyah in this PR. Since it is not possible to contribute directly to this PR, I've open a new one: #279 .

I've tested the feature on a live k8s cluster.

Please let me know if there's anything I need to do.
Thanks
Brice

@bigkraig bigkraig closed this Feb 5, 2018
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.

4 participants