1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

fix minor issue with endpoint bearertoken (#5752)

SecretBearenTokens are now pointers.

---------

Signed-off-by: Hélia Barroso <helia_barroso@hotmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
This commit is contained in:
Hélia Barroso
2023-08-20 19:02:44 +01:00
committed by GitHub
parent 79dd820198
commit cfc5b0f348
10 changed files with 27 additions and 17 deletions

View File

@@ -2688,7 +2688,7 @@ func testPromGetAuthSecret(t *testing.T) {
},
serviceMonitor: func() *monitoringv1.ServiceMonitor {
sm := framework.MakeBasicServiceMonitor(name)
sm.Spec.Endpoints[0].BearerTokenSecret = v1.SecretKeySelector{
sm.Spec.Endpoints[0].BearerTokenSecret = &v1.SecretKeySelector{
LocalObjectReference: v1.LocalObjectReference{
Name: name,
},
@@ -2980,7 +2980,7 @@ func testPromArbitraryFSAcc(t *testing.T) {
},
endpoint: monitoringv1.Endpoint{
Port: "web",
BearerTokenSecret: v1.SecretKeySelector{
BearerTokenSecret: &v1.SecretKeySelector{
LocalObjectReference: v1.LocalObjectReference{
Name: name,
},

View File

@@ -226,8 +226,9 @@ func (f *Framework) MakeBasicServiceMonitor(name string) *monitoringv1.ServiceMo
},
Endpoints: []monitoringv1.Endpoint{
{
Port: "web",
Interval: "30s",
Port: "web",
Interval: "30s",
BearerTokenSecret: &v1.SecretKeySelector{},
},
},
},