-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Helm chart to be rendered locally and on machines where is no…
…t the application target (#2706) * fix(helm): add issuer group to create the certificate without wait for the previous created issuer Signed-off-by: Fabiano Arruda Ferreira das Graças <[email protected]> * fix(helm): remove condition that can prevent the helm chart be rendered on machines where monitoring.coreos.com is not installed or is not the end target of the helm template command Signed-off-by: fafg <[email protected]> * fix(helm): lint - remove blank line Signed-off-by: fafg <[email protected]> * add(helm): missing service monitor test files Signed-off-by: fafg <[email protected]> * add(helm): add missing cert-manager test files Signed-off-by: fafg <[email protected]> * fix(helm): lint - add missing blank lines Signed-off-by: fafg <[email protected]> * fix(helm): rebase Signed-off-by: fafg <[email protected]> * Revert "fix(helm): rebase" This reverts commit c4ce16b. * fix(helm): fix service monitor namespace rendering Signed-off-by: fafg <[email protected]> * fix(helm): add missing up to date golden file Signed-off-by: fafg <[email protected]> * fix(helm): merge upstream Signed-off-by: fafg <[email protected]> * update golden files * also install prom operator dependencies * also install cert-manager * skip cert-manager chart * skip cert-manager value * remove CI TLS files * fix formatting * fix formatting * fix actions --------- Signed-off-by: Fabiano Arruda Ferreira das Graças <[email protected]> Signed-off-by: fafg <[email protected]> Co-authored-by: Tarun Pothulapati <[email protected]> Co-authored-by: Tarun Pothulapati <[email protected]>
- Loading branch information
1 parent
b830a71
commit 30ec81c
Showing
7 changed files
with
171 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
contrib/charts/dragonfly/ci/service-monitor-values.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
--- | ||
# Source: dragonfly/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.15.1" | ||
app.kubernetes.io/managed-by: Helm | ||
--- | ||
# Source: dragonfly/templates/metrics-service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-dragonfly-metrics | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.15.1" | ||
app.kubernetes.io/managed-by: Helm | ||
type: metrics | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: metrics | ||
port: 6379 | ||
targetPort: 6379 | ||
protocol: TCP | ||
selector: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
--- | ||
# Source: dragonfly/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.15.1" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 6379 | ||
targetPort: dragonfly | ||
protocol: TCP | ||
name: dragonfly | ||
selector: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
--- | ||
# Source: dragonfly/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.15.1" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
template: | ||
metadata: | ||
annotations: | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
spec: | ||
serviceAccountName: test-dragonfly | ||
containers: | ||
- name: dragonfly | ||
image: "docker.dragonflydb.io/dragonflydb/dragonfly:v1.15.1" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: dragonfly | ||
containerPort: 6379 | ||
protocol: TCP | ||
livenessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
readinessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
args: | ||
- "--alsologtostderr" | ||
resources: | ||
limits: {} | ||
requests: {} | ||
--- | ||
# Source: dragonfly/templates/servicemonitor.yaml | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: test-dragonfly-metrics | ||
namespace: default | ||
labels: | ||
release: prometheus-stack | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.15.1" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
endpoints: | ||
- interval: 10s | ||
scrapeTimeout: 10s | ||
honorLabels: true | ||
port: metrics | ||
path: /metrics | ||
scheme: http | ||
jobLabel: "test" | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
type: metrics | ||
namespaceSelector: | ||
matchNames: | ||
- default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
serviceMonitor: | ||
enabled: true | ||
namespace: "" | ||
labels: | ||
release: prometheus-stack | ||
annotations: {} | ||
interval: 10s | ||
scrapeTimeout: 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters