mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Reset immutable fields in SyncSpec.
This commit is contained in:
parent
a438d333d1
commit
5dce377765
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ func (s *SyncSpec) SetDefaultsFrom(source SyncSpec) {
|
|||
// Field names are relative to given field prefix.
|
||||
func (s SyncSpec) ResetImmutableFields(fieldPrefix string, target *SyncSpec) []string {
|
||||
var resetFields []string
|
||||
if list := s.ExternalAccess.ResetImmutableFields(fieldPrefix+".externalAccess", &target.ExternalAccess); len(list) > 0 {
|
||||
resetFields = append(resetFields, list...)
|
||||
}
|
||||
if list := s.Authentication.ResetImmutableFields(fieldPrefix+".auth", &target.Authentication); len(list) > 0 {
|
||||
resetFields = append(resetFields, list...)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue