@ydkn/pulumi-components 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +31 -0
- package/index.d.ts.map +1 -0
- package/index.js +62 -0
- package/index.js.map +1 -0
- package/lib/avahi/deployment.d.ts +36 -0
- package/lib/avahi/deployment.d.ts.map +1 -0
- package/lib/avahi/deployment.js +164 -0
- package/lib/avahi/deployment.js.map +1 -0
- package/lib/avahi/index.d.ts +4 -0
- package/lib/avahi/index.d.ts.map +1 -0
- package/lib/avahi/index.js +8 -0
- package/lib/avahi/index.js.map +1 -0
- package/lib/avahi/service.d.ts +51 -0
- package/lib/avahi/service.d.ts.map +1 -0
- package/lib/avahi/service.js +57 -0
- package/lib/avahi/service.js.map +1 -0
- package/lib/aws/accessKey.d.ts +22 -0
- package/lib/aws/accessKey.d.ts.map +1 -0
- package/lib/aws/accessKey.js +27 -0
- package/lib/aws/accessKey.js.map +1 -0
- package/lib/aws/bucket.d.ts +28 -0
- package/lib/aws/bucket.d.ts.map +1 -0
- package/lib/aws/bucket.js +49 -0
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/index.d.ts +4 -0
- package/lib/aws/index.d.ts.map +1 -0
- package/lib/aws/index.js +8 -0
- package/lib/aws/index.js.map +1 -0
- package/lib/blocky/deployment.d.ts +39 -0
- package/lib/blocky/deployment.d.ts.map +1 -0
- package/lib/blocky/deployment.js +97 -0
- package/lib/blocky/deployment.js.map +1 -0
- package/lib/blocky/index.d.ts +3 -0
- package/lib/blocky/index.d.ts.map +1 -0
- package/lib/blocky/index.js +6 -0
- package/lib/blocky/index.js.map +1 -0
- package/lib/certManager/certificate.d.ts +126 -0
- package/lib/certManager/certificate.d.ts.map +1 -0
- package/lib/certManager/certificate.js +42 -0
- package/lib/certManager/certificate.js.map +1 -0
- package/lib/certManager/index.d.ts +5 -0
- package/lib/certManager/index.d.ts.map +1 -0
- package/lib/certManager/index.js +11 -0
- package/lib/certManager/index.js.map +1 -0
- package/lib/certManager/issuer.d.ts +109 -0
- package/lib/certManager/issuer.d.ts.map +1 -0
- package/lib/certManager/issuer.js +39 -0
- package/lib/certManager/issuer.js.map +1 -0
- package/lib/certManager/operator.d.ts +43 -0
- package/lib/certManager/operator.d.ts.map +1 -0
- package/lib/certManager/operator.js +177 -0
- package/lib/certManager/operator.js.map +1 -0
- package/lib/common/componentResource.d.ts +20 -0
- package/lib/common/componentResource.d.ts.map +1 -0
- package/lib/common/componentResource.js +62 -0
- package/lib/common/componentResource.js.map +1 -0
- package/lib/common/index.d.ts +4 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +6 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/types.d.ts +3 -0
- package/lib/common/types.d.ts.map +1 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/externalDns/dnsEndpoint.d.ts +66 -0
- package/lib/externalDns/dnsEndpoint.d.ts.map +1 -0
- package/lib/externalDns/dnsEndpoint.js +17 -0
- package/lib/externalDns/dnsEndpoint.js.map +1 -0
- package/lib/externalDns/index.d.ts +4 -0
- package/lib/externalDns/index.d.ts.map +1 -0
- package/lib/externalDns/index.js +8 -0
- package/lib/externalDns/index.js.map +1 -0
- package/lib/externalDns/operator.d.ts +45 -0
- package/lib/externalDns/operator.d.ts.map +1 -0
- package/lib/externalDns/operator.js +112 -0
- package/lib/externalDns/operator.js.map +1 -0
- package/lib/fcos/assets/rpm-opstree-install.sh +26 -0
- package/lib/fcos/assets/rpm-ostree-install.service +13 -0
- package/lib/fcos/config.d.ts +156 -0
- package/lib/fcos/config.d.ts.map +1 -0
- package/lib/fcos/config.js +168 -0
- package/lib/fcos/config.js.map +1 -0
- package/lib/fcos/host.d.ts +34 -0
- package/lib/fcos/host.d.ts.map +1 -0
- package/lib/fcos/host.js +57 -0
- package/lib/fcos/host.js.map +1 -0
- package/lib/fcos/index.d.ts +4 -0
- package/lib/fcos/index.d.ts.map +1 -0
- package/lib/fcos/index.js +8 -0
- package/lib/fcos/index.js.map +1 -0
- package/lib/freeradius/assets/clients.conf.tmpl +23 -0
- package/lib/freeradius/assets/default.tmpl +116 -0
- package/lib/freeradius/assets/eap.tmpl +66 -0
- package/lib/freeradius/assets/inner-tunnel.tmpl +74 -0
- package/lib/freeradius/assets/ldap.tmpl +48 -0
- package/lib/freeradius/assets/proxy.conf.tmpl +43 -0
- package/lib/freeradius/deployment.d.ts +74 -0
- package/lib/freeradius/deployment.d.ts.map +1 -0
- package/lib/freeradius/deployment.js +216 -0
- package/lib/freeradius/deployment.js.map +1 -0
- package/lib/freeradius/index.d.ts +3 -0
- package/lib/freeradius/index.d.ts.map +1 -0
- package/lib/freeradius/index.js +6 -0
- package/lib/freeradius/index.js.map +1 -0
- package/lib/gitlab/index.d.ts +4 -0
- package/lib/gitlab/index.d.ts.map +1 -0
- package/lib/gitlab/index.js +10 -0
- package/lib/gitlab/index.js.map +1 -0
- package/lib/gitlab/renovate.d.ts +38 -0
- package/lib/gitlab/renovate.d.ts.map +1 -0
- package/lib/gitlab/renovate.js +77 -0
- package/lib/gitlab/renovate.js.map +1 -0
- package/lib/gitlab/runners/cleanup.d.ts +29 -0
- package/lib/gitlab/runners/cleanup.d.ts.map +1 -0
- package/lib/gitlab/runners/cleanup.js +86 -0
- package/lib/gitlab/runners/cleanup.js.map +1 -0
- package/lib/gitlab/runners/index.d.ts +5 -0
- package/lib/gitlab/runners/index.d.ts.map +1 -0
- package/lib/gitlab/runners/index.js +10 -0
- package/lib/gitlab/runners/index.js.map +1 -0
- package/lib/gitlab/runners/runner.d.ts +63 -0
- package/lib/gitlab/runners/runner.d.ts.map +1 -0
- package/lib/gitlab/runners/runner.js +89 -0
- package/lib/gitlab/runners/runner.js.map +1 -0
- package/lib/gitlab/runners/runners.d.ts +27 -0
- package/lib/gitlab/runners/runners.d.ts.map +1 -0
- package/lib/gitlab/runners/runners.js +36 -0
- package/lib/gitlab/runners/runners.js.map +1 -0
- package/lib/grafana/agent.d.ts +41 -0
- package/lib/grafana/agent.d.ts.map +1 -0
- package/lib/grafana/agent.js +379 -0
- package/lib/grafana/agent.js.map +1 -0
- package/lib/grafana/index.d.ts +3 -0
- package/lib/grafana/index.d.ts.map +1 -0
- package/lib/grafana/index.js +6 -0
- package/lib/grafana/index.js.map +1 -0
- package/lib/hcloud/assets/fcos-install.sh +30 -0
- package/lib/hcloud/cluster.d.ts +96 -0
- package/lib/hcloud/cluster.d.ts.map +1 -0
- package/lib/hcloud/cluster.js +323 -0
- package/lib/hcloud/cluster.js.map +1 -0
- package/lib/hcloud/index.d.ts +5 -0
- package/lib/hcloud/index.d.ts.map +1 -0
- package/lib/hcloud/index.js +10 -0
- package/lib/hcloud/index.js.map +1 -0
- package/lib/hcloud/kubernetes.d.ts +39 -0
- package/lib/hcloud/kubernetes.d.ts.map +1 -0
- package/lib/hcloud/kubernetes.js +188 -0
- package/lib/hcloud/kubernetes.js.map +1 -0
- package/lib/hcloud/wireguard.d.ts +33 -0
- package/lib/hcloud/wireguard.d.ts.map +1 -0
- package/lib/hcloud/wireguard.js +103 -0
- package/lib/hcloud/wireguard.js.map +1 -0
- package/lib/k0s/cluster.d.ts +51 -0
- package/lib/k0s/cluster.d.ts.map +1 -0
- package/lib/k0s/cluster.js +183 -0
- package/lib/k0s/cluster.js.map +1 -0
- package/lib/k0s/index.d.ts +3 -0
- package/lib/k0s/index.d.ts.map +1 -0
- package/lib/k0s/index.js +6 -0
- package/lib/k0s/index.js.map +1 -0
- package/lib/kubernetes/helm/index.d.ts +3 -0
- package/lib/kubernetes/helm/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/index.js +6 -0
- package/lib/kubernetes/helm/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/chart.d.ts +37 -0
- package/lib/kubernetes/helm/v3/chart.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/chart.js +46 -0
- package/lib/kubernetes/helm/v3/chart.js.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts +3 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.js +29 -0
- package/lib/kubernetes/helm/v3/helpers.js.map +1 -0
- package/lib/kubernetes/helm/v3/index.d.ts +5 -0
- package/lib/kubernetes/helm/v3/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/index.js +10 -0
- package/lib/kubernetes/helm/v3/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/release.d.ts +15 -0
- package/lib/kubernetes/helm/v3/release.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/release.js +18 -0
- package/lib/kubernetes/helm/v3/release.js.map +1 -0
- package/lib/kubernetes/index.d.ts +5 -0
- package/lib/kubernetes/index.d.ts.map +1 -0
- package/lib/kubernetes/index.js +10 -0
- package/lib/kubernetes/index.js.map +1 -0
- package/lib/kubernetes/transformations/filter.d.ts +13 -0
- package/lib/kubernetes/transformations/filter.d.ts.map +1 -0
- package/lib/kubernetes/transformations/filter.js +32 -0
- package/lib/kubernetes/transformations/filter.js.map +1 -0
- package/lib/kubernetes/transformations/index.d.ts +6 -0
- package/lib/kubernetes/transformations/index.d.ts.map +1 -0
- package/lib/kubernetes/transformations/index.js +12 -0
- package/lib/kubernetes/transformations/index.js.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +3 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.js +27 -0
- package/lib/kubernetes/transformations/metadataNamespace.js.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +3 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +61 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +3 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +55 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +1 -0
- package/lib/kubernetes/v1/index.d.ts +5 -0
- package/lib/kubernetes/v1/index.d.ts.map +1 -0
- package/lib/kubernetes/v1/index.js +10 -0
- package/lib/kubernetes/v1/index.js.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts +92 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.js +97 -0
- package/lib/kubernetes/v1/nfsVolume.js.map +1 -0
- package/lib/kubernetes/v1/pullSecret.d.ts +31 -0
- package/lib/kubernetes/v1/pullSecret.d.ts.map +1 -0
- package/lib/kubernetes/v1/pullSecret.js +27 -0
- package/lib/kubernetes/v1/pullSecret.js.map +1 -0
- package/lib/kubernetes/v1/service.d.ts +31 -0
- package/lib/kubernetes/v1/service.d.ts.map +1 -0
- package/lib/kubernetes/v1/service.js +43 -0
- package/lib/kubernetes/v1/service.js.map +1 -0
- package/lib/metallb/controller.d.ts +17 -0
- package/lib/metallb/controller.d.ts.map +1 -0
- package/lib/metallb/controller.js +87 -0
- package/lib/metallb/controller.js.map +1 -0
- package/lib/metallb/index.d.ts +5 -0
- package/lib/metallb/index.d.ts.map +1 -0
- package/lib/metallb/index.js +10 -0
- package/lib/metallb/index.js.map +1 -0
- package/lib/metallb/ipAddressPool.d.ts +20 -0
- package/lib/metallb/ipAddressPool.d.ts.map +1 -0
- package/lib/metallb/ipAddressPool.js +22 -0
- package/lib/metallb/ipAddressPool.js.map +1 -0
- package/lib/metallb/l2Advertisement.d.ts +21 -0
- package/lib/metallb/l2Advertisement.d.ts.map +1 -0
- package/lib/metallb/l2Advertisement.js +22 -0
- package/lib/metallb/l2Advertisement.js.map +1 -0
- package/lib/node/index.d.ts +4 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +6 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/kubernetes.d.ts +38 -0
- package/lib/node/kubernetes.d.ts.map +1 -0
- package/lib/node/kubernetes.js +89 -0
- package/lib/node/kubernetes.js.map +1 -0
- package/lib/node/node.d.ts +21 -0
- package/lib/node/node.d.ts.map +1 -0
- package/lib/node/node.js +3 -0
- package/lib/node/node.js.map +1 -0
- package/lib/openldap/deployment.d.ts +58 -0
- package/lib/openldap/deployment.d.ts.map +1 -0
- package/lib/openldap/deployment.js +217 -0
- package/lib/openldap/deployment.js.map +1 -0
- package/lib/openldap/index.d.ts +3 -0
- package/lib/openldap/index.d.ts.map +1 -0
- package/lib/openldap/index.js +6 -0
- package/lib/openldap/index.js.map +1 -0
- package/lib/plex/index.d.ts +4 -0
- package/lib/plex/index.d.ts.map +1 -0
- package/lib/plex/index.js +8 -0
- package/lib/plex/index.js.map +1 -0
- package/lib/plex/mediaServer.d.ts +46 -0
- package/lib/plex/mediaServer.d.ts.map +1 -0
- package/lib/plex/mediaServer.js +234 -0
- package/lib/plex/mediaServer.js.map +1 -0
- package/lib/plex/playlists.d.ts +62 -0
- package/lib/plex/playlists.d.ts.map +1 -0
- package/lib/plex/playlists.js +129 -0
- package/lib/plex/playlists.js.map +1 -0
- package/lib/prometheus/index.d.ts +4 -0
- package/lib/prometheus/index.d.ts.map +1 -0
- package/lib/prometheus/index.js +8 -0
- package/lib/prometheus/index.js.map +1 -0
- package/lib/prometheus/podMonitor.d.ts +42 -0
- package/lib/prometheus/podMonitor.d.ts.map +1 -0
- package/lib/prometheus/podMonitor.js +17 -0
- package/lib/prometheus/podMonitor.js.map +1 -0
- package/lib/prometheus/serviceMonitor.d.ts +46 -0
- package/lib/prometheus/serviceMonitor.d.ts.map +1 -0
- package/lib/prometheus/serviceMonitor.js +17 -0
- package/lib/prometheus/serviceMonitor.js.map +1 -0
- package/lib/raspberrypi/cluster.d.ts +41 -0
- package/lib/raspberrypi/cluster.d.ts.map +1 -0
- package/lib/raspberrypi/cluster.js +194 -0
- package/lib/raspberrypi/cluster.js.map +1 -0
- package/lib/raspberrypi/index.d.ts +3 -0
- package/lib/raspberrypi/index.d.ts.map +1 -0
- package/lib/raspberrypi/index.js +6 -0
- package/lib/raspberrypi/index.js.map +1 -0
- package/lib/rethinkdb/deployment.d.ts +61 -0
- package/lib/rethinkdb/deployment.d.ts.map +1 -0
- package/lib/rethinkdb/deployment.js +350 -0
- package/lib/rethinkdb/deployment.js.map +1 -0
- package/lib/rethinkdb/index.d.ts +3 -0
- package/lib/rethinkdb/index.d.ts.map +1 -0
- package/lib/rethinkdb/index.js +6 -0
- package/lib/rethinkdb/index.js.map +1 -0
- package/lib/rook/blockPool.d.ts +28 -0
- package/lib/rook/blockPool.d.ts.map +1 -0
- package/lib/rook/blockPool.js +56 -0
- package/lib/rook/blockPool.js.map +1 -0
- package/lib/rook/cluster.d.ts +54 -0
- package/lib/rook/cluster.d.ts.map +1 -0
- package/lib/rook/cluster.js +100 -0
- package/lib/rook/cluster.js.map +1 -0
- package/lib/rook/filesystem.d.ts +29 -0
- package/lib/rook/filesystem.d.ts.map +1 -0
- package/lib/rook/filesystem.js +110 -0
- package/lib/rook/filesystem.js.map +1 -0
- package/lib/rook/index.d.ts +6 -0
- package/lib/rook/index.d.ts.map +1 -0
- package/lib/rook/index.js +12 -0
- package/lib/rook/index.js.map +1 -0
- package/lib/rook/operator.d.ts +19 -0
- package/lib/rook/operator.d.ts.map +1 -0
- package/lib/rook/operator.js +162 -0
- package/lib/rook/operator.js.map +1 -0
- package/lib/samba/deployment.d.ts +79 -0
- package/lib/samba/deployment.d.ts.map +1 -0
- package/lib/samba/deployment.js +238 -0
- package/lib/samba/deployment.js.map +1 -0
- package/lib/samba/index.d.ts +3 -0
- package/lib/samba/index.d.ts.map +1 -0
- package/lib/samba/index.js +6 -0
- package/lib/samba/index.js.map +1 -0
- package/lib/ssh/exec.d.ts +33 -0
- package/lib/ssh/exec.d.ts.map +1 -0
- package/lib/ssh/exec.js +116 -0
- package/lib/ssh/exec.js.map +1 -0
- package/lib/ssh/file.d.ts +43 -0
- package/lib/ssh/file.d.ts.map +1 -0
- package/lib/ssh/file.js +110 -0
- package/lib/ssh/file.js.map +1 -0
- package/lib/ssh/index.d.ts +5 -0
- package/lib/ssh/index.d.ts.map +1 -0
- package/lib/ssh/index.js +8 -0
- package/lib/ssh/index.js.map +1 -0
- package/lib/ssh/types.d.ts +19 -0
- package/lib/ssh/types.d.ts.map +1 -0
- package/lib/ssh/types.js +3 -0
- package/lib/ssh/types.js.map +1 -0
- package/lib/torproxy/deployment.d.ts +31 -0
- package/lib/torproxy/deployment.d.ts.map +1 -0
- package/lib/torproxy/deployment.js +131 -0
- package/lib/torproxy/deployment.js.map +1 -0
- package/lib/torproxy/index.d.ts +3 -0
- package/lib/torproxy/index.d.ts.map +1 -0
- package/lib/torproxy/index.js +6 -0
- package/lib/torproxy/index.js.map +1 -0
- package/lib/traefik/controller.d.ts +50 -0
- package/lib/traefik/controller.d.ts.map +1 -0
- package/lib/traefik/controller.js +166 -0
- package/lib/traefik/controller.js.map +1 -0
- package/lib/traefik/index.d.ts +5 -0
- package/lib/traefik/index.d.ts.map +1 -0
- package/lib/traefik/index.js +10 -0
- package/lib/traefik/index.js.map +1 -0
- package/lib/traefik/middleware.d.ts +27 -0
- package/lib/traefik/middleware.d.ts.map +1 -0
- package/lib/traefik/middleware.js +22 -0
- package/lib/traefik/middleware.js.map +1 -0
- package/lib/traefik/secureIngress.d.ts +32 -0
- package/lib/traefik/secureIngress.d.ts.map +1 -0
- package/lib/traefik/secureIngress.js +58 -0
- package/lib/traefik/secureIngress.js.map +1 -0
- package/lib/ubuntu/assets/init.sh +52 -0
- package/lib/ubuntu/deployment.d.ts +67 -0
- package/lib/ubuntu/deployment.d.ts.map +1 -0
- package/lib/ubuntu/deployment.js +230 -0
- package/lib/ubuntu/deployment.js.map +1 -0
- package/lib/ubuntu/index.d.ts +3 -0
- package/lib/ubuntu/index.d.ts.map +1 -0
- package/lib/ubuntu/index.js +6 -0
- package/lib/ubuntu/index.js.map +1 -0
- package/lib/unifi/controller.d.ts +52 -0
- package/lib/unifi/controller.d.ts.map +1 -0
- package/lib/unifi/controller.js +232 -0
- package/lib/unifi/controller.js.map +1 -0
- package/lib/unifi/index.d.ts +3 -0
- package/lib/unifi/index.d.ts.map +1 -0
- package/lib/unifi/index.js +6 -0
- package/lib/unifi/index.js.map +1 -0
- package/lib/velero/index.d.ts +3 -0
- package/lib/velero/index.d.ts.map +1 -0
- package/lib/velero/index.js +6 -0
- package/lib/velero/index.js.map +1 -0
- package/lib/velero/operator.d.ts +31 -0
- package/lib/velero/operator.d.ts.map +1 -0
- package/lib/velero/operator.js +148 -0
- package/lib/velero/operator.js.map +1 -0
- package/lib/wireguard/deployment.d.ts +82 -0
- package/lib/wireguard/deployment.d.ts.map +1 -0
- package/lib/wireguard/deployment.js +161 -0
- package/lib/wireguard/deployment.js.map +1 -0
- package/lib/wireguard/index.d.ts +3 -0
- package/lib/wireguard/index.d.ts.map +1 -0
- package/lib/wireguard/index.js +6 -0
- package/lib/wireguard/index.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
export interface BlockyArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Optional: Namespace
|
|
6
|
+
*/
|
|
7
|
+
namespace?: pulumi.Input<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Optional: Upstream nameservers
|
|
10
|
+
*/
|
|
11
|
+
nameservers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Optional: Blocklists
|
|
14
|
+
*/
|
|
15
|
+
blocklists?: pulumi.Input<{
|
|
16
|
+
[key: string]: pulumi.Input<pulumi.Input<string>[]>;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Optional: Hostname
|
|
20
|
+
*/
|
|
21
|
+
hostname?: pulumi.Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional: Number of replicas
|
|
24
|
+
*/
|
|
25
|
+
replicas?: pulumi.Input<number>;
|
|
26
|
+
}
|
|
27
|
+
export declare class Blocky extends ComponentResource {
|
|
28
|
+
private readonly helmRelease;
|
|
29
|
+
private readonly service;
|
|
30
|
+
readonly namespace: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a new Blocky resource.
|
|
33
|
+
* @param name The name of the Blocky resource.
|
|
34
|
+
* @param args A bag of arguments to control the Blocky creation.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: BlockyArgs, opts?: pulumi.ComponentResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../lib/blocky/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC;IACnF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,qBAAa,MAAO,SAAQ,iBAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;IAChD,SAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEjD;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CA6FnF"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Blocky = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const k8s = require("@pulumi/kubernetes");
|
|
6
|
+
const yaml = require("js-yaml");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const kubernetes = require("../kubernetes");
|
|
9
|
+
class Blocky extends common_1.ComponentResource {
|
|
10
|
+
helmRelease;
|
|
11
|
+
service;
|
|
12
|
+
namespace;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new Blocky resource.
|
|
15
|
+
* @param name The name of the Blocky resource.
|
|
16
|
+
* @param args A bag of arguments to control the Blocky creation.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name, args, opts) {
|
|
20
|
+
super("blocky", name, args, opts);
|
|
21
|
+
opts = this.opts(k8s.Provider);
|
|
22
|
+
if (args.replicas === undefined) {
|
|
23
|
+
args.replicas = 1;
|
|
24
|
+
}
|
|
25
|
+
this.namespace = args.namespace
|
|
26
|
+
? pulumi.output(args.namespace)
|
|
27
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
28
|
+
const metadata = {
|
|
29
|
+
name,
|
|
30
|
+
namespace: this.namespace,
|
|
31
|
+
labels: {
|
|
32
|
+
"app.kubernetes.io/name": "blocky",
|
|
33
|
+
"app.kubernetes.io/instance": name,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
this.helmRelease = new kubernetes.helm.v3.Release(name, {
|
|
37
|
+
name: metadata.name,
|
|
38
|
+
namespace: metadata.namespace,
|
|
39
|
+
repositoryOpts: { repo: "https://k8s-at-home.com/charts/" },
|
|
40
|
+
chart: "blocky",
|
|
41
|
+
values: {
|
|
42
|
+
fullnameOverride: name,
|
|
43
|
+
controller: { replicas: args.replicas },
|
|
44
|
+
config: pulumi.all([args.nameservers, args.blocklists]).apply(([nameservers, blocklists]) => yaml.dump({
|
|
45
|
+
logLevel: "warn",
|
|
46
|
+
logFormat: "json",
|
|
47
|
+
httpPort: 4000,
|
|
48
|
+
upstream: { default: nameservers ?? ["9.9.9.9", "149.112.112.112"] },
|
|
49
|
+
blocking: {
|
|
50
|
+
blackLists: blocklists,
|
|
51
|
+
clientGroupsBlock: { default: Object.keys(blocklists) },
|
|
52
|
+
blockType: "nxDomain",
|
|
53
|
+
},
|
|
54
|
+
caching: { prefetching: true },
|
|
55
|
+
prometheus: { enable: true, path: "/metrics" },
|
|
56
|
+
})),
|
|
57
|
+
metrics: { enabled: true, prometheusRule: { enabled: false } },
|
|
58
|
+
affinity: {
|
|
59
|
+
podAntiAffinity: {
|
|
60
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
61
|
+
{
|
|
62
|
+
weight: 100,
|
|
63
|
+
podAffinityTerm: {
|
|
64
|
+
labelSelector: {
|
|
65
|
+
matchExpressions: [
|
|
66
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: ["blocky"] },
|
|
67
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
topologyKey: "kubernetes.io/hostname",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
resources: {
|
|
77
|
+
requests: { memory: "64Mi" },
|
|
78
|
+
limits: { memory: "96Mi" },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
}, opts);
|
|
82
|
+
this.service = new kubernetes.v1.Service(`${name}-dns`, {
|
|
83
|
+
metadata: { ...metadata, name: pulumi.interpolate `${name}-dns` },
|
|
84
|
+
spec: {
|
|
85
|
+
selector: metadata.labels,
|
|
86
|
+
ports: [
|
|
87
|
+
{ name: "udp", protocol: "UDP", port: 53 },
|
|
88
|
+
{ name: "tcp", protocol: "TCP", port: 53 },
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
hostnames: args.hostname ? [args.hostname] : undefined,
|
|
92
|
+
}, { ...opts, dependsOn: [this.helmRelease] });
|
|
93
|
+
this.registerOutputs();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Blocky = Blocky;
|
|
97
|
+
//# sourceMappingURL=deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../../lib/blocky/deployment.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,0CAA0C;AAC1C,gCAAgC;AAChC,sCAA8C;AAC9C,4CAA4C;AAyB5C,MAAa,MAAO,SAAQ,0BAAiB;IAC1B,WAAW,CAA6B;IACxC,OAAO,CAAwB;IAChC,SAAS,CAAwB;IAEjD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAsC;QAChF,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAElC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE/B,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;SACnB;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS;YAC7B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAA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AAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;iBAC3C;aACF;YACD,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SACvD,EACD,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAC3C,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CACF;AAxGD,wBAwGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/blocky/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Blocky = void 0;
|
|
4
|
+
const deployment_1 = require("./deployment");
|
|
5
|
+
Object.defineProperty(exports, "Blocky", { enumerable: true, get: function () { return deployment_1.Blocky; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/blocky/index.ts"],"names":[],"mappings":";;;AAAA,6CAAkD;AAE7B,uFAFA,mBAAM,OAEA"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
export interface IssuerRefArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Issuer name
|
|
6
|
+
*/
|
|
7
|
+
name: pulumi.Input<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Optional: Kind of Issuer
|
|
10
|
+
*/
|
|
11
|
+
kind?: pulumi.Input<string>;
|
|
12
|
+
}
|
|
13
|
+
export interface PrivateKeyArgs {
|
|
14
|
+
/**
|
|
15
|
+
* Optional: Crypto algorithm
|
|
16
|
+
*/
|
|
17
|
+
algorithm?: pulumi.Input<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Optional: Key size
|
|
20
|
+
*/
|
|
21
|
+
size?: pulumi.Input<number>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional: Rotation policy
|
|
24
|
+
*/
|
|
25
|
+
rotationPolicy?: pulumi.Input<string>;
|
|
26
|
+
}
|
|
27
|
+
export interface PasswordSecretRefArgs {
|
|
28
|
+
/**
|
|
29
|
+
* Secret name
|
|
30
|
+
*/
|
|
31
|
+
name: pulumi.Input<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Secret key
|
|
34
|
+
*/
|
|
35
|
+
key: pulumi.Input<string>;
|
|
36
|
+
}
|
|
37
|
+
export interface Pkcs12Args {
|
|
38
|
+
/**
|
|
39
|
+
* Optional: Create a PKCS12 bundle
|
|
40
|
+
*/
|
|
41
|
+
create?: pulumi.Input<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Password secret
|
|
44
|
+
*/
|
|
45
|
+
passwordSecretRef: pulumi.Input<PasswordSecretRefArgs>;
|
|
46
|
+
}
|
|
47
|
+
export interface JksArgs {
|
|
48
|
+
/**
|
|
49
|
+
* Optional: Create a JKS bundle
|
|
50
|
+
*/
|
|
51
|
+
create?: pulumi.Input<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Password secret
|
|
54
|
+
*/
|
|
55
|
+
passwordSecretRef: pulumi.Input<PasswordSecretRefArgs>;
|
|
56
|
+
}
|
|
57
|
+
export interface KeystoresArgs {
|
|
58
|
+
/**
|
|
59
|
+
* Optional: PKCS12
|
|
60
|
+
*/
|
|
61
|
+
pkcs12?: pulumi.Input<Pkcs12Args>;
|
|
62
|
+
/**
|
|
63
|
+
* Optional: JKS
|
|
64
|
+
*/
|
|
65
|
+
jks?: pulumi.Input<JksArgs>;
|
|
66
|
+
}
|
|
67
|
+
export interface CertificateSpecArgs {
|
|
68
|
+
/**
|
|
69
|
+
* DNS names
|
|
70
|
+
*/
|
|
71
|
+
dnsNames: pulumi.Input<pulumi.Input<string>[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Issuer reference
|
|
74
|
+
*/
|
|
75
|
+
issuerRef: pulumi.Input<IssuerRefArgs>;
|
|
76
|
+
/**
|
|
77
|
+
* Optional: Common name
|
|
78
|
+
*/
|
|
79
|
+
commonName?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Optional: Validity duration
|
|
82
|
+
*/
|
|
83
|
+
duration?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Optional: Renew before expiration
|
|
86
|
+
*/
|
|
87
|
+
renewBefore?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Optional: Name of secret to store certificate
|
|
90
|
+
*/
|
|
91
|
+
secretName?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Optional: Private key options
|
|
94
|
+
*/
|
|
95
|
+
privateKey?: pulumi.Input<PrivateKeyArgs>;
|
|
96
|
+
/**
|
|
97
|
+
* Optional: Is a certification authority
|
|
98
|
+
*/
|
|
99
|
+
isCA?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Optional: Keystores
|
|
102
|
+
*/
|
|
103
|
+
keystores?: pulumi.Input<KeystoresArgs>;
|
|
104
|
+
}
|
|
105
|
+
export interface CertificateArgs {
|
|
106
|
+
/**
|
|
107
|
+
* Metadata for the certificate resource
|
|
108
|
+
*/
|
|
109
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
110
|
+
/**
|
|
111
|
+
* Spec for the certificate resource
|
|
112
|
+
*/
|
|
113
|
+
spec: pulumi.Input<CertificateSpecArgs>;
|
|
114
|
+
}
|
|
115
|
+
export declare class Certificate extends k8s.apiextensions.CustomResource {
|
|
116
|
+
readonly secretName: pulumi.Output<string>;
|
|
117
|
+
readonly hostnames: pulumi.Output<pulumi.Output<string>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a new certificate resource.
|
|
120
|
+
* @param name The name of the certificate resource.
|
|
121
|
+
* @param args A bag of arguments to control the certificate creation.
|
|
122
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
123
|
+
*/
|
|
124
|
+
constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions);
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=certificate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.d.ts","sourceRoot":"","sources":["../../../lib/certManager/certificate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CA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aAAa,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACzC;AAED,qBAAa,WAAY,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IAC/D,SAAgB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,SAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAElE;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAkCrF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Certificate = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const k8s = require("@pulumi/kubernetes");
|
|
6
|
+
class Certificate extends k8s.apiextensions.CustomResource {
|
|
7
|
+
secretName;
|
|
8
|
+
hostnames;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new certificate resource.
|
|
11
|
+
* @param name The name of the certificate resource.
|
|
12
|
+
* @param args A bag of arguments to control the certificate creation.
|
|
13
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
14
|
+
*/
|
|
15
|
+
constructor(name, args, opts) {
|
|
16
|
+
const spec = pulumi.all([args.spec]).apply(([specWrapped]) => {
|
|
17
|
+
const spec = specWrapped;
|
|
18
|
+
if (spec.secretName === undefined) {
|
|
19
|
+
spec.secretName = `${name}-tls`;
|
|
20
|
+
}
|
|
21
|
+
if (spec.privateKey === undefined) {
|
|
22
|
+
spec.privateKey = {};
|
|
23
|
+
}
|
|
24
|
+
spec.privateKey = pulumi.all([spec.privateKey]).apply(([privateKeyWrapped]) => {
|
|
25
|
+
const privateKey = privateKeyWrapped;
|
|
26
|
+
if (privateKey.rotationPolicy === undefined) {
|
|
27
|
+
privateKey.rotationPolicy = "Always";
|
|
28
|
+
}
|
|
29
|
+
return privateKey;
|
|
30
|
+
});
|
|
31
|
+
if (spec.issuerRef === undefined) {
|
|
32
|
+
spec.issuerRef = { name: "letsencrypt", kind: "ClusterIssuer" };
|
|
33
|
+
}
|
|
34
|
+
return spec;
|
|
35
|
+
});
|
|
36
|
+
super(name, { apiVersion: "cert-manager.io/v1", kind: "Certificate", metadata: args.metadata, spec }, opts);
|
|
37
|
+
this.hostnames = spec.dnsNames;
|
|
38
|
+
this.secretName = spec.secretName;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Certificate = Certificate;
|
|
42
|
+
//# sourceMappingURL=certificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../../../lib/certManager/certificate.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,0CAA0C;AA0H1C,MAAa,WAAY,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IAC/C,UAAU,CAAwB;IAClC,SAAS,CAAyC;IAElE;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAClF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE;YAC3D,MAAM,IAAI,GAAG,WAAkC,CAAC;YAEhD,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;gBACjC,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,MAAM,CAAC;aACjC;YAED,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;gBACjC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;aACtB;YAED,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE;gBAC5E,MAAM,UAAU,GAAG,iBAAmC,CAAC;gBAEvD,IAAI,UAAU,CAAC,cAAc,KAAK,SAAS,EAAE;oBAC3C,UAAU,CAAC,cAAc,GAAG,QAAQ,CAAC;iBACtC;gBAED,OAAO,UAAU,CAAC;YACpB,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBAChC,IAAI,CAAC,SAAS,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;aACjE;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;QAE5G,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAkD,CAAC;QACzE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAmC,CAAC;IAC7D,CAAC;CACF;AA5CD,kCA4CC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LetsEncryptCloudflareArgs, CertManagerArgs, CertManager } from "./operator";
|
|
2
|
+
import { IssuerRefArgs, PrivateKeyArgs, CertificateSpecArgs, CertificateArgs, Certificate } from "./certificate";
|
|
3
|
+
import { SelfSignedArgs, CaArgs, PrivateKeySecretRefArgs, SecretKeyRefArgs, CloudflareSolverArgs, DnsSolverArgs, SolverArgs, AcmeArgs, IssuerSpecArgs, IssuerArgs, Issuer, ClusterIssuer } from "./issuer";
|
|
4
|
+
export { LetsEncryptCloudflareArgs, CertManagerArgs, CertManager, SelfSignedArgs, CaArgs, PrivateKeySecretRefArgs, SecretKeyRefArgs, CloudflareSolverArgs, DnsSolverArgs, SolverArgs, AcmeArgs, IssuerSpecArgs, IssuerArgs, Issuer, ClusterIssuer, IssuerRefArgs, PrivateKeyArgs, CertificateSpecArgs, CertificateArgs, Certificate, };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/certManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EACL,cAAc,EACd,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,cAAc,EACd,UAAU,EACV,MAAM,EACN,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,WAAW,EACX,cAAc,EACd,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,cAAc,EACd,UAAU,EACV,MAAM,EACN,aAAa,EACb,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Certificate = exports.ClusterIssuer = exports.Issuer = exports.CertManager = void 0;
|
|
4
|
+
const operator_1 = require("./operator");
|
|
5
|
+
Object.defineProperty(exports, "CertManager", { enumerable: true, get: function () { return operator_1.CertManager; } });
|
|
6
|
+
const certificate_1 = require("./certificate");
|
|
7
|
+
Object.defineProperty(exports, "Certificate", { enumerable: true, get: function () { return certificate_1.Certificate; } });
|
|
8
|
+
const issuer_1 = require("./issuer");
|
|
9
|
+
Object.defineProperty(exports, "Issuer", { enumerable: true, get: function () { return issuer_1.Issuer; } });
|
|
10
|
+
Object.defineProperty(exports, "ClusterIssuer", { enumerable: true, get: function () { return issuer_1.ClusterIssuer; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/certManager/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqF;AAoBnF,4FApBmD,sBAAW,OAoBnD;AAnBb,+CAAiH;AAoC/G,4FApC4E,yBAAW,OAoC5E;AAnCb,qCAakB;AAgBhB,uFAlBA,eAAM,OAkBA;AACN,8FAlBA,sBAAa,OAkBA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
export interface SelfSignedArgs {
|
|
4
|
+
}
|
|
5
|
+
export interface CaArgs {
|
|
6
|
+
/**
|
|
7
|
+
* Optional: Name of secret to store certificate
|
|
8
|
+
*/
|
|
9
|
+
secretName?: pulumi.Input<string>;
|
|
10
|
+
}
|
|
11
|
+
export interface PrivateKeySecretRefArgs {
|
|
12
|
+
/**
|
|
13
|
+
* Name of secret
|
|
14
|
+
*/
|
|
15
|
+
name: pulumi.Input<string>;
|
|
16
|
+
}
|
|
17
|
+
export interface SecretKeyRefArgs {
|
|
18
|
+
/**
|
|
19
|
+
* Name of secret
|
|
20
|
+
*/
|
|
21
|
+
name: pulumi.Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Key of secret
|
|
24
|
+
*/
|
|
25
|
+
key: pulumi.Input<string>;
|
|
26
|
+
}
|
|
27
|
+
export interface CloudflareSolverArgs {
|
|
28
|
+
/**
|
|
29
|
+
* E-Mail
|
|
30
|
+
*/
|
|
31
|
+
email: pulumi.Input<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Reference for secret containing the API token
|
|
34
|
+
*/
|
|
35
|
+
apiTokenSecretRef: pulumi.Input<SecretKeyRefArgs>;
|
|
36
|
+
}
|
|
37
|
+
export interface DnsSolverArgs {
|
|
38
|
+
/**
|
|
39
|
+
* Cloudflare DNS solver
|
|
40
|
+
*/
|
|
41
|
+
cloudflare?: pulumi.Input<CloudflareSolverArgs>;
|
|
42
|
+
}
|
|
43
|
+
export interface SolverArgs {
|
|
44
|
+
/**
|
|
45
|
+
* DNS solver
|
|
46
|
+
*/
|
|
47
|
+
dns01?: pulumi.Input<DnsSolverArgs>;
|
|
48
|
+
}
|
|
49
|
+
export interface AcmeArgs {
|
|
50
|
+
/**
|
|
51
|
+
* E-Mail
|
|
52
|
+
*/
|
|
53
|
+
email: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Server
|
|
56
|
+
*/
|
|
57
|
+
server: pulumi.Input<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Reference to private key secret
|
|
60
|
+
*/
|
|
61
|
+
privateKeySecretRef: pulumi.Input<PrivateKeySecretRefArgs>;
|
|
62
|
+
/**
|
|
63
|
+
* Solvers
|
|
64
|
+
*/
|
|
65
|
+
solvers: pulumi.Input<pulumi.Input<SolverArgs>[]>;
|
|
66
|
+
}
|
|
67
|
+
export interface IssuerSpecArgs {
|
|
68
|
+
/**
|
|
69
|
+
* Optional: Self-Signed issuer
|
|
70
|
+
*/
|
|
71
|
+
selfSigned?: pulumi.Input<SelfSignedArgs>;
|
|
72
|
+
/**
|
|
73
|
+
* Optional: CA issuer
|
|
74
|
+
*/
|
|
75
|
+
ca?: pulumi.Input<CaArgs>;
|
|
76
|
+
/**
|
|
77
|
+
* Optional: ACME issuer
|
|
78
|
+
*/
|
|
79
|
+
acme?: pulumi.Input<AcmeArgs>;
|
|
80
|
+
}
|
|
81
|
+
export interface IssuerArgs {
|
|
82
|
+
/**
|
|
83
|
+
* Metadata for the Issuer resource
|
|
84
|
+
*/
|
|
85
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
86
|
+
/**
|
|
87
|
+
* Spec for the Issuer resource
|
|
88
|
+
*/
|
|
89
|
+
spec: pulumi.Input<IssuerSpecArgs>;
|
|
90
|
+
}
|
|
91
|
+
export declare class Issuer extends k8s.apiextensions.CustomResource {
|
|
92
|
+
/**
|
|
93
|
+
* Create a new issuer resource.
|
|
94
|
+
* @param name The name of the issuer resource.
|
|
95
|
+
* @param args A bag of arguments to control the issuer creation.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: IssuerArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
export declare class ClusterIssuer extends k8s.apiextensions.CustomResource {
|
|
101
|
+
/**
|
|
102
|
+
* Create a new cluster issuer resource.
|
|
103
|
+
* @param name The name of the cluster issuer resource.
|
|
104
|
+
* @param args A bag of arguments to control the cluster issuer creation.
|
|
105
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
106
|
+
*/
|
|
107
|
+
constructor(name: string, args: IssuerArgs, opts?: pulumi.CustomResourceOptions);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=issuer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issuer.d.ts","sourceRoot":"","sources":["../../../lib/certManager/issuer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC;AAED,MAAM,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IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;CACpC;AAED,qBAAa,MAAO,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IAC1D;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAYhF;AAED,qBAAa,aAAc,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACjE;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAYhF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterIssuer = exports.Issuer = void 0;
|
|
4
|
+
const k8s = require("@pulumi/kubernetes");
|
|
5
|
+
class Issuer extends k8s.apiextensions.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new issuer resource.
|
|
8
|
+
* @param name The name of the issuer resource.
|
|
9
|
+
* @param args A bag of arguments to control the issuer creation.
|
|
10
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
11
|
+
*/
|
|
12
|
+
constructor(name, args, opts) {
|
|
13
|
+
super(name, {
|
|
14
|
+
apiVersion: "cert-manager.io/v1",
|
|
15
|
+
kind: "Issuer",
|
|
16
|
+
metadata: args.metadata,
|
|
17
|
+
spec: args.spec,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Issuer = Issuer;
|
|
22
|
+
class ClusterIssuer extends k8s.apiextensions.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Create a new cluster issuer resource.
|
|
25
|
+
* @param name The name of the cluster issuer resource.
|
|
26
|
+
* @param args A bag of arguments to control the cluster issuer creation.
|
|
27
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
28
|
+
*/
|
|
29
|
+
constructor(name, args, opts) {
|
|
30
|
+
super(name, {
|
|
31
|
+
apiVersion: "cert-manager.io/v1",
|
|
32
|
+
kind: "ClusterIssuer",
|
|
33
|
+
metadata: args.metadata,
|
|
34
|
+
spec: args.spec,
|
|
35
|
+
}, opts);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.ClusterIssuer = ClusterIssuer;
|
|
39
|
+
//# sourceMappingURL=issuer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issuer.js","sourceRoot":"","sources":["../../../lib/certManager/issuer.ts"],"names":[],"mappings":";;;AACA,0CAA0C;AAmG1C,MAAa,MAAO,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IAC1D;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAmC;QAC7E,KAAK,CACH,IAAI,EACJ;YACE,UAAU,EAAE,oBAAoB;YAChC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,EACD,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAnBD,wBAmBC;AAED,MAAa,aAAc,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACjE;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAmC;QAC7E,KAAK,CACH,IAAI,EACJ;YACE,UAAU,EAAE,oBAAoB;YAChC,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,EACD,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAnBD,sCAmBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
export interface LetsEncryptCloudflareArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Token
|
|
6
|
+
*/
|
|
7
|
+
token: pulumi.Input<string>;
|
|
8
|
+
/**
|
|
9
|
+
* E-Mail
|
|
10
|
+
*/
|
|
11
|
+
email: pulumi.Input<string>;
|
|
12
|
+
}
|
|
13
|
+
export interface CertManagerArgs {
|
|
14
|
+
/**
|
|
15
|
+
* Optional: Namespace
|
|
16
|
+
*/
|
|
17
|
+
namespace?: pulumi.Input<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Optional: Number of replicas
|
|
20
|
+
*/
|
|
21
|
+
replicas?: pulumi.Input<number>;
|
|
22
|
+
/**
|
|
23
|
+
* Optional: Let's Encrypt Cloudflare configuration
|
|
24
|
+
*/
|
|
25
|
+
letsencryptCloudflare?: pulumi.Input<LetsEncryptCloudflareArgs>;
|
|
26
|
+
}
|
|
27
|
+
export declare class CertManager extends ComponentResource {
|
|
28
|
+
private readonly helmRelease;
|
|
29
|
+
readonly namespace: pulumi.Output<string>;
|
|
30
|
+
readonly clusterIssuers: pulumi.Output<{
|
|
31
|
+
[key: string]: pulumi.Output<string>;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a new cert-manager resource.
|
|
35
|
+
* @param name The name of cert-manager resource.
|
|
36
|
+
* @param args A bag of arguments to control the cert-manager creation.
|
|
37
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string, args: CertManagerArgs, opts?: pulumi.ComponentResourceOptions);
|
|
40
|
+
private selfSignedIssuer;
|
|
41
|
+
private letsencryptCloudflareIssuer;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../lib/certManager/operator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACjE;AAED,qBAAa,WAAY,SAAQ,iBAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAC9C,SAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjD,SAAgB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC,CAAC;IAExF;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;IA4IvF,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,2BAA2B;CA4CpC"}
|