@ydkn/pulumi-components 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +31 -0
- package/index.d.ts.map +1 -0
- package/index.js +62 -0
- package/index.js.map +1 -0
- package/lib/avahi/deployment.d.ts +36 -0
- package/lib/avahi/deployment.d.ts.map +1 -0
- package/lib/avahi/deployment.js +164 -0
- package/lib/avahi/deployment.js.map +1 -0
- package/lib/avahi/index.d.ts +4 -0
- package/lib/avahi/index.d.ts.map +1 -0
- package/lib/avahi/index.js +8 -0
- package/lib/avahi/index.js.map +1 -0
- package/lib/avahi/service.d.ts +51 -0
- package/lib/avahi/service.d.ts.map +1 -0
- package/lib/avahi/service.js +57 -0
- package/lib/avahi/service.js.map +1 -0
- package/lib/aws/accessKey.d.ts +22 -0
- package/lib/aws/accessKey.d.ts.map +1 -0
- package/lib/aws/accessKey.js +27 -0
- package/lib/aws/accessKey.js.map +1 -0
- package/lib/aws/bucket.d.ts +28 -0
- package/lib/aws/bucket.d.ts.map +1 -0
- package/lib/aws/bucket.js +49 -0
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/index.d.ts +4 -0
- package/lib/aws/index.d.ts.map +1 -0
- package/lib/aws/index.js +8 -0
- package/lib/aws/index.js.map +1 -0
- package/lib/blocky/deployment.d.ts +39 -0
- package/lib/blocky/deployment.d.ts.map +1 -0
- package/lib/blocky/deployment.js +97 -0
- package/lib/blocky/deployment.js.map +1 -0
- package/lib/blocky/index.d.ts +3 -0
- package/lib/blocky/index.d.ts.map +1 -0
- package/lib/blocky/index.js +6 -0
- package/lib/blocky/index.js.map +1 -0
- package/lib/certManager/certificate.d.ts +126 -0
- package/lib/certManager/certificate.d.ts.map +1 -0
- package/lib/certManager/certificate.js +42 -0
- package/lib/certManager/certificate.js.map +1 -0
- package/lib/certManager/index.d.ts +5 -0
- package/lib/certManager/index.d.ts.map +1 -0
- package/lib/certManager/index.js +11 -0
- package/lib/certManager/index.js.map +1 -0
- package/lib/certManager/issuer.d.ts +109 -0
- package/lib/certManager/issuer.d.ts.map +1 -0
- package/lib/certManager/issuer.js +39 -0
- package/lib/certManager/issuer.js.map +1 -0
- package/lib/certManager/operator.d.ts +43 -0
- package/lib/certManager/operator.d.ts.map +1 -0
- package/lib/certManager/operator.js +177 -0
- package/lib/certManager/operator.js.map +1 -0
- package/lib/common/componentResource.d.ts +20 -0
- package/lib/common/componentResource.d.ts.map +1 -0
- package/lib/common/componentResource.js +62 -0
- package/lib/common/componentResource.js.map +1 -0
- package/lib/common/index.d.ts +4 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +6 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/types.d.ts +3 -0
- package/lib/common/types.d.ts.map +1 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/externalDns/dnsEndpoint.d.ts +66 -0
- package/lib/externalDns/dnsEndpoint.d.ts.map +1 -0
- package/lib/externalDns/dnsEndpoint.js +17 -0
- package/lib/externalDns/dnsEndpoint.js.map +1 -0
- package/lib/externalDns/index.d.ts +4 -0
- package/lib/externalDns/index.d.ts.map +1 -0
- package/lib/externalDns/index.js +8 -0
- package/lib/externalDns/index.js.map +1 -0
- package/lib/externalDns/operator.d.ts +45 -0
- package/lib/externalDns/operator.d.ts.map +1 -0
- package/lib/externalDns/operator.js +112 -0
- package/lib/externalDns/operator.js.map +1 -0
- package/lib/fcos/assets/rpm-opstree-install.sh +26 -0
- package/lib/fcos/assets/rpm-ostree-install.service +13 -0
- package/lib/fcos/config.d.ts +156 -0
- package/lib/fcos/config.d.ts.map +1 -0
- package/lib/fcos/config.js +168 -0
- package/lib/fcos/config.js.map +1 -0
- package/lib/fcos/host.d.ts +34 -0
- package/lib/fcos/host.d.ts.map +1 -0
- package/lib/fcos/host.js +57 -0
- package/lib/fcos/host.js.map +1 -0
- package/lib/fcos/index.d.ts +4 -0
- package/lib/fcos/index.d.ts.map +1 -0
- package/lib/fcos/index.js +8 -0
- package/lib/fcos/index.js.map +1 -0
- package/lib/freeradius/assets/clients.conf.tmpl +23 -0
- package/lib/freeradius/assets/default.tmpl +116 -0
- package/lib/freeradius/assets/eap.tmpl +66 -0
- package/lib/freeradius/assets/inner-tunnel.tmpl +74 -0
- package/lib/freeradius/assets/ldap.tmpl +48 -0
- package/lib/freeradius/assets/proxy.conf.tmpl +43 -0
- package/lib/freeradius/deployment.d.ts +74 -0
- package/lib/freeradius/deployment.d.ts.map +1 -0
- package/lib/freeradius/deployment.js +216 -0
- package/lib/freeradius/deployment.js.map +1 -0
- package/lib/freeradius/index.d.ts +3 -0
- package/lib/freeradius/index.d.ts.map +1 -0
- package/lib/freeradius/index.js +6 -0
- package/lib/freeradius/index.js.map +1 -0
- package/lib/gitlab/index.d.ts +4 -0
- package/lib/gitlab/index.d.ts.map +1 -0
- package/lib/gitlab/index.js +10 -0
- package/lib/gitlab/index.js.map +1 -0
- package/lib/gitlab/renovate.d.ts +38 -0
- package/lib/gitlab/renovate.d.ts.map +1 -0
- package/lib/gitlab/renovate.js +77 -0
- package/lib/gitlab/renovate.js.map +1 -0
- package/lib/gitlab/runners/cleanup.d.ts +29 -0
- package/lib/gitlab/runners/cleanup.d.ts.map +1 -0
- package/lib/gitlab/runners/cleanup.js +86 -0
- package/lib/gitlab/runners/cleanup.js.map +1 -0
- package/lib/gitlab/runners/index.d.ts +5 -0
- package/lib/gitlab/runners/index.d.ts.map +1 -0
- package/lib/gitlab/runners/index.js +10 -0
- package/lib/gitlab/runners/index.js.map +1 -0
- package/lib/gitlab/runners/runner.d.ts +63 -0
- package/lib/gitlab/runners/runner.d.ts.map +1 -0
- package/lib/gitlab/runners/runner.js +89 -0
- package/lib/gitlab/runners/runner.js.map +1 -0
- package/lib/gitlab/runners/runners.d.ts +27 -0
- package/lib/gitlab/runners/runners.d.ts.map +1 -0
- package/lib/gitlab/runners/runners.js +36 -0
- package/lib/gitlab/runners/runners.js.map +1 -0
- package/lib/grafana/agent.d.ts +41 -0
- package/lib/grafana/agent.d.ts.map +1 -0
- package/lib/grafana/agent.js +379 -0
- package/lib/grafana/agent.js.map +1 -0
- package/lib/grafana/index.d.ts +3 -0
- package/lib/grafana/index.d.ts.map +1 -0
- package/lib/grafana/index.js +6 -0
- package/lib/grafana/index.js.map +1 -0
- package/lib/hcloud/assets/fcos-install.sh +30 -0
- package/lib/hcloud/cluster.d.ts +96 -0
- package/lib/hcloud/cluster.d.ts.map +1 -0
- package/lib/hcloud/cluster.js +323 -0
- package/lib/hcloud/cluster.js.map +1 -0
- package/lib/hcloud/index.d.ts +5 -0
- package/lib/hcloud/index.d.ts.map +1 -0
- package/lib/hcloud/index.js +10 -0
- package/lib/hcloud/index.js.map +1 -0
- package/lib/hcloud/kubernetes.d.ts +39 -0
- package/lib/hcloud/kubernetes.d.ts.map +1 -0
- package/lib/hcloud/kubernetes.js +188 -0
- package/lib/hcloud/kubernetes.js.map +1 -0
- package/lib/hcloud/wireguard.d.ts +33 -0
- package/lib/hcloud/wireguard.d.ts.map +1 -0
- package/lib/hcloud/wireguard.js +103 -0
- package/lib/hcloud/wireguard.js.map +1 -0
- package/lib/k0s/cluster.d.ts +51 -0
- package/lib/k0s/cluster.d.ts.map +1 -0
- package/lib/k0s/cluster.js +183 -0
- package/lib/k0s/cluster.js.map +1 -0
- package/lib/k0s/index.d.ts +3 -0
- package/lib/k0s/index.d.ts.map +1 -0
- package/lib/k0s/index.js +6 -0
- package/lib/k0s/index.js.map +1 -0
- package/lib/kubernetes/helm/index.d.ts +3 -0
- package/lib/kubernetes/helm/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/index.js +6 -0
- package/lib/kubernetes/helm/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/chart.d.ts +37 -0
- package/lib/kubernetes/helm/v3/chart.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/chart.js +46 -0
- package/lib/kubernetes/helm/v3/chart.js.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts +3 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.js +29 -0
- package/lib/kubernetes/helm/v3/helpers.js.map +1 -0
- package/lib/kubernetes/helm/v3/index.d.ts +5 -0
- package/lib/kubernetes/helm/v3/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/index.js +10 -0
- package/lib/kubernetes/helm/v3/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/release.d.ts +15 -0
- package/lib/kubernetes/helm/v3/release.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/release.js +18 -0
- package/lib/kubernetes/helm/v3/release.js.map +1 -0
- package/lib/kubernetes/index.d.ts +5 -0
- package/lib/kubernetes/index.d.ts.map +1 -0
- package/lib/kubernetes/index.js +10 -0
- package/lib/kubernetes/index.js.map +1 -0
- package/lib/kubernetes/transformations/filter.d.ts +13 -0
- package/lib/kubernetes/transformations/filter.d.ts.map +1 -0
- package/lib/kubernetes/transformations/filter.js +32 -0
- package/lib/kubernetes/transformations/filter.js.map +1 -0
- package/lib/kubernetes/transformations/index.d.ts +6 -0
- package/lib/kubernetes/transformations/index.d.ts.map +1 -0
- package/lib/kubernetes/transformations/index.js +12 -0
- package/lib/kubernetes/transformations/index.js.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +3 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.js +27 -0
- package/lib/kubernetes/transformations/metadataNamespace.js.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +3 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +61 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +3 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +55 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +1 -0
- package/lib/kubernetes/v1/index.d.ts +5 -0
- package/lib/kubernetes/v1/index.d.ts.map +1 -0
- package/lib/kubernetes/v1/index.js +10 -0
- package/lib/kubernetes/v1/index.js.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts +92 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.js +97 -0
- package/lib/kubernetes/v1/nfsVolume.js.map +1 -0
- package/lib/kubernetes/v1/pullSecret.d.ts +31 -0
- package/lib/kubernetes/v1/pullSecret.d.ts.map +1 -0
- package/lib/kubernetes/v1/pullSecret.js +27 -0
- package/lib/kubernetes/v1/pullSecret.js.map +1 -0
- package/lib/kubernetes/v1/service.d.ts +31 -0
- package/lib/kubernetes/v1/service.d.ts.map +1 -0
- package/lib/kubernetes/v1/service.js +43 -0
- package/lib/kubernetes/v1/service.js.map +1 -0
- package/lib/metallb/controller.d.ts +17 -0
- package/lib/metallb/controller.d.ts.map +1 -0
- package/lib/metallb/controller.js +87 -0
- package/lib/metallb/controller.js.map +1 -0
- package/lib/metallb/index.d.ts +5 -0
- package/lib/metallb/index.d.ts.map +1 -0
- package/lib/metallb/index.js +10 -0
- package/lib/metallb/index.js.map +1 -0
- package/lib/metallb/ipAddressPool.d.ts +20 -0
- package/lib/metallb/ipAddressPool.d.ts.map +1 -0
- package/lib/metallb/ipAddressPool.js +22 -0
- package/lib/metallb/ipAddressPool.js.map +1 -0
- package/lib/metallb/l2Advertisement.d.ts +21 -0
- package/lib/metallb/l2Advertisement.d.ts.map +1 -0
- package/lib/metallb/l2Advertisement.js +22 -0
- package/lib/metallb/l2Advertisement.js.map +1 -0
- package/lib/node/index.d.ts +4 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +6 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/kubernetes.d.ts +38 -0
- package/lib/node/kubernetes.d.ts.map +1 -0
- package/lib/node/kubernetes.js +89 -0
- package/lib/node/kubernetes.js.map +1 -0
- package/lib/node/node.d.ts +21 -0
- package/lib/node/node.d.ts.map +1 -0
- package/lib/node/node.js +3 -0
- package/lib/node/node.js.map +1 -0
- package/lib/openldap/deployment.d.ts +58 -0
- package/lib/openldap/deployment.d.ts.map +1 -0
- package/lib/openldap/deployment.js +217 -0
- package/lib/openldap/deployment.js.map +1 -0
- package/lib/openldap/index.d.ts +3 -0
- package/lib/openldap/index.d.ts.map +1 -0
- package/lib/openldap/index.js +6 -0
- package/lib/openldap/index.js.map +1 -0
- package/lib/plex/index.d.ts +4 -0
- package/lib/plex/index.d.ts.map +1 -0
- package/lib/plex/index.js +8 -0
- package/lib/plex/index.js.map +1 -0
- package/lib/plex/mediaServer.d.ts +46 -0
- package/lib/plex/mediaServer.d.ts.map +1 -0
- package/lib/plex/mediaServer.js +234 -0
- package/lib/plex/mediaServer.js.map +1 -0
- package/lib/plex/playlists.d.ts +62 -0
- package/lib/plex/playlists.d.ts.map +1 -0
- package/lib/plex/playlists.js +129 -0
- package/lib/plex/playlists.js.map +1 -0
- package/lib/prometheus/index.d.ts +4 -0
- package/lib/prometheus/index.d.ts.map +1 -0
- package/lib/prometheus/index.js +8 -0
- package/lib/prometheus/index.js.map +1 -0
- package/lib/prometheus/podMonitor.d.ts +42 -0
- package/lib/prometheus/podMonitor.d.ts.map +1 -0
- package/lib/prometheus/podMonitor.js +17 -0
- package/lib/prometheus/podMonitor.js.map +1 -0
- package/lib/prometheus/serviceMonitor.d.ts +46 -0
- package/lib/prometheus/serviceMonitor.d.ts.map +1 -0
- package/lib/prometheus/serviceMonitor.js +17 -0
- package/lib/prometheus/serviceMonitor.js.map +1 -0
- package/lib/raspberrypi/cluster.d.ts +41 -0
- package/lib/raspberrypi/cluster.d.ts.map +1 -0
- package/lib/raspberrypi/cluster.js +194 -0
- package/lib/raspberrypi/cluster.js.map +1 -0
- package/lib/raspberrypi/index.d.ts +3 -0
- package/lib/raspberrypi/index.d.ts.map +1 -0
- package/lib/raspberrypi/index.js +6 -0
- package/lib/raspberrypi/index.js.map +1 -0
- package/lib/rethinkdb/deployment.d.ts +61 -0
- package/lib/rethinkdb/deployment.d.ts.map +1 -0
- package/lib/rethinkdb/deployment.js +350 -0
- package/lib/rethinkdb/deployment.js.map +1 -0
- package/lib/rethinkdb/index.d.ts +3 -0
- package/lib/rethinkdb/index.d.ts.map +1 -0
- package/lib/rethinkdb/index.js +6 -0
- package/lib/rethinkdb/index.js.map +1 -0
- package/lib/rook/blockPool.d.ts +28 -0
- package/lib/rook/blockPool.d.ts.map +1 -0
- package/lib/rook/blockPool.js +56 -0
- package/lib/rook/blockPool.js.map +1 -0
- package/lib/rook/cluster.d.ts +54 -0
- package/lib/rook/cluster.d.ts.map +1 -0
- package/lib/rook/cluster.js +100 -0
- package/lib/rook/cluster.js.map +1 -0
- package/lib/rook/filesystem.d.ts +29 -0
- package/lib/rook/filesystem.d.ts.map +1 -0
- package/lib/rook/filesystem.js +110 -0
- package/lib/rook/filesystem.js.map +1 -0
- package/lib/rook/index.d.ts +6 -0
- package/lib/rook/index.d.ts.map +1 -0
- package/lib/rook/index.js +12 -0
- package/lib/rook/index.js.map +1 -0
- package/lib/rook/operator.d.ts +19 -0
- package/lib/rook/operator.d.ts.map +1 -0
- package/lib/rook/operator.js +162 -0
- package/lib/rook/operator.js.map +1 -0
- package/lib/samba/deployment.d.ts +79 -0
- package/lib/samba/deployment.d.ts.map +1 -0
- package/lib/samba/deployment.js +238 -0
- package/lib/samba/deployment.js.map +1 -0
- package/lib/samba/index.d.ts +3 -0
- package/lib/samba/index.d.ts.map +1 -0
- package/lib/samba/index.js +6 -0
- package/lib/samba/index.js.map +1 -0
- package/lib/ssh/exec.d.ts +33 -0
- package/lib/ssh/exec.d.ts.map +1 -0
- package/lib/ssh/exec.js +116 -0
- package/lib/ssh/exec.js.map +1 -0
- package/lib/ssh/file.d.ts +43 -0
- package/lib/ssh/file.d.ts.map +1 -0
- package/lib/ssh/file.js +110 -0
- package/lib/ssh/file.js.map +1 -0
- package/lib/ssh/index.d.ts +5 -0
- package/lib/ssh/index.d.ts.map +1 -0
- package/lib/ssh/index.js +8 -0
- package/lib/ssh/index.js.map +1 -0
- package/lib/ssh/types.d.ts +19 -0
- package/lib/ssh/types.d.ts.map +1 -0
- package/lib/ssh/types.js +3 -0
- package/lib/ssh/types.js.map +1 -0
- package/lib/torproxy/deployment.d.ts +31 -0
- package/lib/torproxy/deployment.d.ts.map +1 -0
- package/lib/torproxy/deployment.js +131 -0
- package/lib/torproxy/deployment.js.map +1 -0
- package/lib/torproxy/index.d.ts +3 -0
- package/lib/torproxy/index.d.ts.map +1 -0
- package/lib/torproxy/index.js +6 -0
- package/lib/torproxy/index.js.map +1 -0
- package/lib/traefik/controller.d.ts +50 -0
- package/lib/traefik/controller.d.ts.map +1 -0
- package/lib/traefik/controller.js +166 -0
- package/lib/traefik/controller.js.map +1 -0
- package/lib/traefik/index.d.ts +5 -0
- package/lib/traefik/index.d.ts.map +1 -0
- package/lib/traefik/index.js +10 -0
- package/lib/traefik/index.js.map +1 -0
- package/lib/traefik/middleware.d.ts +27 -0
- package/lib/traefik/middleware.d.ts.map +1 -0
- package/lib/traefik/middleware.js +22 -0
- package/lib/traefik/middleware.js.map +1 -0
- package/lib/traefik/secureIngress.d.ts +32 -0
- package/lib/traefik/secureIngress.d.ts.map +1 -0
- package/lib/traefik/secureIngress.js +58 -0
- package/lib/traefik/secureIngress.js.map +1 -0
- package/lib/ubuntu/assets/init.sh +52 -0
- package/lib/ubuntu/deployment.d.ts +67 -0
- package/lib/ubuntu/deployment.d.ts.map +1 -0
- package/lib/ubuntu/deployment.js +230 -0
- package/lib/ubuntu/deployment.js.map +1 -0
- package/lib/ubuntu/index.d.ts +3 -0
- package/lib/ubuntu/index.d.ts.map +1 -0
- package/lib/ubuntu/index.js +6 -0
- package/lib/ubuntu/index.js.map +1 -0
- package/lib/unifi/controller.d.ts +52 -0
- package/lib/unifi/controller.d.ts.map +1 -0
- package/lib/unifi/controller.js +232 -0
- package/lib/unifi/controller.js.map +1 -0
- package/lib/unifi/index.d.ts +3 -0
- package/lib/unifi/index.d.ts.map +1 -0
- package/lib/unifi/index.js +6 -0
- package/lib/unifi/index.js.map +1 -0
- package/lib/velero/index.d.ts +3 -0
- package/lib/velero/index.d.ts.map +1 -0
- package/lib/velero/index.js +6 -0
- package/lib/velero/index.js.map +1 -0
- package/lib/velero/operator.d.ts +31 -0
- package/lib/velero/operator.d.ts.map +1 -0
- package/lib/velero/operator.js +148 -0
- package/lib/velero/operator.js.map +1 -0
- package/lib/wireguard/deployment.d.ts +82 -0
- package/lib/wireguard/deployment.d.ts.map +1 -0
- package/lib/wireguard/deployment.js +161 -0
- package/lib/wireguard/deployment.js.map +1 -0
- package/lib/wireguard/index.d.ts +3 -0
- package/lib/wireguard/index.d.ts.map +1 -0
- package/lib/wireguard/index.js +6 -0
- package/lib/wireguard/index.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
export interface ServiceArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Metadata for the service resource
|
|
6
|
+
*/
|
|
7
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
8
|
+
/**
|
|
9
|
+
* Spec for the service resource
|
|
10
|
+
*/
|
|
11
|
+
spec: pulumi.Input<k8s.types.input.core.v1.ServiceSpec>;
|
|
12
|
+
/**
|
|
13
|
+
* Optional: Hostnames
|
|
14
|
+
*/
|
|
15
|
+
hostnames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Optional: Target
|
|
18
|
+
*/
|
|
19
|
+
target?: pulumi.Input<string>;
|
|
20
|
+
}
|
|
21
|
+
export declare class Service extends k8s.core.v1.Service {
|
|
22
|
+
readonly hostnames?: pulumi.Output<pulumi.Output<string>[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a new service resource.
|
|
25
|
+
* @param name The name of the service resource.
|
|
26
|
+
* @param args A bag of arguments to control the service creation.
|
|
27
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
28
|
+
*/
|
|
29
|
+
constructor(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../lib/kubernetes/v1/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,qBAAa,OAAQ,SAAQ,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO;IAC9C,SAAgB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAEnE;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAsCjF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Service = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const k8s = require("@pulumi/kubernetes");
|
|
6
|
+
class Service extends k8s.core.v1.Service {
|
|
7
|
+
hostnames;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new service resource.
|
|
10
|
+
* @param name The name of the service resource.
|
|
11
|
+
* @param args A bag of arguments to control the service creation.
|
|
12
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
13
|
+
*/
|
|
14
|
+
constructor(name, args, opts) {
|
|
15
|
+
const serviceArgs = pulumi
|
|
16
|
+
.all([args.metadata, args.spec, args.hostnames, args.target])
|
|
17
|
+
.apply(([metadataWrapped, specWrapped, hostnames, target]) => pulumi.all(hostnames ?? []).apply((hostnames) => {
|
|
18
|
+
const metadata = metadataWrapped;
|
|
19
|
+
const spec = specWrapped;
|
|
20
|
+
if (metadata.annotations === undefined) {
|
|
21
|
+
metadata.annotations = {};
|
|
22
|
+
}
|
|
23
|
+
const annotations = {};
|
|
24
|
+
if (hostnames !== undefined && hostnames.length > 0) {
|
|
25
|
+
annotations["external-dns.alpha.kubernetes.io/hostname"] = hostnames.join(",");
|
|
26
|
+
}
|
|
27
|
+
if (target !== undefined) {
|
|
28
|
+
annotations["external-dns.alpha.kubernetes.io/target"] = target;
|
|
29
|
+
}
|
|
30
|
+
metadata.annotations = { ...annotations, ...metadata.annotations };
|
|
31
|
+
spec.ipFamilyPolicy = "PreferDualStack";
|
|
32
|
+
return { metadata, spec };
|
|
33
|
+
}));
|
|
34
|
+
super(name, serviceArgs, opts);
|
|
35
|
+
if (args.hostnames !== undefined) {
|
|
36
|
+
this.hostnames = pulumi
|
|
37
|
+
.all([args.hostnames])
|
|
38
|
+
.apply(([hostnames]) => hostnames.map((hostname) => pulumi.output(hostname)));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Service = Service;
|
|
43
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../lib/kubernetes/v1/service.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,0CAA0C;AAqB1C,MAAa,OAAQ,SAAQ,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO;IAC9B,SAAS,CAA0C;IAEnE;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC9E,MAAM,WAAW,GAAG,MAAM;aACvB,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;aAC5D,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,EAAE,CAC3D,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,EAAE;YAC9C,MAAM,QAAQ,GAAG,eAAqD,CAAC;YACvE,MAAM,IAAI,GAAG,WAAkD,CAAC;YAEhE,IAAI,QAAQ,CAAC,WAAW,KAAK,SAAS,EAAE;gBACtC,QAAQ,CAAC,WAAW,GAAG,EAAE,CAAC;aAC3B;YAED,MAAM,WAAW,GAA4C,EAAE,CAAC;YAEhE,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBACnD,WAAW,CAAC,2CAA2C,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAChF;YAED,IAAI,MAAM,KAAK,SAAS,EAAE;gBACxB,WAAW,CAAC,yCAAyC,CAAC,GAAG,MAAM,CAAC;aACjE;YAED,QAAQ,CAAC,WAAW,GAAG,EAAE,GAAG,WAAW,EAAE,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;YAEnE,IAAI,CAAC,cAAc,GAAG,iBAAiB,CAAC;YAExC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC5B,CAAC,CAAC,CACH,CAAC;QAEJ,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QAE/B,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,SAAS,GAAG,MAAM;iBACpB,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;iBACrB,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SACjF;IACH,CAAC;CACF;AA/CD,0BA+CC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
export interface MetalLBArgs {
|
|
4
|
+
namespace?: pulumi.Input<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare class MetalLB extends ComponentResource {
|
|
7
|
+
private readonly helmRelease;
|
|
8
|
+
readonly namespace: pulumi.Output<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a new MetalLB resource.
|
|
11
|
+
* @param name The name of MetalLB resource.
|
|
12
|
+
* @param args A bag of arguments to control the MetalLB creation.
|
|
13
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
14
|
+
*/
|
|
15
|
+
constructor(name: string, args: MetalLBArgs, opts?: pulumi.ComponentResourceOptions);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../lib/metallb/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,qBAAa,OAAQ,SAAQ,iBAAiB;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAC9C,SAAgB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEjD;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CA4EpF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MetalLB = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const k8s = require("@pulumi/kubernetes");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const helm = require("../kubernetes/helm");
|
|
8
|
+
class MetalLB extends common_1.ComponentResource {
|
|
9
|
+
helmRelease;
|
|
10
|
+
namespace;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new MetalLB resource.
|
|
13
|
+
* @param name The name of MetalLB resource.
|
|
14
|
+
* @param args A bag of arguments to control the MetalLB creation.
|
|
15
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
16
|
+
*/
|
|
17
|
+
constructor(name, args, opts) {
|
|
18
|
+
super("metallb", name, args, opts);
|
|
19
|
+
opts = this.opts(k8s.Provider);
|
|
20
|
+
this.namespace = args.namespace
|
|
21
|
+
? pulumi.output(args.namespace)
|
|
22
|
+
: new k8s.core.v1.Namespace(name, { metadata: { name } }, opts).metadata.name;
|
|
23
|
+
this.helmRelease = new helm.v3.Release(name, {
|
|
24
|
+
name,
|
|
25
|
+
namespace: this.namespace,
|
|
26
|
+
repositoryOpts: { repo: "https://metallb.github.io/metallb" },
|
|
27
|
+
chart: "metallb",
|
|
28
|
+
values: {
|
|
29
|
+
fullnameOverride: name,
|
|
30
|
+
prometheus: {
|
|
31
|
+
serviceAccount: "default",
|
|
32
|
+
namespace: this.namespace,
|
|
33
|
+
podMonitor: {
|
|
34
|
+
enabled: true,
|
|
35
|
+
metricRelabelings: [
|
|
36
|
+
{
|
|
37
|
+
action: "drop",
|
|
38
|
+
sourceLabels: ["__name__"],
|
|
39
|
+
regex: ["go_.*"].join("|"),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
prometheusRule: { enabled: false },
|
|
44
|
+
},
|
|
45
|
+
controller: {
|
|
46
|
+
affinity: {
|
|
47
|
+
podAntiAffinity: {
|
|
48
|
+
preferredDuringSchedulingIgnoredDuringExecution: [
|
|
49
|
+
{
|
|
50
|
+
weight: 100,
|
|
51
|
+
podAffinityTerm: {
|
|
52
|
+
labelSelector: {
|
|
53
|
+
matchExpressions: [
|
|
54
|
+
{ key: "app.kubernetes.io/name", operator: "In", values: ["metallb"] },
|
|
55
|
+
{ key: "app.kubernetes.io/instance", operator: "In", values: [name] },
|
|
56
|
+
{ key: "app.kubernetes.io/component", operator: "In", values: ["controller"] },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
topologyKey: "kubernetes.io/hostname",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
tolerations: [
|
|
66
|
+
{ key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule" },
|
|
67
|
+
{ key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule" },
|
|
68
|
+
],
|
|
69
|
+
resources: {
|
|
70
|
+
requests: { memory: "48Mi" },
|
|
71
|
+
limits: { memory: "64Mi" },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
speaker: {
|
|
75
|
+
tolerateMaster: false,
|
|
76
|
+
resources: {
|
|
77
|
+
requests: { memory: "64Mi" },
|
|
78
|
+
limits: { memory: "96Mi" },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
}, opts);
|
|
83
|
+
this.registerOutputs();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.MetalLB = MetalLB;
|
|
87
|
+
//# sourceMappingURL=controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../lib/metallb/controller.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,0CAA0C;AAC1C,sCAA8C;AAC9C,2CAA2C;AAM3C,MAAa,OAAQ,SAAQ,0BAAiB;IAC3B,WAAW,CAAkB;IAC9B,SAAS,CAAwB;IAEjD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAsC;QACjF,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEnC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE/B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS;YAC7B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;YAC/B,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAEhF,IAAI,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,EAAE,CAAC,OAAO,CACpC,IAAI,EACJ;YACE,IAAI;YACJ,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,cA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wBACT,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;wBAC5B,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;qBAC3B;iBACF;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,KAAK;oBACrB,SAAS,EAAE;wBACT,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;wBAC5B,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;qBAC3B;iBACF;aACF;SACF,EACD,IAAI,CACL,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CACF;AAtFD,0BAsFC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MetalLBArgs, MetalLB } from "./controller";
|
|
2
|
+
import { IPAddressPoolSpecArgs, IPAddressPoolArgs, IPAddressPool } from "./ipAddressPool";
|
|
3
|
+
import { L2AdvertisementSpecArgs, L2AdvertisementArgs, L2Advertisement } from "./l2Advertisement";
|
|
4
|
+
export { MetalLBArgs, MetalLB, IPAddressPoolSpecArgs, IPAddressPoolArgs, IPAddressPool, L2AdvertisementSpecArgs, L2AdvertisementArgs, L2Advertisement, };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/metallb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElG,OAAO,EACL,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,GAChB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.L2Advertisement = exports.IPAddressPool = exports.MetalLB = void 0;
|
|
4
|
+
const controller_1 = require("./controller");
|
|
5
|
+
Object.defineProperty(exports, "MetalLB", { enumerable: true, get: function () { return controller_1.MetalLB; } });
|
|
6
|
+
const ipAddressPool_1 = require("./ipAddressPool");
|
|
7
|
+
Object.defineProperty(exports, "IPAddressPool", { enumerable: true, get: function () { return ipAddressPool_1.IPAddressPool; } });
|
|
8
|
+
const l2Advertisement_1 = require("./l2Advertisement");
|
|
9
|
+
Object.defineProperty(exports, "L2Advertisement", { enumerable: true, get: function () { return l2Advertisement_1.L2Advertisement; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/metallb/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoD;AAMlD,wFANoB,oBAAO,OAMpB;AALT,mDAA0F;AAQxF,8FARiD,6BAAa,OAQjD;AAPf,uDAAkG;AAUhG,gGAVqD,iCAAe,OAUrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
export interface IPAddressPoolSpecArgs {
|
|
4
|
+
addresses: pulumi.Input<pulumi.Input<string>[]>;
|
|
5
|
+
autoAssign?: pulumi.Input<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export interface IPAddressPoolArgs {
|
|
8
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
9
|
+
spec: pulumi.Input<IPAddressPoolSpecArgs>;
|
|
10
|
+
}
|
|
11
|
+
export declare class IPAddressPool extends k8s.apiextensions.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new IP address pool resource.
|
|
14
|
+
* @param name The name of the IP address pool resource.
|
|
15
|
+
* @param args A bag of arguments to control the IP address pool creation.
|
|
16
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
17
|
+
*/
|
|
18
|
+
constructor(name: string, args: IPAddressPoolArgs, opts?: pulumi.CustomResourceOptions);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ipAddressPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipAddressPool.d.ts","sourceRoot":"","sources":["../../../lib/metallb/ipAddressPool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC3D,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;CAC3C;AAED,qBAAa,aAAc,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACjE;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAYvF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IPAddressPool = void 0;
|
|
4
|
+
const k8s = require("@pulumi/kubernetes");
|
|
5
|
+
class IPAddressPool extends k8s.apiextensions.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new IP address pool resource.
|
|
8
|
+
* @param name The name of the IP address pool resource.
|
|
9
|
+
* @param args A bag of arguments to control the IP address pool creation.
|
|
10
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
11
|
+
*/
|
|
12
|
+
constructor(name, args, opts) {
|
|
13
|
+
super(name, {
|
|
14
|
+
apiVersion: "metallb.io/v1beta1",
|
|
15
|
+
kind: "IPAddressPool",
|
|
16
|
+
metadata: args.metadata,
|
|
17
|
+
spec: args.spec,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.IPAddressPool = IPAddressPool;
|
|
22
|
+
//# sourceMappingURL=ipAddressPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipAddressPool.js","sourceRoot":"","sources":["../../../lib/metallb/ipAddressPool.ts"],"names":[],"mappings":";;;AACA,0CAA0C;AAY1C,MAAa,aAAc,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACjE;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAuB,EAAE,IAAmC;QACpF,KAAK,CACH,IAAI,EACJ;YACE,UAAU,EAAE,oBAAoB;YAChC,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,EACD,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAnBD,sCAmBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
export interface L2AdvertisementSpecArgs {
|
|
4
|
+
ipAddressPoolSelectors?: pulumi.Input<pulumi.Input<k8s.types.input.meta.v1.LabelSelector>[]>;
|
|
5
|
+
ipAddressPools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
6
|
+
nodeSelectors?: pulumi.Input<pulumi.Input<k8s.types.input.meta.v1.LabelSelector>[]>;
|
|
7
|
+
}
|
|
8
|
+
export interface L2AdvertisementArgs {
|
|
9
|
+
metadata: pulumi.Input<k8s.types.input.meta.v1.ObjectMeta>;
|
|
10
|
+
spec: pulumi.Input<L2AdvertisementSpecArgs>;
|
|
11
|
+
}
|
|
12
|
+
export declare class L2Advertisement extends k8s.apiextensions.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Create a new L2 advertisement resource.
|
|
15
|
+
* @param name The name of the L2 advertisement resource.
|
|
16
|
+
* @param args A bag of arguments to control the L2 advertisement creation.
|
|
17
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
18
|
+
*/
|
|
19
|
+
constructor(name: string, args: L2AdvertisementArgs, opts?: pulumi.CustomResourceOptions);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=l2Advertisement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"l2Advertisement.d.ts","sourceRoot":"","sources":["../../../lib/metallb/l2Advertisement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,MAAM,WAAW,uBAAuB;IACtC,sBAAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;CACrF;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAC3D,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC7C;AAED,qBAAa,eAAgB,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACnE;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAYzF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.L2Advertisement = void 0;
|
|
4
|
+
const k8s = require("@pulumi/kubernetes");
|
|
5
|
+
class L2Advertisement extends k8s.apiextensions.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new L2 advertisement resource.
|
|
8
|
+
* @param name The name of the L2 advertisement resource.
|
|
9
|
+
* @param args A bag of arguments to control the L2 advertisement creation.
|
|
10
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
11
|
+
*/
|
|
12
|
+
constructor(name, args, opts) {
|
|
13
|
+
super(name, {
|
|
14
|
+
apiVersion: "metallb.io/v1beta1",
|
|
15
|
+
kind: "L2Advertisement",
|
|
16
|
+
metadata: args.metadata,
|
|
17
|
+
spec: args.spec,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.L2Advertisement = L2Advertisement;
|
|
22
|
+
//# sourceMappingURL=l2Advertisement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"l2Advertisement.js","sourceRoot":"","sources":["../../../lib/metallb/l2Advertisement.ts"],"names":[],"mappings":";;;AACA,0CAA0C;AAa1C,MAAa,eAAgB,SAAQ,GAAG,CAAC,aAAa,CAAC,cAAc;IACnE;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAyB,EAAE,IAAmC;QACtF,KAAK,CACH,IAAI,EACJ;YACE,UAAU,EAAE,oBAAoB;YAChC,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,EACD,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAnBD,0CAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Kubernetes = void 0;
|
|
4
|
+
const kubernetes_1 = require("./kubernetes");
|
|
5
|
+
Object.defineProperty(exports, "Kubernetes", { enumerable: true, get: function () { return kubernetes_1.Kubernetes; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/node/index.ts"],"names":[],"mappings":";;;AACA,6CAA0D;AAE3B,2FAFN,uBAAU,OAEM"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
import { Node } from "./node";
|
|
4
|
+
export interface KubernetesArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Optional: Namespace
|
|
7
|
+
*/
|
|
8
|
+
namespace?: pulumi.Input<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Nodes
|
|
11
|
+
*/
|
|
12
|
+
nodes: pulumi.Input<pulumi.Input<Node>[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Cluster name
|
|
15
|
+
*/
|
|
16
|
+
clusterName: pulumi.Input<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Domain
|
|
19
|
+
*/
|
|
20
|
+
domain: pulumi.Input<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Optional: IP type (public or private)
|
|
23
|
+
*/
|
|
24
|
+
ipType?: pulumi.Input<string>;
|
|
25
|
+
}
|
|
26
|
+
export declare class Kubernetes extends ComponentResource {
|
|
27
|
+
private readonly api;
|
|
28
|
+
private readonly nodes;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new node dns endpoints resource.
|
|
31
|
+
* @param name The name of the node dns endpoints resource.
|
|
32
|
+
* @param args A bag of arguments to control the node dns endpoints creation.
|
|
33
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string, args: KubernetesArgs, opts?: pulumi.ComponentResourceOptions);
|
|
36
|
+
private nodeIPs;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=kubernetes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubernetes.d.ts","sourceRoot":"","sources":["../../../lib/node/kubernetes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,qBAAa,UAAW,SAAQ,iBAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IAErD;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;IA6EtF,OAAO,CAAC,OAAO;CA2BhB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Kubernetes = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const k8s = require("@pulumi/kubernetes");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const externalDns_1 = require("../externalDns");
|
|
8
|
+
class Kubernetes extends common_1.ComponentResource {
|
|
9
|
+
api;
|
|
10
|
+
nodes;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new node dns endpoints resource.
|
|
13
|
+
* @param name The name of the node dns endpoints resource.
|
|
14
|
+
* @param args A bag of arguments to control the node dns endpoints creation.
|
|
15
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
16
|
+
*/
|
|
17
|
+
constructor(name, args, opts) {
|
|
18
|
+
super("node:kubernetes", name, args, opts);
|
|
19
|
+
opts = this.opts(k8s.Provider);
|
|
20
|
+
const namespace = args.namespace ?? "kube-system";
|
|
21
|
+
const ipType = args.ipType ?? "private";
|
|
22
|
+
this.api = pulumi.all([args.nodes, args.domain, ipType]).apply(([nodes, domain, ipType]) => new externalDns_1.DnsEndpoint(`${name}-api`, {
|
|
23
|
+
metadata: { namespace, name: `${name}-api` },
|
|
24
|
+
spec: {
|
|
25
|
+
endpoints: pulumi.all(nodes).apply((nodes) => {
|
|
26
|
+
const dnsName = pulumi.interpolate `api.${domain}`;
|
|
27
|
+
const ipv4Endpoints = [];
|
|
28
|
+
const ipv6Endpoints = [];
|
|
29
|
+
const endpoints = [];
|
|
30
|
+
for (const node of nodes) {
|
|
31
|
+
if ((node.roles ?? []).includes("controller")) {
|
|
32
|
+
const nodeIPs = this.nodeIPs(node, ipType);
|
|
33
|
+
ipv4Endpoints.push(...nodeIPs.ipv4Adresses);
|
|
34
|
+
ipv6Endpoints.push(...nodeIPs.ipv6Addresses);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (ipv4Endpoints.length > 0) {
|
|
38
|
+
endpoints.push({ dnsName, recordType: "A", targets: ipv4Endpoints });
|
|
39
|
+
}
|
|
40
|
+
if (ipv6Endpoints.length > 0) {
|
|
41
|
+
endpoints.push({ dnsName, recordType: "AAAA", targets: ipv6Endpoints });
|
|
42
|
+
}
|
|
43
|
+
return endpoints;
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
}, opts));
|
|
47
|
+
this.nodes = pulumi
|
|
48
|
+
.all([args.nodes, args.domain, args.clusterName, ipType])
|
|
49
|
+
.apply(([nodes, domain, clusterName, ipType]) => nodes.map((node) => {
|
|
50
|
+
const dnsName = pulumi.interpolate `${node.hostname.replace(`${clusterName}-`, "")}.${domain}`;
|
|
51
|
+
const endpoints = [];
|
|
52
|
+
const nodeIPs = this.nodeIPs(node, ipType);
|
|
53
|
+
if (nodeIPs.ipv4Adresses.length > 0) {
|
|
54
|
+
endpoints.push({ dnsName, recordType: "A", targets: nodeIPs.ipv4Adresses });
|
|
55
|
+
}
|
|
56
|
+
if (nodeIPs.ipv6Addresses.length > 0) {
|
|
57
|
+
endpoints.push({ dnsName, recordType: "AAAA", targets: nodeIPs.ipv6Addresses });
|
|
58
|
+
}
|
|
59
|
+
return new externalDns_1.DnsEndpoint(`${name}-${node.hostname}`, {
|
|
60
|
+
metadata: { namespace, name: `${name}-${node.hostname}` },
|
|
61
|
+
spec: { endpoints },
|
|
62
|
+
}, opts);
|
|
63
|
+
}));
|
|
64
|
+
this.registerOutputs();
|
|
65
|
+
}
|
|
66
|
+
nodeIPs(node, ipType) {
|
|
67
|
+
const ipv4Adresses = [];
|
|
68
|
+
const ipv6Addresses = [];
|
|
69
|
+
if (ipType === "private") {
|
|
70
|
+
if (node.privateIpv4Address !== undefined) {
|
|
71
|
+
ipv4Adresses.push(node.privateIpv4Address);
|
|
72
|
+
}
|
|
73
|
+
if (node.privateIpv6Address !== undefined) {
|
|
74
|
+
ipv6Addresses.push(node.privateIpv6Address);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
if (node.ipv4Address !== undefined) {
|
|
79
|
+
ipv4Adresses.push(node.ipv4Address);
|
|
80
|
+
}
|
|
81
|
+
if (node.ipv6Address !== undefined) {
|
|
82
|
+
ipv6Addresses.push(node.ipv6Address);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return { ipv4Adresses, ipv6Addresses };
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.Kubernetes = Kubernetes;
|
|
89
|
+
//# sourceMappingURL=kubernetes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubernetes.js","sourceRoot":"","sources":["../../../lib/node/kubernetes.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,0CAA0C;AAC1C,sCAA8C;AAC9C,gDAA+D;AA0B/D,MAAa,UAAW,SAAQ,0BAAiB;IAC9B,GAAG,CAA6B;IAChC,KAAK,CAA+B;IAErD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAoB,EAAE,IAAsC;QACpF,KAAK,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAE3C,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE/B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C;aACjF;YAED,OAAO,IAAI,yBAAW,CACpB,GAAG,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,EAC1B;gBACE,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;gBACzD,IAAI,EAAE,EAAE,SAAS,EAAE;aACpB,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;QAEJ,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAEO,OAAO,CACb,IAAU,EACV,MAAc;QAEd,MAAM,YAAY,GAA2B,EAAE,CAAC;QAChD,MAAM,aAAa,GAA2B,EAAE,CAAC;QAEjD,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,IAAI,IAAI,CAAC,kBAAkB,KAAK,SAAS,EAAE;gBACzC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;aAC5C;YAED,IAAI,IAAI,CAAC,kBAAkB,KAAK,SAAS,EAAE;gBACzC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;aAC7C;SACF;aAAM;YACL,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;gBAClC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aACrC;YAED,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;gBAClC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aACtC;SACF;QAED,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;IACzC,CAAC;CACF;AAlHD,gCAkHC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export interface Node {
|
|
3
|
+
id?: pulumi.Input<string>;
|
|
4
|
+
hostname: pulumi.Input<string>;
|
|
5
|
+
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
6
|
+
ipv4Address?: pulumi.Input<string>;
|
|
7
|
+
privateIpv4Address?: pulumi.Input<string>;
|
|
8
|
+
ipv6Address?: pulumi.Input<string>;
|
|
9
|
+
privateIpv6Address?: pulumi.Input<string>;
|
|
10
|
+
labels?: pulumi.Input<{
|
|
11
|
+
[key: string]: pulumi.Input<string>;
|
|
12
|
+
}>;
|
|
13
|
+
taints?: pulumi.Input<pulumi.Input<{
|
|
14
|
+
effect: pulumi.Input<string>;
|
|
15
|
+
key: pulumi.Input<string>;
|
|
16
|
+
value: pulumi.Input<string>;
|
|
17
|
+
}>[]>;
|
|
18
|
+
username?: pulumi.Input<string>;
|
|
19
|
+
privateKey?: pulumi.Input<string>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../lib/node/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,MAAM,WAAW,IAAI;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CACnB,MAAM,CAAC,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC,EAAE,CACzG,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
package/lib/node/node.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../lib/node/node.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as k8s from "@pulumi/kubernetes";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
export interface OpenLdapServerArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Optional: Namespace
|
|
7
|
+
*/
|
|
8
|
+
namespace?: pulumi.Input<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Root DN
|
|
11
|
+
*/
|
|
12
|
+
rootDN: pulumi.Input<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Hostname
|
|
15
|
+
*/
|
|
16
|
+
hostname: pulumi.Input<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Optional: Storage
|
|
19
|
+
*/
|
|
20
|
+
storage?: pulumi.Input<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Optional: Resources
|
|
23
|
+
*/
|
|
24
|
+
resources?: pulumi.Input<k8s.types.input.core.v1.ResourceRequirements>;
|
|
25
|
+
/**
|
|
26
|
+
* Name of cluster issuer
|
|
27
|
+
*/
|
|
28
|
+
clusterIssuer: pulumi.Input<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Optional: Protect critical resources
|
|
31
|
+
*/
|
|
32
|
+
protect?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare class OpenLdapServer extends ComponentResource {
|
|
35
|
+
private readonly podSecurityPolicy;
|
|
36
|
+
private readonly serviceAccount;
|
|
37
|
+
private readonly role;
|
|
38
|
+
private readonly roleBinding;
|
|
39
|
+
private readonly dataVolumeClaim;
|
|
40
|
+
private readonly adminSecret;
|
|
41
|
+
private readonly certificate;
|
|
42
|
+
private readonly deployment;
|
|
43
|
+
private readonly podDisruptionBudget;
|
|
44
|
+
private readonly service;
|
|
45
|
+
readonly namespace: pulumi.Output<string>;
|
|
46
|
+
readonly adminCN: pulumi.Output<string>;
|
|
47
|
+
readonly adminPassword: pulumi.Output<string>;
|
|
48
|
+
readonly hostname: pulumi.Output<string>;
|
|
49
|
+
readonly rootDN: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a new OpenLDAP server resource.
|
|
52
|
+
* @param name The name of the OpenLDAP server resource.
|
|
53
|
+
* @param args A bag of arguments to control the OpenLDAP server creation.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args: OpenLdapServerArgs, opts?: pulumi.ComponentResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../lib/openldap/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,WAAW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