fix: adjust guest access settings (#53)

This commit is contained in:
Mateusz Filipowicz
2025-03-17 04:09:53 +01:00
committed by GitHub
parent 873818ddac
commit c8a3b96575
3 changed files with 16 additions and 4 deletions
+8
View File
@@ -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:
+4
View File
@@ -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
}