Skip to content

Commit

Permalink
Fix yaml lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Jan 16, 2025
1 parent e24a244 commit 47e12ae
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yamllint disable rule:comments-indentation
---
# -- Name override
# @section -- General settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ alloy-logs:
global:
podSecurityContext:
seLinuxOptions:
type: spc_t```
type: spc_t
```
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ alloy-logs:
global:
podSecurityContext:
seLinuxOptions:
type: spc_t
type: spc_t
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ spec:
type: logql
- query: count_over_time({cluster="$CLUSTER", destination="loki-bearer-token", job!="integrations/kubernetes/eventhandler"}[1h])
type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-noauth", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-basicauth", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-bearer-token", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-noauth", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-basicauth", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql
# - query: count_over_time({cluster="$CLUSTER", destination="loki-otlp-bearer-token", job!="integrations/kubernetes/eventhandler"}[1h])
# type: logql

# DPM check
- query: avg(count_over_time(scrape_samples_scraped{cluster="$CLUSTER"}[1m]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deployments/test-variables.yaml:

deployments/grafana-cloud-credentials.yaml:
echo "---" > $@
echo "# yamllint disable rule:line-length" >> $@
kubectl create secret generic grafana-cloud-credentials \
--from-literal=PROMETHEUS_USER="$$GRAFANA_CLOUD_METRICS_USERNAME" \
--from-literal=PROMETHEUS_PASS="$$GRAFANA_CLOUD_RW_POLICY_TOKEN" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deployments/test-variables.yaml:

deployments/grafana-cloud-credentials.yaml:
echo "---" > $@
echo "# yamllint disable rule:line-length" >> $@
kubectl create secret generic grafana-cloud-credentials \
--from-literal=PROMETHEUS_USER="$$GRAFANA_CLOUD_METRICS_USERNAME" \
--from-literal=PROMETHEUS_PASS="$$GRAFANA_CLOUD_RW_POLICY_TOKEN" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deployments/test-variables.yaml:

deployments/grafana-cloud-credentials.yaml:
echo "---" > $@
echo "# yamllint disable rule:line-length" >> $@
kubectl create secret generic grafana-cloud-credentials \
--from-literal=PROMETHEUS_USER="$$GRAFANA_CLOUD_METRICS_USERNAME" \
--from-literal=PROMETHEUS_PASS="$$GRAFANA_CLOUD_RW_POLICY_TOKEN" \
Expand Down
1 change: 1 addition & 0 deletions charts/k8s-monitoring/tests/platform/otlp-gateway/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deployments/test-variables.yaml:

deployments/grafana-cloud-credentials.yaml:
echo "---" > $@
echo "# yamllint disable rule:line-length" >> $@
kubectl create secret generic grafana-cloud-credentials \
--from-literal=OTLP_GATEWAY_USER="$$GRAFANA_CLOUD_OTLP_USERNAME" \
--from-literal=OTLP_GATEWAY_PASS="$$GRAFANA_CLOUD_RW_POLICY_TOKEN" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deployments/test-variables.yaml:

deployments/grafana-cloud-credentials.yaml:
echo "---" > $@
echo "# yamllint disable rule:line-length" >> $@
kubectl create secret generic grafana-cloud-credentials \
--from-literal=GRAFANA_CLOUD_FLEET_MGMT_USER="$$GRAFANA_CLOUD_FLEET_MGMT_USER" \
--from-literal=GRAFANA_CLOUD_FLEET_MGMT_TOKEN="$$GRAFANA_CLOUD_FLEET_MGMT_TOKEN" \
Expand Down
1 change: 1 addition & 0 deletions charts/k8s-monitoring/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yamllint disable rule:line-length rule:comments-indentation
---
cluster:
# -- The name for this cluster.
Expand Down

0 comments on commit 47e12ae

Please sign in to comment.