@@ -162,7 +162,7 @@ func (mon *Monitor) emitCWPStatus(ctx context.Context) error {
162
162
return err
163
163
}
164
164
clusterDomain := clusterdetails .Spec .Domain
165
- if ! (noProxyMap [clusterDomain ] || noProxyMap [".apps." + clusterDomain ] || noProxyMap ["." + clusterDomain ]) {
165
+ if ! (noProxyMap [clusterDomain ] || noProxyMap [".apps." + clusterDomain ] || noProxyMap ["." + clusterDomain ] || noProxyMap [ "*." + clusterDomain ] || noProxyMap [ "*.apps." + clusterDomain ] ) {
166
166
missing_no_proxy_list = append (missing_no_proxy_list , clusterDomain )
167
167
}
168
168
for _ , gatewayDomain := range clusterdetails .Spec .GatewayDomains {
@@ -186,7 +186,7 @@ func (mon *Monitor) emitCWPStatus(ctx context.Context) error {
186
186
return err
187
187
}
188
188
apiServerIntdomain := strings .Split (apiServerIntURL .Host , ":" )[0 ]
189
- if ! noProxyMap [apiServerIntdomain ] {
189
+ if ! ( noProxyMap [apiServerIntdomain ] || noProxyMap [ "*." + clusterDomain ]) {
190
190
missing_no_proxy_list = append (missing_no_proxy_list , apiServerIntdomain )
191
191
}
192
192
@@ -197,7 +197,7 @@ func (mon *Monitor) emitCWPStatus(ctx context.Context) error {
197
197
return err
198
198
}
199
199
apiServerProfiledomain := strings .Split (apiServerProfileURL .Host , ":" )[0 ]
200
- if ! noProxyMap [apiServerProfiledomain ] {
200
+ if ! ( noProxyMap [apiServerProfiledomain ] || noProxyMap [ "*." + clusterDomain ]) {
201
201
missing_no_proxy_list = append (missing_no_proxy_list , apiServerProfiledomain )
202
202
}
203
203
@@ -208,7 +208,7 @@ func (mon *Monitor) emitCWPStatus(ctx context.Context) error {
208
208
"status" : strconv .FormatBool (status ),
209
209
"Message" : message ,
210
210
})
211
- mon .log .Info (message )
211
+ mon .log .Infof (message )
212
212
if mon .hourlyRun {
213
213
mon .log .WithFields (logrus.Fields {
214
214
"metric" : cwp ,
0 commit comments