portainer/app/kubernetes/models/service/payloads.js

23 lines
503 B
JavaScript

import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
/**
* KubernetesServiceCreatePayload Model
*/
const _KubernetesServiceCreatePayload = Object.freeze({
metadata: new KubernetesCommonMetadataPayload(),
spec: {
ports: [],
selector: {
app: '',
},
type: '',
clusterIP: '',
},
});
export class KubernetesServiceCreatePayload {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesServiceCreatePayload)));
}
}