From cbddf907db0bf3c0c5c72960556330b540483c37 Mon Sep 17 00:00:00 2001
From: paulfantom <pawel@krupa.net.pl>
Date: Fri, 15 Jan 2021 15:23:24 +0100
Subject: [PATCH] examples: adjust tests

---
 examples/jsonnet-snippets/aws.jsonnet          | 2 ++
 examples/jsonnet-snippets/bootkube.jsonnet     | 4 ++--
 examples/jsonnet-snippets/kops-coredns.jsonnet | 6 +++---
 examples/jsonnet-snippets/kops.jsonnet         | 4 ++--
 examples/jsonnet-snippets/kube-aws.jsonnet     | 2 --
 examples/jsonnet-snippets/kubeadm.jsonnet      | 4 ++--
 examples/jsonnet-snippets/kubespray.jsonnet    | 4 ++--
 examples/jsonnet-snippets/node-ports.jsonnet   | 4 ++--
 8 files changed, 15 insertions(+), 15 deletions(-)
 create mode 100644 examples/jsonnet-snippets/aws.jsonnet
 delete mode 100644 examples/jsonnet-snippets/kube-aws.jsonnet

diff --git a/examples/jsonnet-snippets/aws.jsonnet b/examples/jsonnet-snippets/aws.jsonnet
new file mode 100644
index 00000000..6eaca09f
--- /dev/null
+++ b/examples/jsonnet-snippets/aws.jsonnet
@@ -0,0 +1,2 @@
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/aws.libsonnet')
diff --git a/examples/jsonnet-snippets/bootkube.jsonnet b/examples/jsonnet-snippets/bootkube.jsonnet
index f7386a01..3d9f3482 100644
--- a/examples/jsonnet-snippets/bootkube.jsonnet
+++ b/examples/jsonnet-snippets/bootkube.jsonnet
@@ -1,2 +1,2 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-bootkube.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/bootkube.libsonnet')
diff --git a/examples/jsonnet-snippets/kops-coredns.jsonnet b/examples/jsonnet-snippets/kops-coredns.jsonnet
index 6ba445df..d1af478b 100644
--- a/examples/jsonnet-snippets/kops-coredns.jsonnet
+++ b/examples/jsonnet-snippets/kops-coredns.jsonnet
@@ -1,3 +1,3 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kops.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kops-coredns.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/kops.libsonnet') +
+(import 'kube-prometheus/platforms/kops-coredns.libsonnet')
diff --git a/examples/jsonnet-snippets/kops.jsonnet b/examples/jsonnet-snippets/kops.jsonnet
index 4ff9ceae..9271b993 100644
--- a/examples/jsonnet-snippets/kops.jsonnet
+++ b/examples/jsonnet-snippets/kops.jsonnet
@@ -1,2 +1,2 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kops.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/kops.libsonnet')
diff --git a/examples/jsonnet-snippets/kube-aws.jsonnet b/examples/jsonnet-snippets/kube-aws.jsonnet
deleted file mode 100644
index b0842eb2..00000000
--- a/examples/jsonnet-snippets/kube-aws.jsonnet
+++ /dev/null
@@ -1,2 +0,0 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kube-aws.libsonnet')
diff --git a/examples/jsonnet-snippets/kubeadm.jsonnet b/examples/jsonnet-snippets/kubeadm.jsonnet
index a7837163..0750b4b3 100644
--- a/examples/jsonnet-snippets/kubeadm.jsonnet
+++ b/examples/jsonnet-snippets/kubeadm.jsonnet
@@ -1,2 +1,2 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kubeadm.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/kubeadm.libsonnet')
diff --git a/examples/jsonnet-snippets/kubespray.jsonnet b/examples/jsonnet-snippets/kubespray.jsonnet
index 1665cf72..d9bb3bd5 100644
--- a/examples/jsonnet-snippets/kubespray.jsonnet
+++ b/examples/jsonnet-snippets/kubespray.jsonnet
@@ -1,2 +1,2 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-kubespray.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/platforms/kubespray.libsonnet')
diff --git a/examples/jsonnet-snippets/node-ports.jsonnet b/examples/jsonnet-snippets/node-ports.jsonnet
index c02f1ae7..abc70c94 100644
--- a/examples/jsonnet-snippets/node-ports.jsonnet
+++ b/examples/jsonnet-snippets/node-ports.jsonnet
@@ -1,2 +1,2 @@
-(import 'kube-prometheus/kube-prometheus.libsonnet') +
-(import 'kube-prometheus/kube-prometheus-node-ports.libsonnet')
+(import 'kube-prometheus/main.libsonnet') +
+(import 'kube-prometheus/addons/node-ports.libsonnet')
-- 
GitLab