File tree Expand file tree Collapse file tree
pkg/apis/cpo.opensource.cybertec.at/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -707,6 +707,49 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
707707 "ttl" : {
708708 Type : "integer" ,
709709 },
710+ "log" : {
711+ Type : "object" ,
712+ Properties : map [string ]apiextv1.JSONSchemaProps {
713+ "type" : {
714+ Type : "string" ,
715+ Enum : []apiextv1.JSON {
716+ {Raw : []byte (`"plain"` )},
717+ {Raw : []byte (`"json"` )},
718+ },
719+ },
720+ "level" : {
721+ Type : "string" ,
722+ Enum : []apiextv1.JSON {
723+ {Raw : []byte (`"DEBUG"` )},
724+ {Raw : []byte (`"INFO"` )},
725+ {Raw : []byte (`"WARNING"` )},
726+ {Raw : []byte (`"ERROR"` )},
727+ {Raw : []byte (`"CRITICAL"` )},
728+ },
729+ },
730+ "traceback_level" : {
731+ Type : "string" ,
732+ Enum : []apiextv1.JSON {
733+ {Raw : []byte (`"DEBUG"` )},
734+ {Raw : []byte (`"INFO"` )},
735+ {Raw : []byte (`"WARNING"` )},
736+ {Raw : []byte (`"ERROR"` )},
737+ {Raw : []byte (`"CRITICAL"` )},
738+ },
739+ },
740+ "static_fields" : {
741+ Type : "object" ,
742+ AdditionalProperties : & apiextv1.JSONSchemaPropsOrBool {
743+ Schema : & apiextv1.JSONSchemaProps {
744+ Type : "string" ,
745+ },
746+ },
747+ },
748+ "deduplicate_heartbeat_logs" : {
749+ Type : "boolean" ,
750+ },
751+ },
752+ },
710753 },
711754 },
712755 "podAnnotations" : {
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ type Patroni struct {
182182 SynchronousNodeCount uint32 `json:"synchronous_node_count,omitempty" defaults:"1"`
183183 Multisite * Multisite `json:"multisite,omitempty"`
184184 FailsafeMode * bool `json:"failsafe_mode,omitempty"`
185+ Log * PatroniLog `json:"log,omitempty"`
185186}
186187
187188// StandbyDescription contains remote primary config or s3/gs wal path
@@ -342,3 +343,11 @@ type EtcdConfig struct {
342343 Protocol * string `json:"protocol,omitempty"`
343344 CertSecretName * string `json:"certSecretName,omitempty"`
344345}
346+
347+ type PatroniLog struct {
348+ Type string `json:"type,omitempty"`
349+ Level string `json:"level,omitempty"`
350+ TracebackLevel string `json:"traceback_level,omitempty"`
351+ StaticFields map [string ]string `json:"static_fields,omitempty"`
352+ DeduplicateHeartbeatLogs * bool `json:"deduplicate_heartbeat_logs,omitempty"`
353+ }
You can’t perform that action at this time.
0 commit comments