fix: adjust guest access settings (#53)
This commit is contained in:
@@ -482,9 +482,17 @@ customizations:
|
||||
omitEmpty: true
|
||||
SettingGuestAccess:
|
||||
fields:
|
||||
AllowedSubnet:
|
||||
jsonPath: "allowed_subnet"
|
||||
RestrictedSubnet:
|
||||
jsonPath: "restricted_subnet"
|
||||
GoogleDomain:
|
||||
omitEmpty: false
|
||||
Expire:
|
||||
fieldType: "int"
|
||||
customUnmarshalType: "emptyStringInt"
|
||||
RestrictedDNSServers:
|
||||
omitEmpty: false
|
||||
SettingIps:
|
||||
fields:
|
||||
Honeypot:
|
||||
|
||||
@@ -47,6 +47,7 @@ type FieldInfoOverride struct {
|
||||
OmitEmpty *bool `yaml:"omitEmpty"`
|
||||
CustomUnmarshalType *string `yaml:"customUnmarshalType"`
|
||||
CustomUnmarshalFunc *string `yaml:"customUnmarshalFunc"`
|
||||
JsonPath *string `yaml:"jsonPath"`
|
||||
}
|
||||
|
||||
func compositeCustomizationsProcessor(customizationsProcessor FieldProcessor) FieldProcessor {
|
||||
@@ -103,6 +104,9 @@ func (r *ResourceCustomization) toFieldProcessor() FieldProcessor {
|
||||
if fc.Overrides.FieldName != nil {
|
||||
f.FieldName = *fc.Overrides.FieldName
|
||||
}
|
||||
if fc.Overrides.JsonPath != nil {
|
||||
f.JSONName = *fc.Overrides.JsonPath
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user