Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/kubernetes/resource"

Index

Functions

appObject

  • Create KubernetesObject from KubernetesApplication and kind. This method only supports the types of resources managed as part of a KuberneteApplication, namely: Namespace, Secret, Service, ServiceAccount, Deployment, Ingress, ClusterRole, ClusterRoleBinding, Role, and RoleBinding.

    Parameters

    • app: KubernetesDelete

      Kubernetes application

    • kind: string

      kind of object to return

    Returns KubernetesObject

    proper Kubernetes resource object

k8sObject

  • k8sObject(spec: KubernetesObject): KubernetesObject
  • Convert a full Kubernetes resource spec into a minimal KubernetesObject.

    Parameters

    • spec: KubernetesObject

      Kubernetes spec to convert

    Returns KubernetesObject

    Minimal Kubernetes object

logObject

  • logObject(spec: KubernetesObject): string
  • Safely stringify a Kubernetes resource spec, removing any sensitive data, suitable for logging. The string returned is a compact representation, not pretty printed, and if it is long, it may be truncated.

    Parameters

    • spec: KubernetesObject

      Kubernetes spec to stringify

    Returns string

    String representation of spec with sensitive information removed

Generated using TypeDoc