You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/models/config-map/models.js

31 lines
723 B

export const KubernetesPortainerConfigMapNamespace = 'portainer';
export const KubernetesPortainerConfigMapConfigName = 'portainer-config';
export const KubernetesPortainerConfigMapAccessKey = 'NamespaceAccessPolicies';
export function KubernetesPortainerAccessConfigMap() {
return {
Id: 0,
Name: KubernetesPortainerConfigMapConfigName,
Namespace: KubernetesPortainerConfigMapNamespace,
Data: {},
};
}
/**
* ConfigMap Model
*/
const _KubernetesConfigMap = Object.freeze({
Id: 0,
Name: '',
Namespace: '',
Yaml: '',
ConfigurationOwner: '',
Data: [],
});
export class KubernetesConfigMap {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesConfigMap)));
}
}