fix: replace existing port-map ingress objects with domain ingress objects

Domains cannot be reused across ingress objects, and port maps are a function of a domain, so the inversion here makes most sense (at the cost of some downtime when migrating.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-03-12 03:55:40 -04:00
1 parent 59958181e4
commit d4b484a33a
10 files changed
+152 -25

No files matched your search

+6 -1
View File
@@ -238,11 +238,16 @@ type ProcessLabels struct {
}
type ProcessWeb struct {
Domains []string `yaml:"domains,omitempty"`
Domains []ProcessDomains `yaml:"domains,omitempty"`
PortMaps []ProcessPortMap `yaml:"port_maps,omitempty"`
TLS ProcessTls `yaml:"tls"`
}
type ProcessDomains struct {
Name string `yaml:"domain"`
Slug string `yaml:"slug"`
}
type ProcessResourcesMap struct {
Limits ProcessResources `yaml:"limits,omitempty"`
Requests ProcessResources `yaml:"requests,omitempty"`