@ydkn/pulumi-components 0.4.2 → 0.4.4
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/.eslintrc.json +14 -0
- package/.gitlab-ci.yml +73 -0
- package/.prettierrc +3 -0
- package/{index.d.ts → index.ts} +46 -2
- package/lib/avahi/deployment.ts +171 -0
- package/lib/avahi/{index.d.ts → index.ts} +1 -1
- package/lib/avahi/service.ts +118 -0
- package/lib/aws/accessKey.ts +40 -0
- package/lib/aws/bucket.ts +71 -0
- package/lib/aws/{index.d.ts → index.ts} +1 -1
- package/lib/blocky/assets/dashboard.json +1777 -0
- package/lib/blocky/deployment.ts +134 -0
- package/lib/blocky/{index.d.ts → index.ts} +1 -1
- package/lib/certManager/assets/dashboard.json +1188 -0
- package/lib/certManager/certificate.ts +168 -0
- package/lib/certManager/index.ts +39 -0
- package/lib/certManager/issuer.ts +141 -0
- package/lib/certManager/operator.ts +244 -0
- package/lib/common/componentResource.ts +78 -0
- package/lib/common/{index.d.ts → index.ts} +2 -1
- package/lib/common/types.ts +3 -0
- package/lib/cups/avahiService.ts +66 -0
- package/lib/cups/deployment.ts +199 -0
- package/lib/cups/index.ts +4 -0
- package/lib/devcontainer/assets/init.sh +44 -0
- package/lib/devcontainer/deployment.ts +253 -0
- package/lib/devcontainer/index.ts +3 -0
- package/lib/dhcpd/deployment.ts +164 -0
- package/lib/dhcpd/index.ts +3 -0
- package/lib/externalDns/dnsEndpoint.ts +70 -0
- package/lib/externalDns/index.ts +18 -0
- package/lib/externalDns/operator.ts +165 -0
- package/lib/fcos/assets/rpm-opstree-install.sh +0 -0
- package/lib/fcos/config.ts +237 -0
- package/lib/fcos/host.ts +91 -0
- package/lib/fcos/index.ts +27 -0
- package/lib/freeradius/deployment.ts +244 -0
- package/lib/freeradius/{index.d.ts → index.ts} +1 -1
- package/lib/gitlab/{index.d.ts → index.ts} +13 -2
- package/lib/gitlab/project.ts +148 -0
- package/lib/gitlab/renovate.ts +98 -0
- package/lib/gitlab/runners/cleanup.ts +104 -0
- package/lib/gitlab/runners/{index.d.ts → index.ts} +1 -1
- package/lib/gitlab/runners/runner.ts +122 -0
- package/lib/gitlab/runners/runners.ts +49 -0
- package/lib/grafana/agent.ts +449 -0
- package/lib/grafana/dashboard.ts +38 -0
- package/lib/grafana/datasource.ts +59 -0
- package/lib/grafana/deployment.ts +78 -0
- package/lib/grafana/index.ts +17 -0
- package/lib/hcloud/assets/fcos-install.sh +0 -0
- package/lib/hcloud/cluster.ts +500 -0
- package/lib/hcloud/{index.d.ts → index.ts} +1 -1
- package/lib/hcloud/kubernetes.ts +237 -0
- package/lib/hcloud/wireguard.ts +155 -0
- package/lib/k0s/cluster.ts +264 -0
- package/lib/k0s/{index.d.ts → index.ts} +1 -1
- package/lib/kubeStateMetrics/deployment.ts +60 -0
- package/lib/kubeStateMetrics/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/v3/chart.ts +79 -0
- package/lib/kubernetes/helm/v3/helpers.ts +32 -0
- package/lib/kubernetes/helm/v3/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/helm/v3/release.ts +17 -0
- package/lib/kubernetes/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/transformations/filter.ts +43 -0
- package/lib/kubernetes/transformations/{index.d.ts → index.ts} +1 -1
- package/lib/kubernetes/transformations/metadataNamespace.ts +25 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.ts +78 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.ts +60 -0
- package/lib/kubernetes/v1/{index.d.ts → index.ts} +12 -2
- package/lib/kubernetes/v1/nfsVolume.ts +145 -0
- package/lib/kubernetes/v1/pullSecret.ts +37 -0
- package/lib/kubernetes/v1/service.ts +58 -0
- package/lib/localPathProvisioner/deployment.ts +88 -0
- package/lib/localPathProvisioner/index.ts +3 -0
- package/lib/loki/deployment.ts +122 -0
- package/lib/loki/index.ts +3 -0
- package/lib/metallb/controller.ts +96 -0
- package/lib/metallb/{index.d.ts → index.ts} +11 -2
- package/lib/metallb/ipAddressPool.ts +33 -0
- package/lib/metallb/l2Advertisement.ts +34 -0
- package/lib/node/{index.d.ts → index.ts} +1 -1
- package/lib/node/kubernetes.ts +129 -0
- package/lib/node/node.ts +17 -0
- package/lib/openldap/deployment.ts +226 -0
- package/lib/openldap/{index.d.ts → index.ts} +1 -1
- package/lib/plex/{index.d.ts → index.ts} +1 -1
- package/lib/plex/mediaServer.ts +265 -0
- package/lib/plex/playlists.ts +123 -0
- package/lib/postgresql/cluster.ts +61 -0
- package/lib/postgresql/index.ts +4 -0
- package/lib/postgresql/operator.ts +70 -0
- package/lib/prometheus/index.ts +23 -0
- package/lib/prometheus/monitor.ts +13 -0
- package/lib/prometheus/operator.ts +264 -0
- package/lib/prometheus/podMonitor.ts +32 -0
- package/lib/prometheus/serviceMonitor.ts +43 -0
- package/lib/raspberrypi/cluster.ts +279 -0
- package/lib/raspberrypi/{index.d.ts → index.ts} +1 -1
- package/lib/rethinkdb/deployment.ts +424 -0
- package/lib/rethinkdb/{index.d.ts → index.ts} +1 -1
- package/lib/rook/assets/dashboard.json +4871 -0
- package/lib/rook/blockPool.ts +80 -0
- package/lib/rook/cluster.ts +168 -0
- package/lib/rook/filesystem.ts +140 -0
- package/lib/rook/{index.d.ts → index.ts} +15 -2
- package/lib/rook/operator.ts +175 -0
- package/lib/samba/avahiService.ts +44 -0
- package/lib/samba/deployment.ts +305 -0
- package/lib/samba/index.ts +5 -0
- package/lib/samba/volumes.ts +70 -0
- package/lib/ssh/exec.ts +162 -0
- package/lib/ssh/file.ts +165 -0
- package/lib/ssh/{index.d.ts → index.ts} +1 -1
- package/lib/ssh/types.ts +20 -0
- package/lib/torproxy/deployment.ts +165 -0
- package/lib/torproxy/{index.d.ts → index.ts} +1 -1
- package/lib/traefik/assets/dashboard.json +759 -0
- package/lib/traefik/controller.ts +207 -0
- package/lib/traefik/{index.d.ts → index.ts} +1 -1
- package/lib/traefik/middleware.ts +37 -0
- package/lib/traefik/secureIngress.ts +81 -0
- package/lib/ubuntu/assets/init.sh +0 -0
- package/lib/ubuntu/deployment.ts +275 -0
- package/lib/ubuntu/{index.d.ts → index.ts} +1 -1
- package/lib/unifi/controller.ts +234 -0
- package/lib/unifi/{index.d.ts → index.ts} +1 -1
- package/lib/velero/{index.d.ts → index.ts} +1 -1
- package/lib/velero/operator.ts +182 -0
- package/lib/wireguard/deployment.ts +168 -0
- package/lib/wireguard/{index.d.ts → index.ts} +1 -1
- package/package.json +63 -62
- package/renovate.json +4 -0
- package/tsconfig.json +21 -0
- package/index.d.ts.map +0 -1
- package/index.js +0 -64
- package/index.js.map +0 -1
- package/lib/avahi/deployment.d.ts +0 -36
- package/lib/avahi/deployment.d.ts.map +0 -1
- package/lib/avahi/deployment.js +0 -164
- package/lib/avahi/deployment.js.map +0 -1
- package/lib/avahi/index.d.ts.map +0 -1
- package/lib/avahi/index.js +0 -8
- package/lib/avahi/index.js.map +0 -1
- package/lib/avahi/service.d.ts +0 -51
- package/lib/avahi/service.d.ts.map +0 -1
- package/lib/avahi/service.js +0 -57
- package/lib/avahi/service.js.map +0 -1
- package/lib/aws/accessKey.d.ts +0 -22
- package/lib/aws/accessKey.d.ts.map +0 -1
- package/lib/aws/accessKey.js +0 -27
- package/lib/aws/accessKey.js.map +0 -1
- package/lib/aws/bucket.d.ts +0 -28
- package/lib/aws/bucket.d.ts.map +0 -1
- package/lib/aws/bucket.js +0 -49
- package/lib/aws/bucket.js.map +0 -1
- package/lib/aws/index.d.ts.map +0 -1
- package/lib/aws/index.js +0 -8
- package/lib/aws/index.js.map +0 -1
- package/lib/blocky/deployment.d.ts +0 -39
- package/lib/blocky/deployment.d.ts.map +0 -1
- package/lib/blocky/deployment.js +0 -97
- package/lib/blocky/deployment.js.map +0 -1
- package/lib/blocky/index.d.ts.map +0 -1
- package/lib/blocky/index.js +0 -6
- package/lib/blocky/index.js.map +0 -1
- package/lib/certManager/certificate.d.ts +0 -126
- package/lib/certManager/certificate.d.ts.map +0 -1
- package/lib/certManager/certificate.js +0 -42
- package/lib/certManager/certificate.js.map +0 -1
- package/lib/certManager/index.d.ts +0 -5
- package/lib/certManager/index.d.ts.map +0 -1
- package/lib/certManager/index.js +0 -11
- package/lib/certManager/index.js.map +0 -1
- package/lib/certManager/issuer.d.ts +0 -109
- package/lib/certManager/issuer.d.ts.map +0 -1
- package/lib/certManager/issuer.js +0 -39
- package/lib/certManager/issuer.js.map +0 -1
- package/lib/certManager/operator.d.ts +0 -43
- package/lib/certManager/operator.d.ts.map +0 -1
- package/lib/certManager/operator.js +0 -177
- package/lib/certManager/operator.js.map +0 -1
- package/lib/common/componentResource.d.ts +0 -20
- package/lib/common/componentResource.d.ts.map +0 -1
- package/lib/common/componentResource.js +0 -62
- package/lib/common/componentResource.js.map +0 -1
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -6
- package/lib/common/index.js.map +0 -1
- package/lib/common/types.d.ts +0 -3
- package/lib/common/types.d.ts.map +0 -1
- package/lib/common/types.js +0 -3
- package/lib/common/types.js.map +0 -1
- package/lib/externalDns/dnsEndpoint.d.ts +0 -66
- package/lib/externalDns/dnsEndpoint.d.ts.map +0 -1
- package/lib/externalDns/dnsEndpoint.js +0 -17
- package/lib/externalDns/dnsEndpoint.js.map +0 -1
- package/lib/externalDns/index.d.ts +0 -4
- package/lib/externalDns/index.d.ts.map +0 -1
- package/lib/externalDns/index.js +0 -8
- package/lib/externalDns/index.js.map +0 -1
- package/lib/externalDns/operator.d.ts +0 -45
- package/lib/externalDns/operator.d.ts.map +0 -1
- package/lib/externalDns/operator.js +0 -112
- package/lib/externalDns/operator.js.map +0 -1
- package/lib/fcos/config.d.ts +0 -156
- package/lib/fcos/config.d.ts.map +0 -1
- package/lib/fcos/config.js +0 -168
- package/lib/fcos/config.js.map +0 -1
- package/lib/fcos/host.d.ts +0 -34
- package/lib/fcos/host.d.ts.map +0 -1
- package/lib/fcos/host.js +0 -57
- package/lib/fcos/host.js.map +0 -1
- package/lib/fcos/index.d.ts +0 -4
- package/lib/fcos/index.d.ts.map +0 -1
- package/lib/fcos/index.js +0 -8
- package/lib/fcos/index.js.map +0 -1
- package/lib/freeradius/deployment.d.ts +0 -74
- package/lib/freeradius/deployment.d.ts.map +0 -1
- package/lib/freeradius/deployment.js +0 -216
- package/lib/freeradius/deployment.js.map +0 -1
- package/lib/freeradius/index.d.ts.map +0 -1
- package/lib/freeradius/index.js +0 -6
- package/lib/freeradius/index.js.map +0 -1
- package/lib/gitlab/index.d.ts.map +0 -1
- package/lib/gitlab/index.js +0 -12
- package/lib/gitlab/index.js.map +0 -1
- package/lib/gitlab/project.d.ts +0 -18
- package/lib/gitlab/project.d.ts.map +0 -1
- package/lib/gitlab/project.js +0 -116
- package/lib/gitlab/project.js.map +0 -1
- package/lib/gitlab/renovate.d.ts +0 -23
- package/lib/gitlab/renovate.d.ts.map +0 -1
- package/lib/gitlab/renovate.js +0 -77
- package/lib/gitlab/renovate.js.map +0 -1
- package/lib/gitlab/runners/cleanup.d.ts +0 -20
- package/lib/gitlab/runners/cleanup.d.ts.map +0 -1
- package/lib/gitlab/runners/cleanup.js +0 -86
- package/lib/gitlab/runners/cleanup.js.map +0 -1
- package/lib/gitlab/runners/index.d.ts.map +0 -1
- package/lib/gitlab/runners/index.js +0 -10
- package/lib/gitlab/runners/index.js.map +0 -1
- package/lib/gitlab/runners/runner.d.ts +0 -30
- package/lib/gitlab/runners/runner.d.ts.map +0 -1
- package/lib/gitlab/runners/runner.js +0 -89
- package/lib/gitlab/runners/runner.js.map +0 -1
- package/lib/gitlab/runners/runners.d.ts +0 -21
- package/lib/gitlab/runners/runners.d.ts.map +0 -1
- package/lib/gitlab/runners/runners.js +0 -36
- package/lib/gitlab/runners/runners.js.map +0 -1
- package/lib/grafana/agent.d.ts +0 -43
- package/lib/grafana/agent.d.ts.map +0 -1
- package/lib/grafana/agent.js +0 -417
- package/lib/grafana/agent.js.map +0 -1
- package/lib/grafana/index.d.ts +0 -3
- package/lib/grafana/index.d.ts.map +0 -1
- package/lib/grafana/index.js +0 -6
- package/lib/grafana/index.js.map +0 -1
- package/lib/hcloud/cluster.d.ts +0 -96
- package/lib/hcloud/cluster.d.ts.map +0 -1
- package/lib/hcloud/cluster.js +0 -323
- package/lib/hcloud/cluster.js.map +0 -1
- package/lib/hcloud/index.d.ts.map +0 -1
- package/lib/hcloud/index.js +0 -10
- package/lib/hcloud/index.js.map +0 -1
- package/lib/hcloud/kubernetes.d.ts +0 -39
- package/lib/hcloud/kubernetes.d.ts.map +0 -1
- package/lib/hcloud/kubernetes.js +0 -188
- package/lib/hcloud/kubernetes.js.map +0 -1
- package/lib/hcloud/wireguard.d.ts +0 -33
- package/lib/hcloud/wireguard.d.ts.map +0 -1
- package/lib/hcloud/wireguard.js +0 -103
- package/lib/hcloud/wireguard.js.map +0 -1
- package/lib/k0s/cluster.d.ts +0 -51
- package/lib/k0s/cluster.d.ts.map +0 -1
- package/lib/k0s/cluster.js +0 -183
- package/lib/k0s/cluster.js.map +0 -1
- package/lib/k0s/index.d.ts.map +0 -1
- package/lib/k0s/index.js +0 -6
- package/lib/k0s/index.js.map +0 -1
- package/lib/kubeStateMetrics/deployment.d.ts +0 -20
- package/lib/kubeStateMetrics/deployment.d.ts.map +0 -1
- package/lib/kubeStateMetrics/deployment.js +0 -47
- package/lib/kubeStateMetrics/deployment.js.map +0 -1
- package/lib/kubeStateMetrics/index.d.ts.map +0 -1
- package/lib/kubeStateMetrics/index.js +0 -6
- package/lib/kubeStateMetrics/index.js.map +0 -1
- package/lib/kubernetes/helm/index.d.ts.map +0 -1
- package/lib/kubernetes/helm/index.js +0 -6
- package/lib/kubernetes/helm/index.js.map +0 -1
- package/lib/kubernetes/helm/v3/chart.d.ts +0 -37
- package/lib/kubernetes/helm/v3/chart.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/chart.js +0 -46
- package/lib/kubernetes/helm/v3/chart.js.map +0 -1
- package/lib/kubernetes/helm/v3/helpers.d.ts +0 -3
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/helpers.js +0 -29
- package/lib/kubernetes/helm/v3/helpers.js.map +0 -1
- package/lib/kubernetes/helm/v3/index.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/index.js +0 -10
- package/lib/kubernetes/helm/v3/index.js.map +0 -1
- package/lib/kubernetes/helm/v3/release.d.ts +0 -15
- package/lib/kubernetes/helm/v3/release.d.ts.map +0 -1
- package/lib/kubernetes/helm/v3/release.js +0 -18
- package/lib/kubernetes/helm/v3/release.js.map +0 -1
- package/lib/kubernetes/index.d.ts.map +0 -1
- package/lib/kubernetes/index.js +0 -10
- package/lib/kubernetes/index.js.map +0 -1
- package/lib/kubernetes/transformations/filter.d.ts +0 -13
- package/lib/kubernetes/transformations/filter.d.ts.map +0 -1
- package/lib/kubernetes/transformations/filter.js +0 -32
- package/lib/kubernetes/transformations/filter.js.map +0 -1
- package/lib/kubernetes/transformations/index.d.ts.map +0 -1
- package/lib/kubernetes/transformations/index.js +0 -12
- package/lib/kubernetes/transformations/index.js.map +0 -1
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +0 -3
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +0 -1
- package/lib/kubernetes/transformations/metadataNamespace.js +0 -27
- package/lib/kubernetes/transformations/metadataNamespace.js.map +0 -1
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +0 -3
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +0 -1
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +0 -61
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +0 -1
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +0 -3
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +0 -1
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +0 -55
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +0 -1
- package/lib/kubernetes/v1/index.d.ts.map +0 -1
- package/lib/kubernetes/v1/index.js +0 -10
- package/lib/kubernetes/v1/index.js.map +0 -1
- package/lib/kubernetes/v1/nfsVolume.d.ts +0 -92
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +0 -1
- package/lib/kubernetes/v1/nfsVolume.js +0 -97
- package/lib/kubernetes/v1/nfsVolume.js.map +0 -1
- package/lib/kubernetes/v1/pullSecret.d.ts +0 -31
- package/lib/kubernetes/v1/pullSecret.d.ts.map +0 -1
- package/lib/kubernetes/v1/pullSecret.js +0 -27
- package/lib/kubernetes/v1/pullSecret.js.map +0 -1
- package/lib/kubernetes/v1/service.d.ts +0 -31
- package/lib/kubernetes/v1/service.d.ts.map +0 -1
- package/lib/kubernetes/v1/service.js +0 -43
- package/lib/kubernetes/v1/service.js.map +0 -1
- package/lib/metallb/controller.d.ts +0 -17
- package/lib/metallb/controller.d.ts.map +0 -1
- package/lib/metallb/controller.js +0 -87
- package/lib/metallb/controller.js.map +0 -1
- package/lib/metallb/index.d.ts.map +0 -1
- package/lib/metallb/index.js +0 -10
- package/lib/metallb/index.js.map +0 -1
- package/lib/metallb/ipAddressPool.d.ts +0 -20
- package/lib/metallb/ipAddressPool.d.ts.map +0 -1
- package/lib/metallb/ipAddressPool.js +0 -22
- package/lib/metallb/ipAddressPool.js.map +0 -1
- package/lib/metallb/l2Advertisement.d.ts +0 -21
- package/lib/metallb/l2Advertisement.d.ts.map +0 -1
- package/lib/metallb/l2Advertisement.js +0 -22
- package/lib/metallb/l2Advertisement.js.map +0 -1
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js +0 -6
- package/lib/node/index.js.map +0 -1
- package/lib/node/kubernetes.d.ts +0 -38
- package/lib/node/kubernetes.d.ts.map +0 -1
- package/lib/node/kubernetes.js +0 -89
- package/lib/node/kubernetes.js.map +0 -1
- package/lib/node/node.d.ts +0 -21
- package/lib/node/node.d.ts.map +0 -1
- package/lib/node/node.js +0 -3
- package/lib/node/node.js.map +0 -1
- package/lib/openldap/deployment.d.ts +0 -58
- package/lib/openldap/deployment.d.ts.map +0 -1
- package/lib/openldap/deployment.js +0 -217
- package/lib/openldap/deployment.js.map +0 -1
- package/lib/openldap/index.d.ts.map +0 -1
- package/lib/openldap/index.js +0 -6
- package/lib/openldap/index.js.map +0 -1
- package/lib/plex/index.d.ts.map +0 -1
- package/lib/plex/index.js +0 -8
- package/lib/plex/index.js.map +0 -1
- package/lib/plex/mediaServer.d.ts +0 -46
- package/lib/plex/mediaServer.d.ts.map +0 -1
- package/lib/plex/mediaServer.js +0 -234
- package/lib/plex/mediaServer.js.map +0 -1
- package/lib/plex/playlists.d.ts +0 -62
- package/lib/plex/playlists.d.ts.map +0 -1
- package/lib/plex/playlists.js +0 -129
- package/lib/plex/playlists.js.map +0 -1
- package/lib/prometheus/index.d.ts +0 -4
- package/lib/prometheus/index.d.ts.map +0 -1
- package/lib/prometheus/index.js +0 -8
- package/lib/prometheus/index.js.map +0 -1
- package/lib/prometheus/podMonitor.d.ts +0 -42
- package/lib/prometheus/podMonitor.d.ts.map +0 -1
- package/lib/prometheus/podMonitor.js +0 -17
- package/lib/prometheus/podMonitor.js.map +0 -1
- package/lib/prometheus/serviceMonitor.d.ts +0 -46
- package/lib/prometheus/serviceMonitor.d.ts.map +0 -1
- package/lib/prometheus/serviceMonitor.js +0 -17
- package/lib/prometheus/serviceMonitor.js.map +0 -1
- package/lib/raspberrypi/cluster.d.ts +0 -41
- package/lib/raspberrypi/cluster.d.ts.map +0 -1
- package/lib/raspberrypi/cluster.js +0 -194
- package/lib/raspberrypi/cluster.js.map +0 -1
- package/lib/raspberrypi/index.d.ts.map +0 -1
- package/lib/raspberrypi/index.js +0 -6
- package/lib/raspberrypi/index.js.map +0 -1
- package/lib/rethinkdb/deployment.d.ts +0 -61
- package/lib/rethinkdb/deployment.d.ts.map +0 -1
- package/lib/rethinkdb/deployment.js +0 -350
- package/lib/rethinkdb/deployment.js.map +0 -1
- package/lib/rethinkdb/index.d.ts.map +0 -1
- package/lib/rethinkdb/index.js +0 -6
- package/lib/rethinkdb/index.js.map +0 -1
- package/lib/rook/blockPool.d.ts +0 -28
- package/lib/rook/blockPool.d.ts.map +0 -1
- package/lib/rook/blockPool.js +0 -56
- package/lib/rook/blockPool.js.map +0 -1
- package/lib/rook/cluster.d.ts +0 -54
- package/lib/rook/cluster.d.ts.map +0 -1
- package/lib/rook/cluster.js +0 -100
- package/lib/rook/cluster.js.map +0 -1
- package/lib/rook/filesystem.d.ts +0 -29
- package/lib/rook/filesystem.d.ts.map +0 -1
- package/lib/rook/filesystem.js +0 -110
- package/lib/rook/filesystem.js.map +0 -1
- package/lib/rook/index.d.ts.map +0 -1
- package/lib/rook/index.js +0 -12
- package/lib/rook/index.js.map +0 -1
- package/lib/rook/operator.d.ts +0 -19
- package/lib/rook/operator.d.ts.map +0 -1
- package/lib/rook/operator.js +0 -162
- package/lib/rook/operator.js.map +0 -1
- package/lib/samba/deployment.d.ts +0 -79
- package/lib/samba/deployment.d.ts.map +0 -1
- package/lib/samba/deployment.js +0 -238
- package/lib/samba/deployment.js.map +0 -1
- package/lib/samba/index.d.ts +0 -3
- package/lib/samba/index.d.ts.map +0 -1
- package/lib/samba/index.js +0 -6
- package/lib/samba/index.js.map +0 -1
- package/lib/ssh/exec.d.ts +0 -33
- package/lib/ssh/exec.d.ts.map +0 -1
- package/lib/ssh/exec.js +0 -116
- package/lib/ssh/exec.js.map +0 -1
- package/lib/ssh/file.d.ts +0 -43
- package/lib/ssh/file.d.ts.map +0 -1
- package/lib/ssh/file.js +0 -110
- package/lib/ssh/file.js.map +0 -1
- package/lib/ssh/index.d.ts.map +0 -1
- package/lib/ssh/index.js +0 -8
- package/lib/ssh/index.js.map +0 -1
- package/lib/ssh/types.d.ts +0 -19
- package/lib/ssh/types.d.ts.map +0 -1
- package/lib/ssh/types.js +0 -3
- package/lib/ssh/types.js.map +0 -1
- package/lib/torproxy/deployment.d.ts +0 -31
- package/lib/torproxy/deployment.d.ts.map +0 -1
- package/lib/torproxy/deployment.js +0 -131
- package/lib/torproxy/deployment.js.map +0 -1
- package/lib/torproxy/index.d.ts.map +0 -1
- package/lib/torproxy/index.js +0 -6
- package/lib/torproxy/index.js.map +0 -1
- package/lib/traefik/controller.d.ts +0 -50
- package/lib/traefik/controller.d.ts.map +0 -1
- package/lib/traefik/controller.js +0 -166
- package/lib/traefik/controller.js.map +0 -1
- package/lib/traefik/index.d.ts.map +0 -1
- package/lib/traefik/index.js +0 -10
- package/lib/traefik/index.js.map +0 -1
- package/lib/traefik/middleware.d.ts +0 -27
- package/lib/traefik/middleware.d.ts.map +0 -1
- package/lib/traefik/middleware.js +0 -22
- package/lib/traefik/middleware.js.map +0 -1
- package/lib/traefik/secureIngress.d.ts +0 -32
- package/lib/traefik/secureIngress.d.ts.map +0 -1
- package/lib/traefik/secureIngress.js +0 -58
- package/lib/traefik/secureIngress.js.map +0 -1
- package/lib/ubuntu/deployment.d.ts +0 -67
- package/lib/ubuntu/deployment.d.ts.map +0 -1
- package/lib/ubuntu/deployment.js +0 -230
- package/lib/ubuntu/deployment.js.map +0 -1
- package/lib/ubuntu/index.d.ts.map +0 -1
- package/lib/ubuntu/index.js +0 -6
- package/lib/ubuntu/index.js.map +0 -1
- package/lib/unifi/controller.d.ts +0 -52
- package/lib/unifi/controller.d.ts.map +0 -1
- package/lib/unifi/controller.js +0 -232
- package/lib/unifi/controller.js.map +0 -1
- package/lib/unifi/index.d.ts.map +0 -1
- package/lib/unifi/index.js +0 -6
- package/lib/unifi/index.js.map +0 -1
- package/lib/velero/index.d.ts.map +0 -1
- package/lib/velero/index.js +0 -6
- package/lib/velero/index.js.map +0 -1
- package/lib/velero/operator.d.ts +0 -31
- package/lib/velero/operator.d.ts.map +0 -1
- package/lib/velero/operator.js +0 -148
- package/lib/velero/operator.js.map +0 -1
- package/lib/wireguard/deployment.d.ts +0 -82
- package/lib/wireguard/deployment.d.ts.map +0 -1
- package/lib/wireguard/deployment.js +0 -161
- package/lib/wireguard/deployment.js.map +0 -1
- package/lib/wireguard/index.d.ts.map +0 -1
- package/lib/wireguard/index.js +0 -6
- package/lib/wireguard/index.js.map +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
|
|
5
|
+
export interface Subnet {
|
|
6
|
+
subnet: string;
|
|
7
|
+
nameservers: string[];
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
netmask: string;
|
|
11
|
+
router: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface DhcpdArgs {
|
|
15
|
+
namespace?: pulumi.Input<string>;
|
|
16
|
+
subnets: pulumi.Input<pulumi.Input<Subnet>[]>;
|
|
17
|
+
nodeSelector?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class Dhcpd extends ComponentResource {
|
|
21
|
+
private readonly deployment: k8s.apps.v1.Deployment;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a new DHCPd resource.
|
|
25
|
+
* @param name The name of the DHCPd resource.
|
|
26
|
+
* @param args A bag of arguments to control the DHCPd deployment.
|
|
27
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
28
|
+
*/
|
|
29
|
+
constructor(name: string, args: DhcpdArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
30
|
+
super("dhcpd", name, args, opts);
|
|
31
|
+
|
|
32
|
+
opts = this.opts(k8s.Provider);
|
|
33
|
+
|
|
34
|
+
let namespace = args.namespace;
|
|
35
|
+
|
|
36
|
+
if (args.namespace === undefined) {
|
|
37
|
+
namespace = new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const metadata = {
|
|
41
|
+
name,
|
|
42
|
+
namespace,
|
|
43
|
+
labels: {
|
|
44
|
+
"app.kubernetes.io/name": "dhcpd",
|
|
45
|
+
"app.kubernetes.io/component": "dhcpd",
|
|
46
|
+
"app.kubernetes.io/instance": name,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const conf = new k8s.core.v1.ConfigMap(
|
|
51
|
+
name,
|
|
52
|
+
{
|
|
53
|
+
metadata,
|
|
54
|
+
data: {
|
|
55
|
+
"dhcpd.conf": pulumi.all([args.subnets]).apply(([subnets]) => {
|
|
56
|
+
const confOptions = ["authoritative;", "ddns-update-style none;"];
|
|
57
|
+
|
|
58
|
+
for (const s of subnets) {
|
|
59
|
+
confOptions.push(
|
|
60
|
+
`subnet ${s.subnet} netmask ${s.netmask} {`,
|
|
61
|
+
`range ${s.start} ${s.end};`,
|
|
62
|
+
`option domain-name-servers ${s.nameservers.join(", ")};`,
|
|
63
|
+
`option routers ${s.router};`,
|
|
64
|
+
"default-lease-time 3600;",
|
|
65
|
+
"max-lease-time 86400;",
|
|
66
|
+
"}"
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return confOptions.join("\n");
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
opts
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
this.deployment = new k8s.apps.v1.Deployment(
|
|
78
|
+
name,
|
|
79
|
+
{
|
|
80
|
+
metadata,
|
|
81
|
+
spec: {
|
|
82
|
+
selector: { matchLabels: metadata.labels },
|
|
83
|
+
strategy: { type: "Recreate" },
|
|
84
|
+
replicas: 1,
|
|
85
|
+
template: {
|
|
86
|
+
metadata: { labels: metadata.labels },
|
|
87
|
+
spec: {
|
|
88
|
+
nodeSelector: args.nodeSelector,
|
|
89
|
+
tolerations: [
|
|
90
|
+
{ effect: "NoSchedule", operator: "Exists" },
|
|
91
|
+
{ effect: "NoExecute", operator: "Exists" },
|
|
92
|
+
],
|
|
93
|
+
hostNetwork: true,
|
|
94
|
+
initContainers: [
|
|
95
|
+
{
|
|
96
|
+
name: "settings",
|
|
97
|
+
image: "busybox:latest",
|
|
98
|
+
command: ["/bin/sh"],
|
|
99
|
+
args: ["-c", "cat /config/dhcpd.conf > /data/dhcpd.conf"],
|
|
100
|
+
volumeMounts: [
|
|
101
|
+
{ name: "config", mountPath: "/config" },
|
|
102
|
+
{ name: "data", mountPath: "/data" },
|
|
103
|
+
],
|
|
104
|
+
resources: {
|
|
105
|
+
requests: { memory: "8Mi", cpu: "100m" },
|
|
106
|
+
limits: { memory: "16Mi", cpu: "200m" },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
containers: [
|
|
111
|
+
{
|
|
112
|
+
name: "dhcpd",
|
|
113
|
+
image: "networkboot/dhcpd:latest",
|
|
114
|
+
securityContext: {
|
|
115
|
+
privileged: true,
|
|
116
|
+
capabilities: { add: ["NET_ADMIN"] },
|
|
117
|
+
},
|
|
118
|
+
volumeMounts: [{ name: "data", mountPath: "/data" }],
|
|
119
|
+
resources: {
|
|
120
|
+
requests: { memory: "16Mi", cpu: "100m" },
|
|
121
|
+
limits: { memory: "32Mi", cpu: "400m" },
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
volumes: [
|
|
126
|
+
{ name: "config", configMap: { name: conf.metadata.name } },
|
|
127
|
+
{ name: "data", emptyDir: {} },
|
|
128
|
+
],
|
|
129
|
+
affinity: {
|
|
130
|
+
podAntiAffinity: {
|
|
131
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
132
|
+
{
|
|
133
|
+
weight: 100,
|
|
134
|
+
podAffinityTerm: {
|
|
135
|
+
labelSelector: {
|
|
136
|
+
matchExpressions: [
|
|
137
|
+
{
|
|
138
|
+
key: "app.kubernetes.io/name",
|
|
139
|
+
operator: "In",
|
|
140
|
+
values: [metadata.labels["app.kubernetes.io/name"]],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: "app.kubernetes.io/instance",
|
|
144
|
+
operator: "In",
|
|
145
|
+
values: [metadata.labels["app.kubernetes.io/instance"]],
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
topologyKey: "kubernetes.io/hostname",
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
opts
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
this.registerOutputs();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
|
|
4
|
+
export interface ProviderSpecificArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Name
|
|
7
|
+
*/
|
|
8
|
+
name: pulumi.Input<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Value
|
|
11
|
+
*/
|
|
12
|
+
value: pulumi.Input<string>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface DnsEndpointsArgs {
|
|
16
|
+
/**
|
|
17
|
+
* The hostname of the DNS record
|
|
18
|
+
*/
|
|
19
|
+
dnsName: pulumi.Input<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The targets the DNS record points to
|
|
22
|
+
*/
|
|
23
|
+
targets: pulumi.Input<pulumi.Input<string>[]>;
|
|
24
|
+
/**
|
|
25
|
+
* ype of record, e.g. CNAME, A, SRV, TXT etc.
|
|
26
|
+
*/
|
|
27
|
+
recordType: pulumi.Input<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional: TTL for the record
|
|
30
|
+
*/
|
|
31
|
+
recordTTL?: pulumi.Input<number>;
|
|
32
|
+
/**
|
|
33
|
+
* Optional: Labels stores labels defined for the endpoint
|
|
34
|
+
*/
|
|
35
|
+
labels?: pulumi.Input<{ [key: string]: pulumi.Input<string> }>;
|
|
36
|
+
/**
|
|
37
|
+
* Optional: ProviderSpecific stores provider specific config
|
|
38
|
+
*/
|
|
39
|
+
providerSpecific?: pulumi.Input<pulumi.Input<ProviderSpecificArgs>[]>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface DnsEndpointSpecArgs {
|
|
43
|
+
/**
|
|
44
|
+
* Endpoints
|
|
45
|
+
*/
|
|
46
|
+
endpoints: pulumi.Input<pulumi.Input<DnsEndpointsArgs>[]>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DnsEndpointArgs {
|
|
50
|
+
/**
|
|
51
|
+
* Metadata for the DNS endpoint resource
|
|
52
|
+
*/
|
|
53
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
54
|
+
/**
|
|
55
|
+
* Spec for the DNS endpoint resource
|
|
56
|
+
*/
|
|
57
|
+
spec: pulumi.Input<DnsEndpointSpecArgs>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class DnsEndpoint extends k8s.apiextensions.CustomResource {
|
|
61
|
+
/**
|
|
62
|
+
* Create a new DNS endpoint resource.
|
|
63
|
+
* @param name The name of the DNS endpoint resource.
|
|
64
|
+
* @param args A bag of arguments to control the DNS endpoint creation.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: DnsEndpointArgs, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
+
super(name, { ...args, apiVersion: "externaldns.k8s.io/v1alpha1", kind: "DNSEndpoint" }, opts);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExternalDnsArgs, ExternalDns } from "./operator";
|
|
2
|
+
import {
|
|
3
|
+
ProviderSpecificArgs,
|
|
4
|
+
DnsEndpointsArgs,
|
|
5
|
+
DnsEndpointSpecArgs,
|
|
6
|
+
DnsEndpointArgs,
|
|
7
|
+
DnsEndpoint,
|
|
8
|
+
} from "./dnsEndpoint";
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
ProviderSpecificArgs,
|
|
12
|
+
DnsEndpointsArgs,
|
|
13
|
+
DnsEndpointSpecArgs,
|
|
14
|
+
DnsEndpointArgs,
|
|
15
|
+
DnsEndpoint,
|
|
16
|
+
ExternalDnsArgs,
|
|
17
|
+
ExternalDns,
|
|
18
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import * as helm from "../kubernetes/helm";
|
|
5
|
+
|
|
6
|
+
export interface CloudflareArgs {
|
|
7
|
+
/**
|
|
8
|
+
* Cloudflare API token
|
|
9
|
+
*/
|
|
10
|
+
apiToken: pulumi.Input<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Proxy records
|
|
13
|
+
*/
|
|
14
|
+
proxied?: pulumi.Input<boolean>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ExternalDnsArgs {
|
|
18
|
+
/**
|
|
19
|
+
* Optional: Namespace
|
|
20
|
+
*/
|
|
21
|
+
namespace?: pulumi.Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Cluster name
|
|
24
|
+
*/
|
|
25
|
+
clusterName: pulumi.Input<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Optional: Number of replicas
|
|
28
|
+
*/
|
|
29
|
+
replicas?: pulumi.Input<number>;
|
|
30
|
+
/**
|
|
31
|
+
* Optional: Cloudflare configuration
|
|
32
|
+
*/
|
|
33
|
+
cloudflare?: pulumi.Input<CloudflareArgs>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class ExternalDns extends ComponentResource {
|
|
37
|
+
private static crdBranch = "master";
|
|
38
|
+
|
|
39
|
+
private readonly crd: k8s.yaml.ConfigFile;
|
|
40
|
+
private readonly providerSecret?: k8s.core.v1.Secret;
|
|
41
|
+
private readonly helmRelease: helm.v3.Release;
|
|
42
|
+
public readonly namespace: pulumi.Output<string>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create a new external-dns resource.
|
|
46
|
+
* @param name The name of external-dns resource.
|
|
47
|
+
* @param args A bag of arguments to control the external-dns creation.
|
|
48
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
49
|
+
*/
|
|
50
|
+
constructor(name: string, args: ExternalDnsArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
51
|
+
super("external-dns", name, args, opts);
|
|
52
|
+
|
|
53
|
+
opts = this.opts(k8s.Provider);
|
|
54
|
+
|
|
55
|
+
if (args.replicas === undefined) {
|
|
56
|
+
args.replicas = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
this.crd = new k8s.yaml.ConfigFile(
|
|
60
|
+
name,
|
|
61
|
+
{
|
|
62
|
+
file: [
|
|
63
|
+
"https://raw.githubusercontent.com/kubernetes-sigs/external-dns",
|
|
64
|
+
ExternalDns.crdBranch,
|
|
65
|
+
"docs/contributing/crd-source/crd-manifest.yaml",
|
|
66
|
+
].join("/"),
|
|
67
|
+
},
|
|
68
|
+
opts
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
this.namespace = args.namespace
|
|
72
|
+
? pulumi.output(args.namespace)
|
|
73
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
74
|
+
|
|
75
|
+
const helmValues = {
|
|
76
|
+
fullnameOverride: name,
|
|
77
|
+
logLevel: "info",
|
|
78
|
+
logFormat: "json",
|
|
79
|
+
policy: "sync",
|
|
80
|
+
registry: "txt",
|
|
81
|
+
txtOwnerId: args.clusterName,
|
|
82
|
+
txtPrefix: "_external-dns.",
|
|
83
|
+
sources: ["crd", "service", "ingress"],
|
|
84
|
+
extraArgs: ["--publish-internal-services", "--publish-host-ip"] as pulumi.Input<pulumi.Input<string>[]>,
|
|
85
|
+
env: [] as pulumi.Input<pulumi.Input<any>[]>,
|
|
86
|
+
provider: undefined as string | undefined,
|
|
87
|
+
serviceMonitor: { enabled: true },
|
|
88
|
+
affinity: {
|
|
89
|
+
podAntiAffinity: {
|
|
90
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
91
|
+
{
|
|
92
|
+
weight: 100,
|
|
93
|
+
podAffinityTerm: {
|
|
94
|
+
labelSelector: {
|
|
95
|
+
matchExpressions: [
|
|
96
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: ["external-dns"] },
|
|
97
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
topologyKey: "kubernetes.io/hostname",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
resources: {
|
|
107
|
+
requests: { memory: "48Mi" },
|
|
108
|
+
limits: { memory: "64Mi" },
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
if (args.cloudflare !== undefined) {
|
|
113
|
+
this.providerSecret = new k8s.core.v1.Secret(
|
|
114
|
+
name,
|
|
115
|
+
{
|
|
116
|
+
metadata: { namespace: this.namespace, name: pulumi.interpolate`${name}-cloudflare` },
|
|
117
|
+
stringData: {
|
|
118
|
+
cloudflare_api_token: pulumi.all([args.cloudflare]).apply(([cloudflare]) => cloudflare.apiToken),
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
opts
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
helmValues.provider = "cloudflare";
|
|
125
|
+
|
|
126
|
+
helmValues.extraArgs = pulumi.all([helmValues.extraArgs, args.cloudflare]).apply(([extraArgs, cloudflare]) => {
|
|
127
|
+
if (cloudflare.proxied) {
|
|
128
|
+
extraArgs.push("--cloudflare-proxied");
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return extraArgs;
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
helmValues.env = pulumi.all([helmValues.env, args.cloudflare]).apply(([env, cloudflare]) => {
|
|
135
|
+
if (this.providerSecret !== undefined) {
|
|
136
|
+
env.push({
|
|
137
|
+
name: "CF_API_TOKEN",
|
|
138
|
+
valueFrom: {
|
|
139
|
+
secretKeyRef: {
|
|
140
|
+
name: this.providerSecret.metadata.name,
|
|
141
|
+
key: "cloudflare_api_token",
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return env;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
this.helmRelease = new helm.v3.Release(
|
|
152
|
+
name,
|
|
153
|
+
{
|
|
154
|
+
name,
|
|
155
|
+
namespace: this.namespace,
|
|
156
|
+
repositoryOpts: { repo: "https://kubernetes-sigs.github.io/external-dns" },
|
|
157
|
+
chart: "external-dns",
|
|
158
|
+
values: helmValues,
|
|
159
|
+
},
|
|
160
|
+
opts
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
this.registerOutputs();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
import * as fs from "fs";
|
|
4
|
+
import * as compress from "zlib";
|
|
5
|
+
import { ComponentResource } from "../common";
|
|
6
|
+
|
|
7
|
+
export interface UserArgs {
|
|
8
|
+
name: pulumi.Input<string>;
|
|
9
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
10
|
+
sshAuthorizedKeys?: pulumi.Input<pulumi.Input<string>[]>;
|
|
11
|
+
passwordHash?: pulumi.Input<string>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface PartitionArgs {
|
|
15
|
+
label: pulumi.Input<string>;
|
|
16
|
+
size: pulumi.Input<number>;
|
|
17
|
+
start?: pulumi.Input<number>;
|
|
18
|
+
number?: pulumi.Input<number>;
|
|
19
|
+
resize?: pulumi.Input<boolean>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface DiskArgs {
|
|
23
|
+
device: pulumi.Input<string>;
|
|
24
|
+
partitions: pulumi.Input<pulumi.Input<PartitionArgs>[]>;
|
|
25
|
+
wipeTable?: pulumi.Input<boolean>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface FilesystemArgs {
|
|
29
|
+
device: pulumi.Input<string>;
|
|
30
|
+
path: pulumi.Input<string>;
|
|
31
|
+
format: pulumi.Input<string>;
|
|
32
|
+
label?: pulumi.Input<string>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface FilesArgs {
|
|
36
|
+
path: pulumi.Input<string>;
|
|
37
|
+
contents: pulumi.Input<string>;
|
|
38
|
+
mode?: pulumi.Input<number>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface SystemdUnitArgs {
|
|
42
|
+
name: pulumi.Input<string>;
|
|
43
|
+
enabled?: pulumi.Input<boolean>;
|
|
44
|
+
mask?: pulumi.Input<boolean>;
|
|
45
|
+
contents?: pulumi.Input<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface IgnitionArgs {
|
|
49
|
+
modules?: pulumi.Input<pulumi.Input<string>[]>;
|
|
50
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
51
|
+
users?: pulumi.Input<pulumi.Input<UserArgs>[]>;
|
|
52
|
+
disks?: pulumi.Input<pulumi.Input<DiskArgs>[]>;
|
|
53
|
+
filesystems?: pulumi.Input<pulumi.Input<FilesystemArgs>[]>;
|
|
54
|
+
files?: pulumi.Input<pulumi.Input<FilesArgs>[]>;
|
|
55
|
+
systemdUnits?: pulumi.Input<pulumi.Input<SystemdUnitArgs>[]>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ConfigArgs extends IgnitionArgs {
|
|
59
|
+
hostname: pulumi.Input<string>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class Config extends ComponentResource {
|
|
63
|
+
public readonly ignitionConfig: pulumi.Output<string>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Create a new FCOS config resource.
|
|
67
|
+
* @param name The name of the FCOS config resource.
|
|
68
|
+
* @param args A bag of arguments to control the FCOS config creation.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: ConfigArgs, opts?: pulumi.ComponentResourceOptions) {
|
|
72
|
+
super("fcos:config", name, args, opts);
|
|
73
|
+
|
|
74
|
+
this.ignitionConfig = pulumi
|
|
75
|
+
.all([
|
|
76
|
+
this.defaultConfig(),
|
|
77
|
+
args.hostname,
|
|
78
|
+
args.modules,
|
|
79
|
+
args.packages,
|
|
80
|
+
args.users,
|
|
81
|
+
args.disks,
|
|
82
|
+
args.filesystems,
|
|
83
|
+
args.files,
|
|
84
|
+
args.systemdUnits,
|
|
85
|
+
])
|
|
86
|
+
.apply(([config, hostname, modules, packages, users, disks, filesystems, files, systemdUnits]) => {
|
|
87
|
+
if (hostname !== undefined) {
|
|
88
|
+
config.storage.files.push({
|
|
89
|
+
path: "/etc/hostname",
|
|
90
|
+
contents: this.storageContents(hostname),
|
|
91
|
+
mode: 0o644,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
for (const module of modules || []) {
|
|
96
|
+
config.storage.files.push({
|
|
97
|
+
path: `/etc/modules-load.d/${module}.conf`,
|
|
98
|
+
contents: this.storageContents(module),
|
|
99
|
+
mode: 0o644,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
for (const pkg of packages || []) {
|
|
104
|
+
config.storage.files.push({ path: `/etc/rpm-opstree-install/${pkg}` });
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
for (const user of users || []) {
|
|
108
|
+
config.passwd.users.push(user);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
for (const disk of disks || []) {
|
|
112
|
+
config.storage.disks.push({
|
|
113
|
+
device: disk.device,
|
|
114
|
+
partitions: disk.partitions.map((partition: PartitionArgs) => {
|
|
115
|
+
return {
|
|
116
|
+
label: partition.label,
|
|
117
|
+
size_mib: partition.size,
|
|
118
|
+
start_mib: partition.start,
|
|
119
|
+
number: partition.number,
|
|
120
|
+
resize: partition.resize,
|
|
121
|
+
};
|
|
122
|
+
}),
|
|
123
|
+
wipe_table: disk.wipeTable,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
for (const filesystem of filesystems || []) {
|
|
128
|
+
config.storage.filesystems.push({
|
|
129
|
+
device: filesystem.device,
|
|
130
|
+
path: filesystem.path,
|
|
131
|
+
format: filesystem.format,
|
|
132
|
+
label: filesystem.label,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const checkSystemdName = filesystem.device.replace(/-/g, "\\x2d").replace(/^\//, "").replace(/\//g, "-");
|
|
136
|
+
|
|
137
|
+
config.systemd.units.push({
|
|
138
|
+
name: `${filesystem.path.replace(/^\//, "").replace(/\//g, "-")}.mount`,
|
|
139
|
+
enabled: true,
|
|
140
|
+
contents: [
|
|
141
|
+
"[Unit]",
|
|
142
|
+
"Before=local-fs.target",
|
|
143
|
+
`Requires=systemd-fsck@${checkSystemdName}.service`,
|
|
144
|
+
`After=systemd-fsck@${checkSystemdName}.service`,
|
|
145
|
+
"[Mount]",
|
|
146
|
+
`Where=${filesystem.path}`,
|
|
147
|
+
`What=${filesystem.device}`,
|
|
148
|
+
`Type=${filesystem.format}`,
|
|
149
|
+
"[Install]",
|
|
150
|
+
"RequiredBy=local-fs.target",
|
|
151
|
+
].join("\n"),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
for (const file of files || []) {
|
|
156
|
+
config.storage.files.push({
|
|
157
|
+
path: file.path,
|
|
158
|
+
contents: this.storageContents(file.contents),
|
|
159
|
+
mode: file.mode ?? 0o644,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
for (const unit of systemdUnits || []) {
|
|
164
|
+
config.systemd.units.push(unit);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return JSON.stringify(config);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
this.registerOutputs();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
private defaultConfig(): any {
|
|
174
|
+
return {
|
|
175
|
+
ignition: { version: "3.3.0" },
|
|
176
|
+
passwd: {
|
|
177
|
+
users: [],
|
|
178
|
+
},
|
|
179
|
+
storage: {
|
|
180
|
+
disks: [],
|
|
181
|
+
filesystems: [],
|
|
182
|
+
directories: [{ path: "/etc/rpm-opstree-install" }],
|
|
183
|
+
files: [
|
|
184
|
+
{
|
|
185
|
+
path: "/etc/sysctl.d/20-silence-audit.conf",
|
|
186
|
+
contents: this.storageContents("kernel.printk=4"),
|
|
187
|
+
mode: 0o644,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
overwrite: true,
|
|
191
|
+
path: "/etc/sysctl.d/10-fs-inotify.conf",
|
|
192
|
+
contents: this.storageContents(
|
|
193
|
+
"fs.inotify.max_user_instances = 8192\nfs.inotify.max_user_watches = 524288"
|
|
194
|
+
),
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
overwrite: true,
|
|
198
|
+
path: "/etc/sysctl.d/90-ipv4-ip-forward.conf",
|
|
199
|
+
contents: this.storageContents("net.ipv4.ip_forward = 1"),
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
overwrite: true,
|
|
203
|
+
path: "/etc/sysctl.d/90-ipv6-ip-forwarding.conf",
|
|
204
|
+
contents: this.storageContents("net.ipv6.conf.all.forwarding = 1"),
|
|
205
|
+
},
|
|
206
|
+
{ overwrite: false, path: "/etc/systemd/resolved.conf", append: [this.storageContents("LLMNR=no")] },
|
|
207
|
+
{
|
|
208
|
+
path: "/usr/local/sbin/rpm-opstree-install",
|
|
209
|
+
contents: this.storageContents(this.assetContent("rpm-opstree-install.sh")),
|
|
210
|
+
mode: 0o755,
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
systemd: {
|
|
215
|
+
units: [
|
|
216
|
+
{
|
|
217
|
+
name: "rpm-ostree-install.service",
|
|
218
|
+
enabled: true,
|
|
219
|
+
contents: this.assetContent("rpm-ostree-install.service"),
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
private assetContent(filename: string): string {
|
|
227
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
|
228
|
+
return fs.readFileSync(path.join(__dirname, "assets", filename), "utf-8");
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
private storageContents(data: string): { compression: string; source: string } {
|
|
232
|
+
return {
|
|
233
|
+
compression: "gzip",
|
|
234
|
+
source: `data:;base64,${compress.gzipSync(Buffer.from(data), { level: 9 }).toString("base64")}`,
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|