This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new e3ed4c1 fix: render ServiceMonitor regardless of presented CRDs (#571)
e3ed4c1 is described below
commit e3ed4c10e09a18ade8034664507c5b95bca16845
Author: German Lashevich <[email protected]>
AuthorDate: Wed Jul 5 03:55:36 2023 +0000
fix: render ServiceMonitor regardless of presented CRDs (#571)
Remove the check of monitoring.coreos.com/v1 API to make it possible to
render the ServiceMonitor resource without connection to the target Kubernetes
cluster and without supplying --api-versions flag for helm.
---
charts/apisix-ingress-controller/templates/servicemonitor.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/charts/apisix-ingress-controller/templates/servicemonitor.yaml
b/charts/apisix-ingress-controller/templates/servicemonitor.yaml
index 8d1af14..1968d20 100644
--- a/charts/apisix-ingress-controller/templates/servicemonitor.yaml
+++ b/charts/apisix-ingress-controller/templates/servicemonitor.yaml
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" )
.Values.serviceMonitor.enabled }}
+{{- if .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata: