From bda302df12856879fd78efad1569135b1706973b Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sun, 16 May 2021 00:31:24 +0200 Subject: add deployment stuff --- .../ksonnet-util/legacy-noname.libsonnet | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 deploy/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet (limited to 'deploy/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet') diff --git a/deploy/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet b/deploy/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet new file mode 100644 index 0000000..388a10b --- /dev/null +++ b/deploy/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet @@ -0,0 +1,51 @@ +// legacy-noname.libsonnet provides two-way compatibility, in k8s-alpha many new() functions have a mandatory name +// argument while they are absent in ksonnet-lib. `noNewEmptyNameMixin` allows us to make the argument optional in +// either situation. +function(noNewEmptyNameMixin) { + core+: { v1+: { + persistentVolumeClaim+: noNewEmptyNameMixin, + } }, + extensions+: { + v1beta1+: { + ingress+: noNewEmptyNameMixin, + }, + }, + networking+: { + v1beta1+: { + ingress+: noNewEmptyNameMixin, + }, + }, + batch+: { + v1+: { + job+: noNewEmptyNameMixin, + }, + v1beta1+: { + job+: noNewEmptyNameMixin, + }, + }, + local rbacPatch = { + role+: noNewEmptyNameMixin, + clusterRole+: noNewEmptyNameMixin, + roleBinding+: noNewEmptyNameMixin, + clusterRoleBinding+: noNewEmptyNameMixin, + }, + rbac+: { + v1+: rbacPatch, + v1beta1+: rbacPatch, + }, + policy+: { v1beta1+: { + podDisruptionBudget+: noNewEmptyNameMixin, + podSecurityPolicy+: noNewEmptyNameMixin, + } }, + storage+: { v1+: { + storageClass+: noNewEmptyNameMixin, + } }, + + scheduling+: { v1beta1+: { + priorityClass+: noNewEmptyNameMixin, + } }, + admissionregistration+: { v1beta1+: { + mutatingWebhookConfiguration+: noNewEmptyNameMixin, + validatingWebhookConfiguration+: noNewEmptyNameMixin, + } }, +} -- cgit v1.2.3