diff --git a/templates/prometheus-postgres-exporter/_common.tpl b/templates/_common.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_common.tpl rename to templates/_common.tpl diff --git a/templates/prometheus-postgres-exporter/_configMap.tpl b/templates/_configMap.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_configMap.tpl rename to templates/_configMap.tpl diff --git a/templates/prometheus-postgres-exporter/_deployment.tpl b/templates/_deployment.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_deployment.tpl rename to templates/_deployment.tpl diff --git a/templates/prometheus-postgres-exporter/_ingress.tpl b/templates/_ingress.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_ingress.tpl rename to templates/_ingress.tpl diff --git a/templates/prometheus-postgres-exporter/_networkPolicies.tpl b/templates/_networkPolicies.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_networkPolicies.tpl rename to templates/_networkPolicies.tpl diff --git a/templates/prometheus-postgres-exporter/_pod.tpl b/templates/_pod.tpl similarity index 89% rename from templates/prometheus-postgres-exporter/_pod.tpl rename to templates/_pod.tpl index a8d5da3..3eb4fcd 100644 --- a/templates/prometheus-postgres-exporter/_pod.tpl +++ b/templates/_pod.tpl @@ -16,7 +16,7 @@ {{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.database.existingSecret.secretName ) }} checksum/secret-database: {{ print $secret.spec | sha256sum }} {{- else }} -checksum/secret-database: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretDatabase.yaml") . | sha256sum }} +checksum/secret-database: {{ include (print $.Template.BasePath "/secretDatabase.yaml") . | sha256sum }} {{- end }} {{/* exporter config */}} @@ -24,7 +24,7 @@ checksum/secret-database: {{ include (print $.Template.BasePath "/prometheus-pos {{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.exporterConfig.existingSecret.secretName ) }} checksum/secret-exporter-config: {{ print $secret.spec | sha256sum }} {{- else }} -checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretExporterConfig.yaml") . | sha256sum }} +checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/secretExporterConfig.yaml") . | sha256sum }} {{- end }} {{/* web config */}} @@ -32,7 +32,7 @@ checksum/secret-exporter-config: {{ include (print $.Template.BasePath "/prometh {{- $secret := default (dict "data" (dict)) (lookup "v1" "Secret" .Release.Namespace .Values.config.webConfig.existingSecret.secretName ) }} checksum/secret-web-config: {{ print $secret.spec | sha256sum }} {{- else }} -checksum/secret-web-config: {{ include (print $.Template.BasePath "/prometheus-postgres-exporter/secretWebConfig.yaml") . | sha256sum }} +checksum/secret-web-config: {{ include (print $.Template.BasePath "/secretWebConfig.yaml") . | sha256sum }} {{- end }} {{- end }} diff --git a/templates/prometheus-postgres-exporter/_podMonitors.tpl b/templates/_podMonitors.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_podMonitors.tpl rename to templates/_podMonitors.tpl diff --git a/templates/prometheus-postgres-exporter/_prometheusRules.tpl b/templates/_prometheusRules.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_prometheusRules.tpl rename to templates/_prometheusRules.tpl diff --git a/templates/prometheus-postgres-exporter/_secrets.tpl b/templates/_secrets.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_secrets.tpl rename to templates/_secrets.tpl diff --git a/templates/prometheus-postgres-exporter/_serviceAccount.tpl b/templates/_serviceAccount.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_serviceAccount.tpl rename to templates/_serviceAccount.tpl diff --git a/templates/prometheus-postgres-exporter/_serviceMonitors.tpl b/templates/_serviceMonitors.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_serviceMonitors.tpl rename to templates/_serviceMonitors.tpl diff --git a/templates/prometheus-postgres-exporter/_services.tpl b/templates/_services.tpl similarity index 100% rename from templates/prometheus-postgres-exporter/_services.tpl rename to templates/_services.tpl diff --git a/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml b/templates/configMapGrafanaDashboardPostgresExporter.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml rename to templates/configMapGrafanaDashboardPostgresExporter.yaml diff --git a/templates/prometheus-postgres-exporter/deployment.yaml b/templates/deployment.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/deployment.yaml rename to templates/deployment.yaml diff --git a/templates/prometheus-postgres-exporter/ingress.yaml b/templates/ingress.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/ingress.yaml rename to templates/ingress.yaml diff --git a/templates/prometheus-postgres-exporter/networkPolicies.yaml b/templates/networkPolicies.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/networkPolicies.yaml rename to templates/networkPolicies.yaml diff --git a/templates/prometheus-postgres-exporter/podMonitor.yaml b/templates/podMonitor.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/podMonitor.yaml rename to templates/podMonitor.yaml diff --git a/templates/prometheus-postgres-exporter/prometheusRules.yaml b/templates/prometheusRules.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/prometheusRules.yaml rename to templates/prometheusRules.yaml diff --git a/templates/prometheus-postgres-exporter/secretDatabase.yaml b/templates/secretDatabase.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/secretDatabase.yaml rename to templates/secretDatabase.yaml diff --git a/templates/prometheus-postgres-exporter/secretExporterConfig.yaml b/templates/secretExporterConfig.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/secretExporterConfig.yaml rename to templates/secretExporterConfig.yaml diff --git a/templates/prometheus-postgres-exporter/secretWebConfig.yaml b/templates/secretWebConfig.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/secretWebConfig.yaml rename to templates/secretWebConfig.yaml diff --git a/templates/prometheus-postgres-exporter/serviceAccount.yaml b/templates/serviceAccount.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/serviceAccount.yaml rename to templates/serviceAccount.yaml diff --git a/templates/prometheus-postgres-exporter/serviceHTTP.yaml b/templates/serviceHTTP.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/serviceHTTP.yaml rename to templates/serviceHTTP.yaml diff --git a/templates/prometheus-postgres-exporter/serviceMonitorHTTP.yaml b/templates/serviceMonitorHTTP.yaml similarity index 100% rename from templates/prometheus-postgres-exporter/serviceMonitorHTTP.yaml rename to templates/serviceMonitorHTTP.yaml diff --git a/unittests/configMaps/grafanaDashboardPostgresExporter.yaml b/unittests/configMaps/grafanaDashboardPostgresExporter.yaml index b3bcd51..e7ff674 100644 --- a/unittests/configMaps/grafanaDashboardPostgresExporter.yaml +++ b/unittests/configMaps/grafanaDashboardPostgresExporter.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml +- templates/configMapGrafanaDashboardPostgresExporter.yaml tests: - it: Rendering postgresExporter asserts: diff --git a/unittests/deployment/deployment.yaml b/unittests/deployment/deployment.yaml index ed91ee3..9aad5c5 100644 --- a/unittests/deployment/deployment.yaml +++ b/unittests/deployment/deployment.yaml @@ -6,10 +6,10 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/deployment.yaml -- templates/prometheus-postgres-exporter/secretDatabase.yaml -- templates/prometheus-postgres-exporter/secretExporterConfig.yaml -- templates/prometheus-postgres-exporter/secretWebConfig.yaml +- templates/deployment.yaml +- templates/secretDatabase.yaml +- templates/secretExporterConfig.yaml +- templates/secretWebConfig.yaml tests: - it: Rendering default set: @@ -20,16 +20,16 @@ tests: asserts: - hasDocuments: count: 1 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - containsDocument: apiVersion: apps/v1 kind: Deployment name: prometheus-postgres-exporter-unittest namespace: testing - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: metadata.annotations - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: metadata.labels value: @@ -38,20 +38,20 @@ tests: app.kubernetes.io/name: prometheus-postgres-exporter app.kubernetes.io/version: 0.1.0 helm.sh/chart: prometheus-postgres-exporter-0.1.0 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.replicas value: 1 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - exists: path: spec.template.metadata.annotations.checksum/secret-database - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - exists: path: spec.template.metadata.annotations.checksum/secret-exporter-config - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - exists: path: spec.template.metadata.annotations.checksum/secret-web-config - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.metadata.labels value: @@ -60,29 +60,29 @@ tests: app.kubernetes.io/name: prometheus-postgres-exporter app.kubernetes.io/version: 0.1.0 helm.sh/chart: prometheus-postgres-exporter-0.1.0 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.affinity - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - contains: path: spec.template.spec.containers[0].envFrom content: secretRef: name: prometheus-postgres-exporter-unittest-database-env - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.containers[0].args value: - --config.file=/etc/prometheus-postgres-exporter/config.d/exporterConfig.yaml - --web.config.file=/etc/prometheus-postgres-exporter/config.d/webConfig.yaml - --web.listen-address=:9187 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.containers[0].volumeMounts value: - mountPath: /etc/prometheus-postgres-exporter/config.d name: config-d - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.volumes value: @@ -94,59 +94,59 @@ tests: name: prometheus-postgres-exporter-unittest-exporter-config - secret: name: prometheus-postgres-exporter-unittest-web-config - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.containers[0].image value: quay.io/prometheuscommunity/postgres-exporter:v0.1.0 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.containers[0].imagePullPolicy value: IfNotPresent - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.containers[0].resources - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.containers[0].securityContext - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.dnsConfig - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.dnsPolicy - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.hostname - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.hostNetwork value: false - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.imagePullSecrets - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.nodeSelector - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.priorityClassName - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.restartPolicy - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.subdomain - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.terminationGracePeriodSeconds value: 60 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.tolerations - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - notExists: path: spec.template.spec.topologySpreadConstraints - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.strategy value: @@ -154,7 +154,7 @@ tests: rollingUpdate: maxSurge: 1 maxUnavailable: 1 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom replicas set: @@ -169,7 +169,7 @@ tests: - equal: path: spec.replicas value: 3 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom affinity set: @@ -202,7 +202,7 @@ tests: values: - antarctica-east1 - antarctica-west1 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test additional arguments set: @@ -224,7 +224,7 @@ tests: - --web.listen-address=:9187 - --foo=bar - --bar=foo - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom imageRegistry and imageRepository set: @@ -240,7 +240,7 @@ tests: - equal: path: spec.template.spec.containers[0].image value: registry.example.local/path/special/prometheus-postgres-exporter:v0.1.0 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom imagePullPolicy set: @@ -255,7 +255,7 @@ tests: - equal: path: spec.template.spec.containers[0].imagePullPolicy value: Always - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test config.database.existingSecret set: @@ -268,7 +268,7 @@ tests: content: secretRef: name: custom-database-secret - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test config.exporterConfig.existingSecret set: @@ -286,7 +286,7 @@ tests: value: - mountPath: /etc/prometheus-postgres-exporter/config.d name: config-d - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.volumes value: @@ -298,7 +298,7 @@ tests: name: exporter-config-secret - secret: name: prometheus-postgres-exporter-unittest-web-config - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test config.webConfig.existingSecret set: @@ -316,7 +316,7 @@ tests: value: - mountPath: /etc/prometheus-postgres-exporter/config.d name: config-d - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.volumes value: @@ -328,7 +328,7 @@ tests: name: prometheus-postgres-exporter-unittest-exporter-config - secret: name: web-config-secret - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom resource limits and requests set: @@ -354,7 +354,7 @@ tests: resourceFieldRef: divisor: "1" resource: limits.cpu - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.containers[0].resources value: @@ -364,7 +364,7 @@ tests: requests: cpu: 25m memory: 100MB - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test custom securityContext set: @@ -397,7 +397,7 @@ tests: readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test dnsConfig set: @@ -418,7 +418,7 @@ tests: nameservers: - "8.8.8.8" - "8.8.4.4" - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test dnsPolicy set: @@ -433,7 +433,7 @@ tests: - equal: path: spec.template.spec.dnsPolicy value: ClusterFirst - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test hostNetwork, hostname, subdomain set: @@ -450,15 +450,15 @@ tests: - equal: path: spec.template.spec.hostNetwork value: true - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.hostname value: pg-exporter - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.subdomain value: exporters.internal - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test imagePullSecrets set: @@ -477,7 +477,7 @@ tests: value: - name: my-pull-secret - name: my-special-secret - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test nodeSelector set: @@ -494,7 +494,7 @@ tests: path: spec.template.spec.nodeSelector value: foo: bar - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test priorityClassName set: @@ -509,7 +509,7 @@ tests: - equal: path: spec.template.spec.priorityClassName value: my-priority - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test restartPolicy set: @@ -524,7 +524,7 @@ tests: - equal: path: spec.template.spec.restartPolicy value: Always - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test terminationGracePeriodSeconds set: @@ -539,7 +539,7 @@ tests: - equal: path: spec.template.spec.terminationGracePeriodSeconds value: 120 - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test tolerations set: @@ -562,7 +562,7 @@ tests: operator: Equal value: postgres effect: NoSchedule - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test topologySpreadConstraints set: @@ -587,7 +587,7 @@ tests: labelSelector: matchLabels: app.kubernetes.io/instance: prometheus-postgres-exporter - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - it: Test additional volumeMounts and volumes set: @@ -612,7 +612,7 @@ tests: mountPath: /usr/lib/prometheus-postgres-exporter/data - name: config-d mountPath: /etc/prometheus-postgres-exporter/config.d - template: templates/prometheus-postgres-exporter/deployment.yaml + template: templates/deployment.yaml - equal: path: spec.template.spec.volumes value: @@ -627,4 +627,4 @@ tests: name: prometheus-postgres-exporter-unittest-exporter-config - secret: name: prometheus-postgres-exporter-unittest-web-config - template: templates/prometheus-postgres-exporter/deployment.yaml \ No newline at end of file + template: templates/deployment.yaml \ No newline at end of file diff --git a/unittests/ingress/ingress.yaml b/unittests/ingress/ingress.yaml index 5f63bcf..c007670 100644 --- a/unittests/ingress/ingress.yaml +++ b/unittests/ingress/ingress.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/ingress.yaml +- templates/ingress.yaml tests: - it: Skip ingress by default. asserts: diff --git a/unittests/networkPolicies/default.yaml b/unittests/networkPolicies/default.yaml index b8c5c85..3877844 100644 --- a/unittests/networkPolicies/default.yaml +++ b/unittests/networkPolicies/default.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/networkPolicies.yaml +- templates/networkPolicies.yaml tests: - it: Skip networkPolicies in general disabled. set: diff --git a/unittests/podMonitors/podMonitorHTTP.yaml b/unittests/podMonitors/podMonitorHTTP.yaml index 61a1d08..f524058 100644 --- a/unittests/podMonitors/podMonitorHTTP.yaml +++ b/unittests/podMonitors/podMonitorHTTP.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/podMonitor.yaml +- templates/podMonitor.yaml tests: - it: Skip podMonitor when metrics are disabled. set: diff --git a/unittests/secrets/database.yaml b/unittests/secrets/database.yaml index e288fee..177e343 100644 --- a/unittests/secrets/database.yaml +++ b/unittests/secrets/database.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/secretDatabase.yaml +- templates/secretDatabase.yaml tests: - it: Skip rendering by using existing secret. set: diff --git a/unittests/secrets/exporterConfig.yaml b/unittests/secrets/exporterConfig.yaml index f82fb93..347d983 100644 --- a/unittests/secrets/exporterConfig.yaml +++ b/unittests/secrets/exporterConfig.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/secretExporterConfig.yaml +- templates/secretExporterConfig.yaml tests: - it: Skip rendering by using existing secret. set: diff --git a/unittests/secrets/webconfig.yaml b/unittests/secrets/webconfig.yaml index b450b36..0002ce0 100644 --- a/unittests/secrets/webconfig.yaml +++ b/unittests/secrets/webconfig.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/secretWebConfig.yaml +- templates/secretWebConfig.yaml tests: - it: Rendering default secret. asserts: diff --git a/unittests/serviceAccounts/serviceAccount.yaml b/unittests/serviceAccounts/serviceAccount.yaml index 94b9ea0..b4e337b 100644 --- a/unittests/serviceAccounts/serviceAccount.yaml +++ b/unittests/serviceAccounts/serviceAccount.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/serviceAccount.yaml +- templates/serviceAccount.yaml tests: - it: Skip rendering. set: diff --git a/unittests/serviceMonitors/serviceMonitorHTTP.yaml b/unittests/serviceMonitors/serviceMonitorHTTP.yaml index a26c566..d78b003 100644 --- a/unittests/serviceMonitors/serviceMonitorHTTP.yaml +++ b/unittests/serviceMonitors/serviceMonitorHTTP.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/serviceMonitorHTTP.yaml +- templates/serviceMonitorHTTP.yaml tests: - it: Skip serviceMonitor when service is disabled. set: diff --git a/unittests/services/http.yaml b/unittests/services/http.yaml index 2751046..09df4be 100644 --- a/unittests/services/http.yaml +++ b/unittests/services/http.yaml @@ -6,7 +6,7 @@ release: name: prometheus-postgres-exporter-unittest namespace: testing templates: -- templates/prometheus-postgres-exporter/serviceHTTP.yaml +- templates/serviceHTTP.yaml tests: - it: Skip service when disabled. set: