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

Make units consistent for memory fixes issue #78 #103

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

mgoodhart5
Copy link

@mgoodhart5 mgoodhart5 commented Jan 16, 2020

Fixes issue #78
Memory is now returned as Mi for recommendations
All tests passing

@claassistantio
Copy link

claassistantio commented Jan 16, 2020

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jan 16, 2020

Codecov Report

Merging #103 into master will increase coverage by 0.62%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   42.77%   43.39%   +0.62%     
==========================================
  Files           8        8              
  Lines         547      553       +6     
==========================================
+ Hits          234      240       +6     
  Misses        302      302              
  Partials       11       11
Impacted Files Coverage Δ
pkg/dashboard/helpers.go 80.24% <100%> (+1.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aa135d...bdff547. Read the comment docs.

uuid "github.com/satori/go.uuid"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
)

func printResource(quant resource.Quantity) string {
func printResource(quant resource.Quantity, resourceType corev1.ResourceName) string {
// weird thing you can't look at
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this comment ;-)

@@ -29,31 +30,43 @@ func Test_getUUID(t *testing.T) {
}

func Test_printResource(t *testing.T) {
// struct to contain test cases defined below
Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary comments

Copy link
Contributor

Choose a reason for hiding this comment

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

It took me a long time after graduating to accept this, but comments are considered harmful 😅

@sudermanjr sudermanjr requested a review from rbren January 16, 2020 18:45
if quant.IsZero() {
return "Not Set"
}
return quant.String()
switch resourceType {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit: I think this switch duplicates quant.String(). This might be simpler:

if resourceType == corev1.ResourceMemory {
  quant = quant.RoundUp(resource.Mega)
}
return quant.String()

Copy link
Author

Choose a reason for hiding this comment

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

I am not sure I understand this, but happy to talk about it.

Copy link
Member

Choose a reason for hiding this comment

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

Interesting. We were following the pattern from another example. Will that guarantee that Mi is returned rather than k for the units? I am not familiar with the quant.RoundUp function.

Copy link
Member

Choose a reason for hiding this comment

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

Also, what happens to CPU or other types of values in that case?

Copy link
Author

Choose a reason for hiding this comment

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

Not entirely sure why this doesn't want to work, but this is the error I got when I tried it.
cannot use quant.RoundUp(resource.Mega) (type bool) as type resource.Quantity in assignment go
Something with a type difference?

Copy link
Member

Choose a reason for hiding this comment

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

Decided to just leave this for now. We can optimize later if we want

@@ -29,31 +30,43 @@ func Test_getUUID(t *testing.T) {
}

func Test_printResource(t *testing.T) {
// struct to contain test cases defined below
Copy link
Contributor

Choose a reason for hiding this comment

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

It took me a long time after graduating to accept this, but comments are considered harmful 😅

@mgoodhart5 mgoodhart5 merged commit e55026d into master Jan 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the mg/make-units-consistent branch January 16, 2020 22:50
hjkatz pushed a commit to hjkatz/goldilocks that referenced this pull request Feb 28, 2020
sudermanjr pushed a commit that referenced this pull request Mar 6, 2020
* 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

Co-authored-by: John Turner <jturner@squarespace.com>
sudermanjr pushed a commit that referenced this pull request Mar 13, 2020
* 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

* Reorganize Reconciler code ordering

The vpa.Reconciler function read a bit funny to me: a bunch of private
methods were listed before the exported methods. When someone is going
to read that file, they most likely want to see the public API of the
struct before they see the private functions that implement it. This
commit reorders things so that the public API is listed first in the
file.

* Add DryRun field to the Reconciler

The vpa.Reconciler currently uses a passthrough dry-run variable.
However the dry run behavior is part of the state of the reconciler, and
it shouldn't change within the lifecycle of the reconciler. Decoupling
it from the reconciler gives the appearance that the dry run behavior
should somehow be separate, and results in a variable that has to be
passed around to private package functions.

* Make list/create/deleteVPA Reconciler methods

These functions all take data clumps of internal state of the
Reconciler. While decoupling them might be useful if they were exported
package functions, the fact that they're unexported means that the
Reconciler is their only caller. Given those two facts, it makes more
sense to couple the these functions with the Reconciler.

* Rename checkNamespaceLabel to namespaceIsManaged

The name checkNamespaceLabel describes what is done mechanically, not
why. namespaceIsManaged should hopefully give a clearer sense of what
the boolean return value means for this method.

* Refactor Reconciler.ReconcileNamespace

The main exported API on of the vpa package is the
Reconciler.ReconcilerNamespace method. However, this method is a bit
hard to read because it mixes levels of abstraction quite frequently.
This leads to comments being used to convey semantic information. This
commit refactors the main reconciliation loop into a series of
unexported methods, allowing the reader of the code to get a better
sense of why certain operations are taking place.

Co-authored-by: John Turner <jturner@squarespace.com>
Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>
sudermanjr pushed a commit that referenced this pull request Mar 18, 2020
* 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

Co-authored-by: John Turner <jturner@squarespace.com>
Co-authored-by: David Noyes <david.noyes@skybettingandgaming.com>
sudermanjr pushed a commit that referenced this pull request Apr 6, 2020
* 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

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>
sudermanjr pushed a commit that referenced this pull request May 5, 2020
…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>
sudermanjr pushed a commit that referenced this pull request Aug 11, 2020
* 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

* Split templates by kind

* Restructure/Organize pkg/dashboard into sub-packages

* Add options pattern to pkg/dashboard

* Move handlers pkg back to dashboard ; Move dashboard.go -> router.go

* Change Summary format to better represent its logical data structure

* Change templates to work with new Summary structure

* Fix container resource recommendation formatting

* Move pkg/dashboard -> pkg/web

* Split templates and dashboard into files ; Make template util functions more flexible for the router and for new webpages

* Add /namespaces ; Make /namespaces the default route ; Style /namespaces ; Fix /dashboard

* Limit namespace-list.go data passed to template

* Fix dashboard link

* Add length to All Namespaces

* Fix summary_test.go

* Fix typo 'reccomendations' -> 'recommendations'

* Fix typo 'NamespceList' -> 'NamespaceList'

* Add clarifying comment about template data limiting

* Add outer structure to Summary

* Rename dashboard -> web

* Allow goldilocks' web RBAC to list/get namespaces

* Move common labels to utils.go

* Use correct labels location

* Attempt to fix e2e

* Fix incorrect args usage for namespace

* Add oidc auth support

* Remove redundant return statement from health.go

* Update cmd/web.go

Co-authored-by: Harrison Katz <hkatz@squarespace.com>

* Rename web back to -> dashboard

* Batch Summary Deployments list into a single API call ; Improves speed _significantly_

* Remove superfluous Error prefix in error message

Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>

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>
sudermanjr pushed a commit that referenced this pull request Aug 13, 2020
* 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

* Split templates by kind

* Restructure/Organize pkg/dashboard into sub-packages

* Add options pattern to pkg/dashboard

* Move handlers pkg back to dashboard ; Move dashboard.go -> router.go

* Change Summary format to better represent its logical data structure

* Change templates to work with new Summary structure

* Fix container resource recommendation formatting

* Move pkg/dashboard -> pkg/web

* Split templates and dashboard into files ; Make template util functions more flexible for the router and for new webpages

* Add /namespaces ; Make /namespaces the default route ; Style /namespaces ; Fix /dashboard

* Limit namespace-list.go data passed to template

* Fix dashboard link

* Add length to All Namespaces

* Fix summary_test.go

* Fix typo 'reccomendations' -> 'recommendations'

* Fix typo 'NamespceList' -> 'NamespaceList'

* Add clarifying comment about template data limiting

* Add outer structure to Summary

* Rename dashboard -> web

* Allow goldilocks' web RBAC to list/get namespaces

* Move common labels to utils.go

* Use correct labels location

* Attempt to fix e2e

* Fix incorrect args usage for namespace

* Add oidc auth support

* Remove redundant return statement from health.go

* Update cmd/web.go

Co-authored-by: Harrison Katz <hkatz@squarespace.com>

* Rename web back to -> dashboard

* Batch Summary Deployments list into a single API call ; Improves speed _significantly_

* Remove superfluous Error prefix in error message

Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>

* Add namespace list search bar/filter ; Add some friendly js improvements

* Add Namespace to blank Summary when summarizing a specific Namespace

* Fix nil map for namespace summary

* Only add containers to the summary if they match a container in the deployment

* Add label element for accessibility

* Remove on enter namespace selection in the javascript for the namespace list page

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>
sudermanjr pushed a commit that referenced this pull request Aug 26, 2020
* 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

* Split templates by kind

* Restructure/Organize pkg/dashboard into sub-packages

* Add options pattern to pkg/dashboard

* Move handlers pkg back to dashboard ; Move dashboard.go -> router.go

* Change Summary format to better represent its logical data structure

* Change templates to work with new Summary structure

* Fix container resource recommendation formatting

* Move pkg/dashboard -> pkg/web

* Split templates and dashboard into files ; Make template util functions more flexible for the router and for new webpages

* Add /namespaces ; Make /namespaces the default route ; Style /namespaces ; Fix /dashboard

* Limit namespace-list.go data passed to template

* Fix dashboard link

* Add length to All Namespaces

* Fix summary_test.go

* Fix typo 'reccomendations' -> 'recommendations'

* Fix typo 'NamespceList' -> 'NamespaceList'

* Add clarifying comment about template data limiting

* Add outer structure to Summary

* Rename dashboard -> web

* Allow goldilocks' web RBAC to list/get namespaces

* Move common labels to utils.go

* Use correct labels location

* Attempt to fix e2e

* Fix incorrect args usage for namespace

* Add oidc auth support

* Remove redundant return statement from health.go

* Update cmd/web.go

Co-authored-by: Harrison Katz <hkatz@squarespace.com>

* Rename web back to -> dashboard

* Batch Summary Deployments list into a single API call ; Improves speed _significantly_

* Remove superfluous Error prefix in error message

Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>

* Add namespace list search bar/filter ; Add some friendly js improvements

* Add Namespace to blank Summary when summarizing a specific Namespace

* Fix nil map for namespace summary

* Only add containers to the summary if they match a container in the deployment

* Add label element for accessibility

* Remove on enter namespace selection in the javascript for the namespace list page

* Pass proper pointer to Namespace through the vpa reconciler

* Pass proper pointer to Namespace through the vpa reconciler ; Always update VPAs during reconciliation

* Fix pkg/vpa tests

* Get desired VPA object based on existing VPA object

* Fix updateVPA() to correctly update existing VPAs and retry with backoff

* Remove unused updateModeOff variable from pkg/vpa/test_constants.go

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>
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