Skip to content

Commit

Permalink
Update kube-rbac-proxy to v0.15.0 (#18984)
Browse files Browse the repository at this point in the history
* Update kube-rbac-proxy to v0.15.0

* Fix tests
  • Loading branch information
aledbf authored Nov 6, 2023
1 parent 1ec7186 commit 0fba511
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions install/installer/pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ func KubeRBACProxyContainerWithConfig(ctx *RenderContext) *corev1.Container {
"--logtostderr",
fmt.Sprintf("--insecure-listen-address=[$(IP)]:%d", baseserver.BuiltinMetricsPort),
fmt.Sprintf("--upstream=http://127.0.0.1:%d/", baseserver.BuiltinMetricsPort),
"--http2-disable",
},
Ports: []corev1.ContainerPort{
{Name: baseserver.BuiltinMetricsPortName, ContainerPort: baseserver.BuiltinMetricsPort},
Expand Down
2 changes: 2 additions & 0 deletions install/installer/pkg/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestKubeRBACProxyContainer_DefaultPorts(t *testing.T) {
"--logtostderr",
fmt.Sprintf("--insecure-listen-address=[$(IP)]:%v", baseserver.BuiltinMetricsPort),
fmt.Sprintf("--upstream=http://%v/", common.LocalhostPrometheusAddr()),
"--http2-disable",
}, container.Args)
require.Equal(t, []corev1.ContainerPort{
{Name: baseserver.BuiltinMetricsPortName, ContainerPort: baseserver.BuiltinMetricsPort},
Expand All @@ -41,6 +42,7 @@ func TestKubeRBACProxyContainerWithConfig(t *testing.T) {
"--logtostderr",
fmt.Sprintf("--insecure-listen-address=[$(IP)]:%d", baseserver.BuiltinMetricsPort),
fmt.Sprintf("--upstream=http://%v/", common.LocalhostPrometheusAddr()),
"--http2-disable",
}, container.Args)
require.Equal(t, []corev1.ContainerPort{
{Name: baseserver.BuiltinMetricsPortName, ContainerPort: baseserver.BuiltinMetricsPort},
Expand Down
2 changes: 1 addition & 1 deletion install/installer/pkg/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
InClusterDbSecret = "mysql"
KubeRBACProxyRepo = "quay.io"
KubeRBACProxyImage = "brancz/kube-rbac-proxy"
KubeRBACProxyTag = "v0.14.2"
KubeRBACProxyTag = "v0.15.0"
MinioServiceAPIPort = 9000
MonitoringChart = "monitoring"
ProxyComponent = "proxy"
Expand Down

0 comments on commit 0fba511

Please sign in to comment.