mirror of
https://github.com/rancher/types.git
synced 2025-07-30 20:44:34 +00:00
Port to dns record
This commit is contained in:
parent
1b3e8393c7
commit
f66edc8465
@ -558,7 +558,6 @@ func addServiceOrDNSRecord(dns bool) types.SchemasInitFunc {
|
||||
&m.Drop{Field: "healthCheckNodePort"},
|
||||
&m.Drop{Field: "loadBalancerIP"},
|
||||
&m.Drop{Field: "loadBalancerSourceRanges"},
|
||||
&m.Drop{Field: "ports"},
|
||||
&m.Drop{Field: "publishNotReadyAddresses"},
|
||||
&m.Drop{Field: "sessionAffinity"},
|
||||
&m.Drop{Field: "sessionAffinityConfig"},
|
||||
@ -573,6 +572,11 @@ func addServiceOrDNSRecord(dns bool) types.SchemasInitFunc {
|
||||
f.Update = false
|
||||
return f
|
||||
})
|
||||
schema.MustCustomizeField("ports", func(f types.Field) types.Field {
|
||||
f.Create = false
|
||||
f.Update = false
|
||||
return f
|
||||
})
|
||||
}
|
||||
}, projectOverride{}, struct {
|
||||
Description string `json:"description"`
|
||||
|
Loading…
Reference in New Issue
Block a user