export function KubernetesIngress() {
return {
Name: '',
Namespace: '',
Annotations: {},
// Host: undefined,
Hosts: [],
// PreviousHost: undefined, // only use for RP ingress host edit
Paths: [],
IngressClassName: '',
TLS: [],
};
}
// 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() {
IngressName: '',
ServiceName: '',
Host: '',
IP: '',
Port: '',
Path: '',
export function KubernetesIngressClass() {
Type: undefined,
NeedsDeletion: false,
IsNew: true,