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

Add flag to skip the update of Ingress status on shutdown #882

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Jun 20, 2017

fixes #881

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 20, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@aledbf aledbf requested a review from justinsb June 20, 2017 01:23
@@ -89,6 +89,10 @@ func NewIngressController(backend ingress.Controller) *GenericController {
forceIsolation = flags.Bool("force-namespace-isolation", false,
`Force namespace isolation. This flag is required to avoid the reference of secrets or
configmaps located in a different namespace than the specified in the flag --watch-namespace.`)

statusUpdateOnShutdown = flags.Bool("update-status-on-shutdown", true, `Indicates if the
ingress controller should NOT update the Ingress status IP/hostname when the controller
Copy link
Member

Choose a reason for hiding this comment

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

Nit: This could probably just be should update the Ingress ... i.e. I think "not" is wrong there.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@justinsb
Copy link
Member

LGTM

@justinsb
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 20, 2017
ElectionID string
UpdateStatus bool
ElectionID string
StatusUpdateOnShutdown bool
Copy link
Member

Choose a reason for hiding this comment

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

Another nit - I'm not sure if this is exposed anywhere, but it probably should be UpdateStatusOnShutdown to mirror the flag name

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 44.539% when pulling 05a976f on aledbf:avoid-status-updtae into ca5f402 on kubernetes:master.

@aledbf aledbf merged commit 9ec862b into kubernetes:master Jun 20, 2017
@aledbf aledbf deleted the avoid-status-updtae branch June 20, 2017 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to not remove loadBalancer status record?
5 participants