KubernetesManifestResource
Handle
interface KubernetesManifestResource { metadata: ObjectMetaV1; withAnnotation( key: string, value: string): KubernetesManifestResource; withField( path: string, value: any): KubernetesManifestResource; withLabel( key: string, value: string): KubernetesManifestResource; withNamespace(namespace: string): KubernetesManifestResource;}6 members
Properties
property
metadataObjectMetaV1 get · setGets or sets the metadata for the Kubernetes resource.
Methods
method
withAnnotation Adds or updates a Kubernetes annotation on this manifest.
withAnnotation( key: string, value: string): KubernetesManifestResourceParameters
keystringThe annotation key.valuestringThe annotation value.Returns
KubernetesManifestResource method
withField Adds or updates a manifest field using a dot-separated path.
withField( path: string, value: any): KubernetesManifestResourceParameters
pathstringThe dot-separated manifest field path, for example `spec.replicas` or `data.username`.valueanyThe JSON-compatible field value.Returns
KubernetesManifestResource method
withLabel Adds or updates a Kubernetes label on this manifest.
withLabel( key: string, value: string): KubernetesManifestResourceParameters
keystringThe label key.valuestringThe label value.Returns
KubernetesManifestResource method
withNamespace Sets the namespace for this manifest.
withNamespace(namespace: string): KubernetesManifestResourceParameters
namespacestringThe Kubernetes namespace.Returns
KubernetesManifestResource