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

Update fork #8

Merged
merged 2 commits into from
May 11, 2020
Merged

Update fork #8

merged 2 commits into from
May 11, 2020

Conversation

hjkatz
Copy link
Owner

@hjkatz hjkatz commented May 11, 2020

No description provided.

Harrison Katz and others added 2 commits May 5, 2020 13:26
…154)

* Revert "Make units consistent for memory fixes issue #78 (#103)"

This reverts commit e55026d.

* Add FormatResourceList and test cases

* Use v1 resource memory constants instead of hardcoded strings

* Add a VPAUpdateMode to the vpa.Reconciler

The VPAUpdateMode field will allow us to use Goldilocks to create VPAs
that operate outside of "off" mode.

* Add ability to specify vpa update mode

This commit adds a parameter to createVPA that allows the user to
specify the update mode for the VPA. The mechanism for specifying this
is the label goldilocks.fairwinds.com/vpaUpdateMode.

* Extract variables instead of hardcoded values

* VPA update mode label case insensitive

Kubernetes labels are based on DNS names, which are case insensitive.
However, the current label used to specify the update mode of created
VPAs, vpaUpdateMode, is case sensitive. This has caused a bug that
results in all VPAs being created in "Off" mode. This commit fixes that
bug by using a case-insensitive label to specify the vpa-update-mode.

* Summary fix for multiple containers in a pod (#123)

* go.mod updated for some reason

* Add support for all VPA UpdateModes

* Use ParseBool for deployment enabled label value

* Use ParseBool for namespace enabled label value

* Use lowercase for switch statement

* Add Deployment Exclusion Annotation

Also:
 - Update reconciler to use VPA and Deployment objects
   directly (instead of names)
 - Update reconciler logging
 - Update/Add vpa tests

* Change no-vpa annotation to vpa-opt-out (to opt out of vpa in auto mode)

Also:
 - Update vpa tests
 - Fix vpa-opt-out logic

* Add more logging to VPA reconciler

* Fix namespace logs to use Name instead of the full Namespace

* Update README

* Fix Typo aut -> auto

Co-Authored-By: Andrew Suderman <andrew@sudermanjr.com>

* Fix grammar matched -> match

Co-Authored-By: Andrew Suderman <andrew@sudermanjr.com>

* Use vpa-update-mode as an annotation for Deployment specific VPA control

* Fix ineffectual assignment

* Fix test label

* Use index to get correct vpa

* Use short-hand if statement for map lookup

* Expand the functionality and interface for pkg/summary

* Add namespace support for summary command

* Standardize Vpa -> VPA

* Remove unused cached summary

* Fix typo in summary command help

* Remove confusing error comment

* Revert "Refactored summary pkg and added more tests. (#90)"

This reverts commit 998db15.

* Remove superfluous v1 import alias

* Use var for empty slice initialization

Co-Authored-By: Luke Reed <luke@lreed.net>

* Report an error when too many namespace arguments are given to the summary command

* golint and fixes

* Use apps/v1 for summary_test.go

* Re-export Option type (accidentally unexported)

* Use --namespace flag for summary command instead of args

Co-authored-by: John Turner <jturner@squarespace.com>
Co-authored-by: David Noyes <david.noyes@skybettingandgaming.com>
Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>
Co-authored-by: Luke Reed <luke@lreed.net>
@hjkatz hjkatz merged commit 102aded into hjkatz:master May 11, 2020
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.

2 participants