interface ConfigMaps { create( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>, ): Promise<boolean>; createOrReplace( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>, ): Promise<boolean>; delete(namespace: NamespaceName, name: string): Promise<boolean>; exists(namespace: NamespaceName, name: string): Promise<boolean>; list(namespace: NamespaceName, labels: string[]): Promise<V1ConfigMap[]>; listForAllNamespaces(labels: string[]): Promise<V1ConfigMap[]>; read(namespace: NamespaceName, name: string): Promise<V1ConfigMap>; replace( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>, ): Promise<boolean>; update( namespace: NamespaceName, name: string, data: Record<string, string>, ): Promise<void>;} Methods
create
create( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>,): Promise<boolean> Parameters
- namespace: NamespaceName
- name: string
- labels: Record<string, string>
- data: Record<string, string>
Returns Promise<boolean>
createOrReplace
createOrReplace( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>,): Promise<boolean> Parameters
- namespace: NamespaceName
- name: string
- labels: Record<string, string>
- data: Record<string, string>
Returns Promise<boolean>
list
list(namespace: NamespaceName, labels: string[]): Promise<V1ConfigMap[]> Returns Promise<V1ConfigMap[]>
list of config maps
listForAllNamespaces
listForAllNamespaces(labels: string[]): Promise<V1ConfigMap[]> Returns Promise<V1ConfigMap[]>
list of config maps
read
read(namespace: NamespaceName, name: string): Promise<V1ConfigMap> Returns Promise<V1ConfigMap>
replace
replace( namespace: NamespaceName, name: string, labels: Record<string, string>, data: Record<string, string>,): Promise<boolean> Parameters
- namespace: NamespaceName
- name: string
- labels: Record<string, string>
- data: Record<string, string>
Returns Promise<boolean>
update
update( namespace: NamespaceName, name: string, data: Record<string, string>,): Promise<void>
Create a new config map. If the config map already exists, it will not be replaced.