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/models.js

37 lines
780 B

export function KubernetesIngress() {
return {
Name: '',
Namespace: '',
Annotations: {},
// Host: undefined,
Hosts: [],
// PreviousHost: undefined, // only use for RP ingress host edit
Paths: [],
IngressClassName: '',
};
}
// TODO: refactor @LP
// rename this model to KubernetesIngressPath (and all it's references)
// as it's conceptually not an ingress rule (element of ingress.spec.rules)
// but a path (element of ingress.spec.rules[].paths)
export function KubernetesIngressRule() {
return {
IngressName: '',
ServiceName: '',
Host: '',
IP: '',
Port: '',
Path: '',
};
}
export function KubernetesIngressClass() {
return {
Name: '',
Type: undefined,
NeedsDeletion: false,
IsNew: true,
};
}