logical.documentsOffunctionno test imports itfunction documentsOf(text: string): readonly string[]The documents of a text of several, split at the lines that are only ---.
Kubernetes manifests: one YAML text with documents separated by ---. A Deployment, StatefulSet, DaemonSet, Job or CronJob is an application (with the image of its first container); a Service is an endpoint for each of its ports (open to the internet where it is a LoadBalancer, to the partners where it is a NodePort, internal where it is a ClusterIP), exposed by the applications its selector picks; an Ingress is an endpoint for each host (https where it has a TLS section), that depends on the services it routes to. Secrets are never read: a Secret is not an asset, and its data is not copied.
import { importKubernetes } from "./kubernetes.ts";
importKubernetes("k.yaml", "apiVersion: v1\nkind: Service\nmetadata:\n name: web\nspec:\n ports:\n - port: 80\n").assets.length; // 1logical.documentsOffunctionno test imports itfunction documentsOf(text: string): readonly string[]The documents of a text of several, split at the lines that are only ---.
logical.importKubernetesfunctionno test imports itfunction importKubernetes(source: string, text: string): ImportsThe assets and links of the manifests in a text.
documentsOffunctionno test imports itfunction documentsOf(text: string): readonly string[]The documents of a text of several, split at the lines that are only ---.
importKubernetesfunctionfunction importKubernetes(source: string, text: string): ImportsThe assets and links of the manifests in a text.