mirror of https://github.com/portainer/portainer
36 lines
642 B
JavaScript
36 lines
642 B
JavaScript
import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
|
|
|
|
export function KubernetesIngressCreatePayload() {
|
|
return {
|
|
metadata: new KubernetesCommonMetadataPayload(),
|
|
spec: {
|
|
ingressClassName: '',
|
|
rules: [],
|
|
},
|
|
};
|
|
}
|
|
|
|
export function KubernetesIngressRuleCreatePayload() {
|
|
return {
|
|
host: '',
|
|
http: {
|
|
paths: [],
|
|
},
|
|
};
|
|
}
|
|
|
|
export function KubernetesIngressRulePathCreatePayload() {
|
|
return {
|
|
path: '',
|
|
pathType: 'ImplementationSpecific',
|
|
backend: {
|
|
service: {
|
|
name: '',
|
|
port: {
|
|
number: 0,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|