@@ -122,6 +122,10 @@ func (t *TestContext) makeCertManagerURL() string {
122
122
return fmt .Sprintf (certmanagerURLTmpl , certmanagerVersion )
123
123
}
124
124
125
+ func (t * TestContext ) makePrometheusOperatorURL () string {
126
+ return fmt .Sprintf (prometheusOperatorURL , prometheusOperatorVersion )
127
+ }
128
+
125
129
// InstallCertManager installs the cert manager bundle. If hasv1beta1CRs is true,
126
130
// the legacy version (which uses v1alpha2 CRs) is installed.
127
131
func (t * TestContext ) InstallCertManager () error {
@@ -149,14 +153,14 @@ func (t *TestContext) UninstallCertManager() {
149
153
150
154
// InstallPrometheusOperManager installs the prometheus manager bundle.
151
155
func (t * TestContext ) InstallPrometheusOperManager () error {
152
- url := fmt . Sprintf ( prometheusOperatorURL , prometheusOperatorVersion )
156
+ url := t . makePrometheusOperatorURL ( )
153
157
_ , err := t .Kubectl .Apply (false , "-f" , url )
154
158
return err
155
159
}
156
160
157
161
// UninstallPrometheusOperManager uninstalls the prometheus manager bundle.
158
162
func (t * TestContext ) UninstallPrometheusOperManager () {
159
- url := fmt . Sprintf ( prometheusOperatorURL , prometheusOperatorVersion )
163
+ url := t . makePrometheusOperatorURL ( )
160
164
if _ , err := t .Kubectl .Delete (false , "-f" , url ); err != nil {
161
165
warnError (err )
162
166
}
0 commit comments