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/ingress/payloads.js

36 lines
642 B

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,
},
},
},
};
}