@ydkn/pulumi-components 0.4.4 → 0.4.6
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.ts → index.d.ts} +5 -40
- package/index.d.ts.map +1 -0
- package/index.js +105 -0
- package/index.js.map +1 -0
- package/lib/avahi/deployment.d.ts +26 -0
- package/lib/avahi/deployment.d.ts.map +1 -0
- package/lib/avahi/deployment.js +165 -0
- package/lib/avahi/deployment.js.map +1 -0
- package/lib/avahi/{index.ts → index.d.ts} +1 -1
- 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 +37 -0
- package/lib/avahi/service.d.ts.map +1 -0
- package/lib/avahi/service.js +93 -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 +50 -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 +72 -0
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/{index.ts → index.d.ts} +1 -1
- 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 +25 -0
- package/lib/blocky/deployment.d.ts.map +1 -0
- package/lib/blocky/deployment.js +130 -0
- package/lib/blocky/deployment.js.map +1 -0
- package/lib/blocky/{index.ts → index.d.ts} +1 -1
- 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 +65 -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 +62 -0
- package/lib/certManager/issuer.js.map +1 -0
- package/lib/certManager/operator.d.ts +29 -0
- package/lib/certManager/operator.d.ts.map +1 -0
- package/lib/certManager/operator.js +209 -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 +85 -0
- package/lib/common/componentResource.js.map +1 -0
- package/lib/common/{index.ts → index.d.ts} +1 -2
- 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/cups/avahiService.d.ts +20 -0
- package/lib/cups/avahiService.d.ts.map +1 -0
- package/lib/cups/avahiService.js +79 -0
- package/lib/cups/avahiService.js.map +1 -0
- package/lib/cups/deployment.d.ts +38 -0
- package/lib/cups/deployment.d.ts.map +1 -0
- package/lib/cups/deployment.js +166 -0
- package/lib/cups/deployment.js.map +1 -0
- package/lib/cups/{index.ts → index.d.ts} +1 -1
- package/lib/cups/index.d.ts.map +1 -0
- package/lib/cups/index.js +8 -0
- package/lib/cups/index.js.map +1 -0
- package/lib/devcontainer/deployment.d.ts +39 -0
- package/lib/devcontainer/deployment.d.ts.map +1 -0
- package/lib/devcontainer/deployment.js +216 -0
- package/lib/devcontainer/deployment.js.map +1 -0
- package/lib/devcontainer/{index.ts → index.d.ts} +1 -1
- package/lib/devcontainer/index.d.ts.map +1 -0
- package/lib/devcontainer/index.js +6 -0
- package/lib/devcontainer/index.js.map +1 -0
- package/lib/dhcpd/deployment.d.ts +28 -0
- package/lib/dhcpd/deployment.d.ts.map +1 -0
- package/lib/dhcpd/deployment.js +150 -0
- package/lib/dhcpd/deployment.js.map +1 -0
- package/lib/dhcpd/{index.ts → index.d.ts} +1 -1
- package/lib/dhcpd/index.d.ts.map +1 -0
- package/lib/dhcpd/index.js +6 -0
- package/lib/dhcpd/index.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 +40 -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 +135 -0
- package/lib/externalDns/operator.js.map +1 -0
- package/lib/fcos/config.d.ts +63 -0
- package/lib/fcos/config.d.ts.map +1 -0
- package/lib/fcos/config.js +191 -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 +80 -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/deployment.d.ts +40 -0
- package/lib/freeradius/deployment.d.ts.map +1 -0
- package/lib/freeradius/deployment.js +199 -0
- package/lib/freeradius/deployment.js.map +1 -0
- package/lib/freeradius/{index.ts → index.d.ts} +1 -1
- 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.ts → index.d.ts} +2 -13
- package/lib/gitlab/index.d.ts.map +1 -0
- package/lib/gitlab/index.js +12 -0
- package/lib/gitlab/index.js.map +1 -0
- package/lib/gitlab/project.d.ts +18 -0
- package/lib/gitlab/project.d.ts.map +1 -0
- package/lib/gitlab/project.js +139 -0
- package/lib/gitlab/project.js.map +1 -0
- package/lib/gitlab/renovate.d.ts +23 -0
- package/lib/gitlab/renovate.d.ts.map +1 -0
- package/lib/gitlab/renovate.js +100 -0
- package/lib/gitlab/renovate.js.map +1 -0
- package/lib/gitlab/runners/cleanup.d.ts +20 -0
- package/lib/gitlab/runners/cleanup.d.ts.map +1 -0
- package/lib/gitlab/runners/cleanup.js +109 -0
- package/lib/gitlab/runners/cleanup.js.map +1 -0
- package/lib/gitlab/runners/{index.ts → index.d.ts} +1 -1
- 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 +30 -0
- package/lib/gitlab/runners/runner.d.ts.map +1 -0
- package/lib/gitlab/runners/runner.js +112 -0
- package/lib/gitlab/runners/runner.js.map +1 -0
- package/lib/gitlab/runners/runners.d.ts +21 -0
- package/lib/gitlab/runners/runners.d.ts.map +1 -0
- package/lib/gitlab/runners/runners.js +59 -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 +396 -0
- package/lib/grafana/agent.js.map +1 -0
- package/lib/grafana/dashboard.d.ts +17 -0
- package/lib/grafana/dashboard.d.ts.map +1 -0
- package/lib/grafana/dashboard.js +53 -0
- package/lib/grafana/dashboard.js.map +1 -0
- package/lib/grafana/datasource.d.ts +20 -0
- package/lib/grafana/datasource.d.ts.map +1 -0
- package/lib/grafana/datasource.js +71 -0
- package/lib/grafana/datasource.js.map +1 -0
- package/lib/grafana/deployment.d.ts +21 -0
- package/lib/grafana/deployment.d.ts.map +1 -0
- package/lib/grafana/deployment.js +85 -0
- package/lib/grafana/deployment.js.map +1 -0
- package/lib/grafana/{index.ts → index.d.ts} +2 -13
- package/lib/grafana/index.d.ts.map +1 -0
- package/lib/grafana/index.js +12 -0
- package/lib/grafana/index.js.map +1 -0
- package/lib/hcloud/cluster.d.ts +63 -0
- package/lib/hcloud/cluster.d.ts.map +1 -0
- package/lib/hcloud/cluster.js +344 -0
- package/lib/hcloud/cluster.js.map +1 -0
- package/lib/hcloud/{index.ts → index.d.ts} +1 -1
- 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 +27 -0
- package/lib/hcloud/kubernetes.d.ts.map +1 -0
- package/lib/hcloud/kubernetes.js +211 -0
- package/lib/hcloud/kubernetes.js.map +1 -0
- package/lib/hcloud/wireguard.d.ts +24 -0
- package/lib/hcloud/wireguard.d.ts.map +1 -0
- package/lib/hcloud/wireguard.js +126 -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 +206 -0
- package/lib/k0s/cluster.js.map +1 -0
- package/lib/k0s/{index.ts → index.d.ts} +1 -1
- 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/kubeStateMetrics/deployment.d.ts +20 -0
- package/lib/kubeStateMetrics/deployment.d.ts.map +1 -0
- package/lib/kubeStateMetrics/deployment.js +81 -0
- package/lib/kubeStateMetrics/deployment.js.map +1 -0
- package/lib/kubeStateMetrics/{index.ts → index.d.ts} +1 -1
- package/lib/kubeStateMetrics/index.d.ts.map +1 -0
- package/lib/kubeStateMetrics/index.js +6 -0
- package/lib/kubeStateMetrics/index.js.map +1 -0
- package/lib/kubemq/assets/dashboard.json +5431 -0
- package/lib/kubemq/cluster.d.ts +29 -0
- package/lib/kubemq/cluster.d.ts.map +1 -0
- package/lib/kubemq/cluster.js +77 -0
- package/lib/kubemq/cluster.js.map +1 -0
- package/lib/{postgresql/index.ts → kubemq/index.d.ts} +1 -1
- package/lib/kubemq/index.d.ts.map +1 -0
- package/lib/kubemq/index.js +8 -0
- package/lib/kubemq/index.js.map +1 -0
- package/lib/kubemq/operator.d.ts +18 -0
- package/lib/kubemq/operator.d.ts.map +1 -0
- package/lib/kubemq/operator.js +66 -0
- package/lib/kubemq/operator.js.map +1 -0
- package/lib/kubernetes/helm/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/helm/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/index.js +29 -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 +69 -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 +52 -0
- package/lib/kubernetes/helm/v3/helpers.js.map +1 -0
- package/lib/kubernetes/helm/v3/{index.ts → index.d.ts} +1 -1
- 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 +41 -0
- package/lib/kubernetes/helm/v3/release.js.map +1 -0
- package/lib/kubernetes/{index.ts → index.d.ts} +1 -1
- package/lib/kubernetes/index.d.ts.map +1 -0
- package/lib/kubernetes/index.js +33 -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.ts → index.d.ts} +1 -1
- 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.ts → index.d.ts} +2 -12
- 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 +46 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.js +120 -0
- package/lib/kubernetes/v1/nfsVolume.js.map +1 -0
- package/lib/kubernetes/v1/pullSecret.d.ts +18 -0
- package/lib/kubernetes/v1/pullSecret.d.ts.map +1 -0
- package/lib/kubernetes/v1/pullSecret.js +50 -0
- package/lib/kubernetes/v1/pullSecret.js.map +1 -0
- package/lib/kubernetes/v1/service.d.ts +19 -0
- package/lib/kubernetes/v1/service.d.ts.map +1 -0
- package/lib/kubernetes/v1/service.js +66 -0
- package/lib/kubernetes/v1/service.js.map +1 -0
- package/lib/localPathProvisioner/deployment.d.ts +23 -0
- package/lib/localPathProvisioner/deployment.d.ts.map +1 -0
- package/lib/localPathProvisioner/deployment.js +97 -0
- package/lib/localPathProvisioner/deployment.js.map +1 -0
- package/lib/localPathProvisioner/{index.ts → index.d.ts} +1 -1
- package/lib/localPathProvisioner/index.d.ts.map +1 -0
- package/lib/localPathProvisioner/index.js +6 -0
- package/lib/localPathProvisioner/index.js.map +1 -0
- package/lib/loki/deployment.d.ts +25 -0
- package/lib/loki/deployment.d.ts.map +1 -0
- package/lib/loki/deployment.js +125 -0
- package/lib/loki/deployment.js.map +1 -0
- package/lib/loki/{index.ts → index.d.ts} +1 -1
- package/lib/loki/index.d.ts.map +1 -0
- package/lib/loki/index.js +6 -0
- package/lib/loki/index.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 +110 -0
- package/lib/metallb/controller.js.map +1 -0
- package/lib/metallb/{index.ts → index.d.ts} +2 -11
- 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 +45 -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 +45 -0
- package/lib/metallb/l2Advertisement.js.map +1 -0
- package/lib/mongodb/cluster.d.ts +47 -0
- package/lib/mongodb/cluster.d.ts.map +1 -0
- package/lib/mongodb/cluster.js +260 -0
- package/lib/mongodb/cluster.js.map +1 -0
- package/lib/mongodb/index.d.ts +4 -0
- package/lib/mongodb/index.d.ts.map +1 -0
- package/lib/mongodb/index.js +8 -0
- package/lib/mongodb/index.js.map +1 -0
- package/lib/mongodb/operator.d.ts +17 -0
- package/lib/mongodb/operator.d.ts.map +1 -0
- package/lib/mongodb/operator.js +67 -0
- package/lib/mongodb/operator.js.map +1 -0
- package/lib/node/{index.ts → index.d.ts} +1 -1
- 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 +23 -0
- package/lib/node/kubernetes.d.ts.map +1 -0
- package/lib/node/kubernetes.js +112 -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 +33 -0
- package/lib/openldap/deployment.d.ts.map +1 -0
- package/lib/openldap/deployment.js +200 -0
- package/lib/openldap/deployment.js.map +1 -0
- package/lib/openldap/{index.ts → index.d.ts} +1 -1
- 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.ts → index.d.ts} +1 -1
- 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 +42 -0
- package/lib/plex/mediaServer.d.ts.map +1 -0
- package/lib/plex/mediaServer.js +217 -0
- package/lib/plex/mediaServer.js.map +1 -0
- package/lib/plex/playlists.d.ts +31 -0
- package/lib/plex/playlists.d.ts.map +1 -0
- package/lib/plex/playlists.js +112 -0
- package/lib/plex/playlists.js.map +1 -0
- package/lib/postgresql/cluster.d.ts +37 -0
- package/lib/postgresql/cluster.d.ts.map +1 -0
- package/lib/postgresql/cluster.js +64 -0
- package/lib/postgresql/cluster.js.map +1 -0
- package/lib/postgresql/index.d.ts +4 -0
- package/lib/postgresql/index.d.ts.map +1 -0
- package/lib/postgresql/index.js +8 -0
- package/lib/postgresql/index.js.map +1 -0
- package/lib/postgresql/operator.d.ts +18 -0
- package/lib/postgresql/operator.d.ts.map +1 -0
- package/lib/postgresql/operator.js +83 -0
- package/lib/postgresql/operator.js.map +1 -0
- package/lib/prometheus/index.d.ts +5 -0
- package/lib/prometheus/index.d.ts.map +1 -0
- package/lib/prometheus/index.js +10 -0
- package/lib/prometheus/index.js.map +1 -0
- package/lib/prometheus/monitor.d.ts +12 -0
- package/lib/prometheus/monitor.d.ts.map +1 -0
- package/lib/prometheus/monitor.js +3 -0
- package/lib/prometheus/monitor.js.map +1 -0
- package/lib/prometheus/operator.d.ts +38 -0
- package/lib/prometheus/operator.d.ts.map +1 -0
- package/lib/prometheus/operator.js +239 -0
- package/lib/prometheus/operator.js.map +1 -0
- package/lib/prometheus/podMonitor.d.ts +27 -0
- package/lib/prometheus/podMonitor.d.ts.map +1 -0
- package/lib/prometheus/podMonitor.js +40 -0
- package/lib/prometheus/podMonitor.js.map +1 -0
- package/lib/prometheus/serviceMonitor.d.ts +37 -0
- package/lib/prometheus/serviceMonitor.d.ts.map +1 -0
- package/lib/prometheus/serviceMonitor.js +40 -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 +215 -0
- package/lib/raspberrypi/cluster.js.map +1 -0
- package/lib/raspberrypi/{index.ts → index.d.ts} +1 -1
- 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/redis/index.d.ts +4 -0
- package/lib/redis/index.d.ts.map +1 -0
- package/lib/redis/index.js +8 -0
- package/lib/redis/index.js.map +1 -0
- package/lib/redis/operator.d.ts +17 -0
- package/lib/redis/operator.d.ts.map +1 -0
- package/lib/redis/operator.js +62 -0
- package/lib/redis/operator.js.map +1 -0
- package/lib/redis/standalone.d.ts +17 -0
- package/lib/redis/standalone.d.ts.map +1 -0
- package/lib/redis/standalone.js +87 -0
- package/lib/redis/standalone.js.map +1 -0
- package/lib/rethinkdb/deployment.d.ts +36 -0
- package/lib/rethinkdb/deployment.d.ts.map +1 -0
- package/lib/rethinkdb/deployment.js +335 -0
- package/lib/rethinkdb/deployment.js.map +1 -0
- package/lib/rethinkdb/{index.ts → index.d.ts} +1 -1
- 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 +79 -0
- package/lib/rook/blockPool.js.map +1 -0
- package/lib/rook/cluster.d.ts +55 -0
- package/lib/rook/cluster.d.ts.map +1 -0
- package/lib/rook/cluster.js +133 -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 +133 -0
- package/lib/rook/filesystem.js.map +1 -0
- package/lib/rook/{index.ts → index.d.ts} +2 -15
- 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 +186 -0
- package/lib/rook/operator.js.map +1 -0
- package/lib/samba/avahiService.d.ts +20 -0
- package/lib/samba/avahiService.d.ts.map +1 -0
- package/lib/samba/avahiService.js +58 -0
- package/lib/samba/avahiService.js.map +1 -0
- package/lib/samba/deployment.d.ts +40 -0
- package/lib/samba/deployment.d.ts.map +1 -0
- package/lib/samba/deployment.js +251 -0
- package/lib/samba/deployment.js.map +1 -0
- package/lib/samba/{index.ts → index.d.ts} +1 -1
- package/lib/samba/index.d.ts.map +1 -0
- package/lib/samba/index.js +11 -0
- package/lib/samba/index.js.map +1 -0
- package/lib/samba/volumes.d.ts +29 -0
- package/lib/samba/volumes.d.ts.map +1 -0
- package/lib/samba/volumes.js +61 -0
- package/lib/samba/volumes.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 +139 -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 +136 -0
- package/lib/ssh/file.js.map +1 -0
- package/lib/ssh/{index.ts → index.d.ts} +1 -1
- 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 +154 -0
- package/lib/torproxy/deployment.js.map +1 -0
- package/lib/torproxy/{index.ts → index.d.ts} +1 -1
- 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 +29 -0
- package/lib/traefik/controller.d.ts.map +1 -0
- package/lib/traefik/controller.js +189 -0
- package/lib/traefik/controller.js.map +1 -0
- package/lib/traefik/{index.ts → index.d.ts} +1 -1
- 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 +45 -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 +81 -0
- package/lib/traefik/secureIngress.js.map +1 -0
- package/lib/ubuntu/deployment.d.ts +39 -0
- package/lib/ubuntu/deployment.d.ts.map +1 -0
- package/lib/ubuntu/deployment.js +236 -0
- package/lib/ubuntu/deployment.js.map +1 -0
- package/lib/ubuntu/{index.ts → index.d.ts} +1 -1
- 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 +28 -0
- package/lib/unifi/controller.d.ts.map +1 -0
- package/lib/unifi/controller.js +217 -0
- package/lib/unifi/controller.js.map +1 -0
- package/lib/unifi/{index.ts → index.d.ts} +1 -1
- 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.ts → index.d.ts} +1 -1
- 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 +171 -0
- package/lib/velero/operator.js.map +1 -0
- package/lib/wireguard/deployment.d.ts +42 -0
- package/lib/wireguard/deployment.d.ts.map +1 -0
- package/lib/wireguard/deployment.js +139 -0
- package/lib/wireguard/deployment.js.map +1 -0
- package/lib/wireguard/{index.ts → index.d.ts} +1 -1
- 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 +16 -17
- package/.eslintrc.json +0 -14
- package/.gitlab-ci.yml +0 -73
- package/.prettierrc +0 -3
- package/lib/avahi/deployment.ts +0 -171
- package/lib/avahi/service.ts +0 -118
- package/lib/aws/accessKey.ts +0 -40
- package/lib/aws/bucket.ts +0 -71
- package/lib/blocky/deployment.ts +0 -134
- package/lib/certManager/certificate.ts +0 -168
- package/lib/certManager/index.ts +0 -39
- package/lib/certManager/issuer.ts +0 -141
- package/lib/certManager/operator.ts +0 -244
- package/lib/common/componentResource.ts +0 -78
- package/lib/common/types.ts +0 -3
- package/lib/cups/avahiService.ts +0 -66
- package/lib/cups/deployment.ts +0 -199
- package/lib/devcontainer/deployment.ts +0 -253
- package/lib/dhcpd/deployment.ts +0 -164
- package/lib/externalDns/dnsEndpoint.ts +0 -70
- package/lib/externalDns/index.ts +0 -18
- package/lib/externalDns/operator.ts +0 -165
- package/lib/fcos/config.ts +0 -237
- package/lib/fcos/host.ts +0 -91
- package/lib/fcos/index.ts +0 -27
- package/lib/freeradius/deployment.ts +0 -244
- package/lib/gitlab/project.ts +0 -148
- package/lib/gitlab/renovate.ts +0 -98
- package/lib/gitlab/runners/cleanup.ts +0 -104
- package/lib/gitlab/runners/runner.ts +0 -122
- package/lib/gitlab/runners/runners.ts +0 -49
- package/lib/grafana/agent.ts +0 -449
- package/lib/grafana/dashboard.ts +0 -38
- package/lib/grafana/datasource.ts +0 -59
- package/lib/grafana/deployment.ts +0 -78
- package/lib/hcloud/cluster.ts +0 -500
- package/lib/hcloud/kubernetes.ts +0 -237
- package/lib/hcloud/wireguard.ts +0 -155
- package/lib/k0s/cluster.ts +0 -264
- package/lib/kubeStateMetrics/deployment.ts +0 -60
- package/lib/kubernetes/helm/v3/chart.ts +0 -79
- package/lib/kubernetes/helm/v3/helpers.ts +0 -32
- package/lib/kubernetes/helm/v3/release.ts +0 -17
- package/lib/kubernetes/transformations/filter.ts +0 -43
- package/lib/kubernetes/transformations/metadataNamespace.ts +0 -25
- package/lib/kubernetes/transformations/removeCrdDescriptions.ts +0 -78
- package/lib/kubernetes/transformations/v1beta1Deprecations.ts +0 -60
- package/lib/kubernetes/v1/nfsVolume.ts +0 -145
- package/lib/kubernetes/v1/pullSecret.ts +0 -37
- package/lib/kubernetes/v1/service.ts +0 -58
- package/lib/localPathProvisioner/deployment.ts +0 -88
- package/lib/loki/deployment.ts +0 -122
- package/lib/metallb/controller.ts +0 -96
- package/lib/metallb/ipAddressPool.ts +0 -33
- package/lib/metallb/l2Advertisement.ts +0 -34
- package/lib/node/kubernetes.ts +0 -129
- package/lib/node/node.ts +0 -17
- package/lib/openldap/deployment.ts +0 -226
- package/lib/plex/mediaServer.ts +0 -265
- package/lib/plex/playlists.ts +0 -123
- package/lib/postgresql/cluster.ts +0 -61
- package/lib/postgresql/operator.ts +0 -70
- package/lib/prometheus/index.ts +0 -23
- package/lib/prometheus/monitor.ts +0 -13
- package/lib/prometheus/operator.ts +0 -264
- package/lib/prometheus/podMonitor.ts +0 -32
- package/lib/prometheus/serviceMonitor.ts +0 -43
- package/lib/raspberrypi/cluster.ts +0 -279
- package/lib/rethinkdb/deployment.ts +0 -424
- package/lib/rook/blockPool.ts +0 -80
- package/lib/rook/cluster.ts +0 -168
- package/lib/rook/filesystem.ts +0 -140
- package/lib/rook/operator.ts +0 -175
- package/lib/samba/avahiService.ts +0 -44
- package/lib/samba/deployment.ts +0 -305
- package/lib/samba/volumes.ts +0 -70
- package/lib/ssh/exec.ts +0 -162
- package/lib/ssh/file.ts +0 -165
- package/lib/ssh/types.ts +0 -20
- package/lib/torproxy/deployment.ts +0 -165
- package/lib/traefik/controller.ts +0 -207
- package/lib/traefik/middleware.ts +0 -37
- package/lib/traefik/secureIngress.ts +0 -81
- package/lib/ubuntu/deployment.ts +0 -275
- package/lib/unifi/controller.ts +0 -234
- package/lib/velero/operator.ts +0 -182
- package/lib/wireguard/deployment.ts +0 -168
- package/renovate.json +0 -4
- package/tsconfig.json +0 -21
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as aws from "@pulumi/aws";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import { AccessKey } from "./accessKey";
|
|
5
|
+
export interface BucketArgs extends aws.s3.BucketArgs {
|
|
6
|
+
/**
|
|
7
|
+
* Optional: Name
|
|
8
|
+
*/
|
|
9
|
+
name?: pulumi.Input<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Optional: Protect critical resources
|
|
12
|
+
*/
|
|
13
|
+
protect?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class Bucket extends ComponentResource {
|
|
16
|
+
private readonly id;
|
|
17
|
+
readonly bucket: aws.s3.Bucket;
|
|
18
|
+
readonly accessKey: AccessKey;
|
|
19
|
+
readonly userPolicy: aws.iam.UserPolicy;
|
|
20
|
+
/**
|
|
21
|
+
* Create a new AWS bucket resource.
|
|
22
|
+
* @param name The name of the AWS bucket resource.
|
|
23
|
+
* @param args A bag of arguments to control the AWS bucket creation.
|
|
24
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
25
|
+
*/
|
|
26
|
+
constructor(name: string, args: BucketArgs, opts?: pulumi.ComponentResourceOptions);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=bucket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../../lib/aws/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,UAAW,SAAQ,GAAG,CAAC,EAAE,CAAC,UAAU;IACnD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,MAAO,SAAQ,iBAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAwB;IAC3C,SAAgB,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC;IACtC,SAAgB,SAAS,EAAE,SAAS,CAAC;IACrC,SAAgB,UAAU,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC;IAE/C;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CAyCnF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Bucket = void 0;
|
|
27
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
28
|
+
const random = __importStar(require("@pulumi/random"));
|
|
29
|
+
const aws = __importStar(require("@pulumi/aws"));
|
|
30
|
+
const common_1 = require("../common");
|
|
31
|
+
const accessKey_1 = require("./accessKey");
|
|
32
|
+
class Bucket extends common_1.ComponentResource {
|
|
33
|
+
id;
|
|
34
|
+
bucket;
|
|
35
|
+
accessKey;
|
|
36
|
+
userPolicy;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new AWS bucket resource.
|
|
39
|
+
* @param name The name of the AWS bucket resource.
|
|
40
|
+
* @param args A bag of arguments to control the AWS bucket creation.
|
|
41
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
42
|
+
*/
|
|
43
|
+
constructor(name, args, opts) {
|
|
44
|
+
super("aws:bucket", name, args, opts);
|
|
45
|
+
const emptyOpts = this.opts();
|
|
46
|
+
const awsOpts = this.opts(aws.Provider);
|
|
47
|
+
this.id = new random.RandomId(`${name}-bucket`, { byteLength: 6, prefix: pulumi.interpolate `${args.name ?? name}-` }, { ...emptyOpts, protect: args.protect }).hex;
|
|
48
|
+
this.bucket = new aws.s3.Bucket(name, { ...args, bucket: this.id }, { ...awsOpts, protect: args.protect });
|
|
49
|
+
this.accessKey = new accessKey_1.AccessKey(name, { name: this.id }, awsOpts);
|
|
50
|
+
this.userPolicy = new aws.iam.UserPolicy(name, {
|
|
51
|
+
user: this.accessKey.user.name,
|
|
52
|
+
policy: {
|
|
53
|
+
Version: "2012-10-17",
|
|
54
|
+
Statement: [
|
|
55
|
+
{
|
|
56
|
+
Effect: "Allow",
|
|
57
|
+
Action: ["s3:ListBucket"],
|
|
58
|
+
Resource: [pulumi.interpolate `arn:aws:s3:::${this.bucket.id}`],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
Effect: "Allow",
|
|
62
|
+
Action: ["s3:*"],
|
|
63
|
+
Resource: [pulumi.interpolate `arn:aws:s3:::${this.bucket.id}/*`],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
}, awsOpts);
|
|
68
|
+
this.registerOutputs();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.Bucket = Bucket;
|
|
72
|
+
//# sourceMappingURL=bucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucket.js","sourceRoot":"","sources":["../../../lib/aws/bucket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AACzC,uDAAyC;AACzC,iDAAmC;AACnC,sCAA8C;AAC9C,2CAAwC;AAaxC,MAAa,MAAO,SAAQ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OAAO;wBACf,MAAM,EAAE,CAAC,eAAe,CAAC;wBACzB,QAAQ,EAAE,CAAC,MAAM,CAAC,WAAW,CAAA,gBAAgB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;qBAC/D;oBACD;wBACE,MAAM,EAAE,OAAO;wBACf,MAAM,EAAE,CAAC,MAAM,CAAC;wBAChB,QAAQ,EAAE,CAAC,MAAM,CAAC,WAAW,CAAA,gBAAgB,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;qBACjE;iBACF;aACF;SACF,EACD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CACF;AArDD,wBAqDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/aws/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Bucket = exports.AccessKey = void 0;
|
|
4
|
+
const accessKey_1 = require("./accessKey");
|
|
5
|
+
Object.defineProperty(exports, "AccessKey", { enumerable: true, get: function () { return accessKey_1.AccessKey; } });
|
|
6
|
+
const bucket_1 = require("./bucket");
|
|
7
|
+
Object.defineProperty(exports, "Bucket", { enumerable: true, get: function () { return bucket_1.Bucket; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/aws/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AAG/B,0FAHA,qBAAS,OAGA;AAFjC,qCAA8C;AAEC,uFAF1B,eAAM,OAE0B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
export interface BlockyArgs {
|
|
4
|
+
namespace?: pulumi.Input<string>;
|
|
5
|
+
nameservers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
6
|
+
blocklists?: pulumi.Input<{
|
|
7
|
+
[key: string]: pulumi.Input<pulumi.Input<string>[]>;
|
|
8
|
+
}>;
|
|
9
|
+
hostname?: pulumi.Input<string>;
|
|
10
|
+
replicas?: pulumi.Input<number>;
|
|
11
|
+
}
|
|
12
|
+
export declare class Blocky extends ComponentResource {
|
|
13
|
+
private readonly helmRelease;
|
|
14
|
+
private readonly service;
|
|
15
|
+
private readonly grafanaDashboard;
|
|
16
|
+
readonly namespace: pulumi.Output<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a new Blocky resource.
|
|
19
|
+
* @param name The name of the Blocky resource.
|
|
20
|
+
* @param args A bag of arguments to control the Blocky creation.
|
|
21
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
22
|
+
*/
|
|
23
|
+
constructor(name: string, args: BlockyArgs, opts?: pulumi.ComponentResourceOptions);
|
|
24
|
+
}
|
|
25
|
+
//# 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;AAKzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACnD,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,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,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,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAY;IAC7C,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;CAwGnF"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Blocky = void 0;
|
|
27
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
28
|
+
const k8s = __importStar(require("@pulumi/kubernetes"));
|
|
29
|
+
const fs = __importStar(require("fs"));
|
|
30
|
+
const path = __importStar(require("path"));
|
|
31
|
+
const yaml = __importStar(require("js-yaml"));
|
|
32
|
+
const common_1 = require("../common");
|
|
33
|
+
const kubernetes = __importStar(require("../kubernetes"));
|
|
34
|
+
const grafana_1 = require("../grafana");
|
|
35
|
+
class Blocky extends common_1.ComponentResource {
|
|
36
|
+
helmRelease;
|
|
37
|
+
service;
|
|
38
|
+
grafanaDashboard;
|
|
39
|
+
namespace;
|
|
40
|
+
/**
|
|
41
|
+
* Create a new Blocky resource.
|
|
42
|
+
* @param name The name of the Blocky resource.
|
|
43
|
+
* @param args A bag of arguments to control the Blocky creation.
|
|
44
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name, args, opts) {
|
|
47
|
+
super("blocky", name, args, opts);
|
|
48
|
+
opts = this.opts(k8s.Provider);
|
|
49
|
+
if (args.replicas === undefined) {
|
|
50
|
+
args.replicas = 1;
|
|
51
|
+
}
|
|
52
|
+
this.namespace = args.namespace
|
|
53
|
+
? pulumi.output(args.namespace)
|
|
54
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
55
|
+
const metadata = {
|
|
56
|
+
name,
|
|
57
|
+
namespace: this.namespace,
|
|
58
|
+
labels: {
|
|
59
|
+
"app.kubernetes.io/name": "blocky",
|
|
60
|
+
"app.kubernetes.io/instance": name,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
this.helmRelease = new kubernetes.helm.v3.Release(name, {
|
|
64
|
+
name: metadata.name,
|
|
65
|
+
namespace: metadata.namespace,
|
|
66
|
+
repositoryOpts: { repo: "https://k8s-at-home.com/charts/" },
|
|
67
|
+
chart: "blocky",
|
|
68
|
+
values: {
|
|
69
|
+
fullnameOverride: name,
|
|
70
|
+
controller: { replicas: args.replicas },
|
|
71
|
+
config: pulumi.all([args.nameservers, args.blocklists]).apply(([nameservers, blocklists]) => yaml.dump({
|
|
72
|
+
logLevel: "warn",
|
|
73
|
+
logFormat: "json",
|
|
74
|
+
httpPort: 4000,
|
|
75
|
+
upstream: { default: nameservers ?? ["9.9.9.9", "149.112.112.112"] },
|
|
76
|
+
blocking: {
|
|
77
|
+
blackLists: blocklists,
|
|
78
|
+
clientGroupsBlock: { default: Object.keys(blocklists ?? {}) },
|
|
79
|
+
blockType: "nxDomain",
|
|
80
|
+
},
|
|
81
|
+
caching: { prefetching: true },
|
|
82
|
+
prometheus: { enable: true, path: "/metrics" },
|
|
83
|
+
})),
|
|
84
|
+
metrics: { enabled: true, prometheusRule: { enabled: false } },
|
|
85
|
+
affinity: {
|
|
86
|
+
podAntiAffinity: {
|
|
87
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
88
|
+
{
|
|
89
|
+
weight: 100,
|
|
90
|
+
podAffinityTerm: {
|
|
91
|
+
labelSelector: {
|
|
92
|
+
matchExpressions: [
|
|
93
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: ["blocky"] },
|
|
94
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
topologyKey: "kubernetes.io/hostname",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
resources: {
|
|
104
|
+
requests: { memory: "64Mi" },
|
|
105
|
+
limits: { memory: "96Mi" },
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
}, opts);
|
|
109
|
+
this.service = new kubernetes.v1.Service(`${name}-dns`, {
|
|
110
|
+
metadata: { ...metadata, name: pulumi.interpolate `${name}-dns` },
|
|
111
|
+
spec: {
|
|
112
|
+
selector: metadata.labels,
|
|
113
|
+
ports: [
|
|
114
|
+
{ name: "udp", protocol: "UDP", port: 53 },
|
|
115
|
+
{ name: "tcp", protocol: "TCP", port: 53 },
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
hostnames: args.hostname ? [args.hostname] : undefined,
|
|
119
|
+
}, { ...opts, dependsOn: [this.helmRelease] });
|
|
120
|
+
this.grafanaDashboard = new grafana_1.Dashboard(`${name}-grafana-dashboard`, {
|
|
121
|
+
metadata: { ...metadata, name: pulumi.interpolate `${name}-grafana-dashboard` },
|
|
122
|
+
name: "blocky",
|
|
123
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
|
124
|
+
data: fs.readFileSync(path.join(__dirname, "assets", "dashboard.json"), "utf-8"),
|
|
125
|
+
}, opts);
|
|
126
|
+
this.registerOutputs();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.Blocky = Blocky;
|
|
130
|
+
//# sourceMappingURL=deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../../lib/blocky/deployment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AACzC,wDAA0C;AAC1C,uCAAyB;AACzB,2CAA6B;AAC7B,8CAAgC;AAChC,sCAA8C;AAC9C,0DAA4C;AAC5C,wCAAuC;AAUvC,MAAa,MAAO,SAAQ,0BAAiB;IAC1B,WAA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
+
{"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
|
+
* Optional: 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 @@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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,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Certificate = void 0;
|
|
27
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
28
|
+
const k8s = __importStar(require("@pulumi/kubernetes"));
|
|
29
|
+
class Certificate extends k8s.apiextensions.CustomResource {
|
|
30
|
+
secretName;
|
|
31
|
+
hostnames;
|
|
32
|
+
/**
|
|
33
|
+
* Create a new certificate resource.
|
|
34
|
+
* @param name The name of the certificate resource.
|
|
35
|
+
* @param args A bag of arguments to control the certificate creation.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name, args, opts) {
|
|
39
|
+
const spec = pulumi.all([args.spec]).apply(([specWrapped]) => {
|
|
40
|
+
const spec = specWrapped;
|
|
41
|
+
if (spec.secretName === undefined) {
|
|
42
|
+
spec.secretName = `${name}-tls`;
|
|
43
|
+
}
|
|
44
|
+
if (spec.privateKey === undefined) {
|
|
45
|
+
spec.privateKey = {};
|
|
46
|
+
}
|
|
47
|
+
spec.privateKey = pulumi.all([spec.privateKey]).apply(([privateKeyWrapped]) => {
|
|
48
|
+
const privateKey = privateKeyWrapped;
|
|
49
|
+
if (privateKey.rotationPolicy === undefined) {
|
|
50
|
+
privateKey.rotationPolicy = "Always";
|
|
51
|
+
}
|
|
52
|
+
return privateKey;
|
|
53
|
+
});
|
|
54
|
+
if (spec.issuerRef === undefined) {
|
|
55
|
+
spec.issuerRef = { name: "letsencrypt", kind: "ClusterIssuer" };
|
|
56
|
+
}
|
|
57
|
+
return spec;
|
|
58
|
+
});
|
|
59
|
+
super(name, { apiVersion: "cert-manager.io/v1", kind: "Certificate", metadata: args.metadata, spec }, opts);
|
|
60
|
+
this.hostnames = spec.dnsNames;
|
|
61
|
+
this.secretName = spec.secretName;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.Certificate = Certificate;
|
|
65
|
+
//# sourceMappingURL=certificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../../../lib/certManager/certificate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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AAE,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"}
|