CreateResourceData
Data object for creating a new resource. Must include a type property.
Example
import { useResources, K8S } from '@shell/apis';
const resources = useResources();
const newConfigMap: CreateResourceData = {
type: K8S.CONFIG_MAP,
metadata: { name: 'my-config', namespace: 'default' },
data: { key: 'value' }
};
await resources.cluster.create(newConfigMap);
Indexable
[key: string]: any
Properties
type
type: any;