[platform] delete extra dependencies for piraeus operator (#856)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Updated dependency configuration so that piraeus-operator no longer
depends on victoria-metrics-operator.
- **Refactor**
- Improved compatibility by ensuring certain resources (VMPodScrape and
alert definitions) are only rendered if the required API versions are
available in the Kubernetes cluster.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
klinch0
2025-05-07 12:30:31 +03:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ releases:
releaseName: piraeus-operator
chart: cozy-piraeus-operator
namespace: cozy-linstor
dependsOn: [cilium,cert-manager,victoria-metrics-operator]
dependsOn: [cilium,cert-manager]
- name: snapshot-controller
releaseName: snapshot-controller

View File

@@ -1,3 +1,4 @@
{{- if .Capabilities.APIVersions.Has "operator.victoriametrics.com/v1beta1" }}
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMPodScrape
metadata:
@@ -42,3 +43,4 @@ spec:
selector:
matchLabels:
app.kubernetes.io/component: linstor-controller
{{- end }}

View File

@@ -1,7 +1,8 @@
{{- $files := .Files.Glob "alerts/*.yaml" -}}
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" }}
{{- range $path, $file := $files }}
---
# from: {{ $path }}
{{ toString $file }}
{{- end }}
{{- end -}}