Commit daily changes

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot
2025-02-03 00:13:01 +00:00
parent c35a357b6a
commit f8f6d744c4
@@ -2,58 +2,58 @@ package valuesYaml
// MiddlewareEntry represents the schema for a middleware entry. // MiddlewareEntry represents the schema for a middleware entry.
type MiddlewareEntry struct { type MiddlewareEntry struct {
Name string `yaml:"name" schema:"type:string,default:'',required:true"` Name string `yaml:"name" schema:"type:string,default:'',required:true"`
} }
// Integration represents the schema for integrations. // Integration represents the schema for integrations.
type Integration struct { type Integration struct {
Homepage IntegrationHomepage `yaml:"homepage" schema:"additional_attrs:true,type:dict"` Homepage IntegrationHomepage `yaml:"homepage" schema:"additional_attrs:true,type:dict"`
} }
// IntegrationHomepage represents the schema for the Homepage integration. // IntegrationHomepage represents the schema for the Homepage integration.
type IntegrationHomepage struct { type IntegrationHomepage struct {
Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"` Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"`
Name string `yaml:"name" schema:"type:string,default:'',show_if:[[enabled,=,true]]"` Name string `yaml:"name" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
Description string `yaml:"description" schema:"type:string,default:'',show_if:[[enabled,=,true]]"` Description string `yaml:"description" schema:"type:string,default:'',show_if:[[enabled,=,true]]"`
Group string `yaml:"group" schema:"type:string,default:default,show_if:[[enabled,=,true]]"` Group string `yaml:"group" schema:"type:string,default:default,show_if:[[enabled,=,true]]"`
} }
// TLSEntry represents the schema for a TLS entry. // TLSEntry represents the schema for a TLS entry.
type TLSEntry struct { type TLSEntry struct {
Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"` Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"` CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
ClusterCertificate string `yaml:"clusterCertificate" schema:"type:string,show_if:[[certificateIssuer,=,]]"` ClusterCertificate string `yaml:"clusterCertificate" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
SecretName string `yaml:"secretName" schema:"type:string,show_if:[[certificateIssuer,=,]]"` SecretName string `yaml:"secretName" schema:"type:string,show_if:[[certificateIssuer,=,]]"`
ScaleCert int `yaml:"scaleCert" schema:"type:int,show_if:[[certificateIssuer,=,]]"` ScaleCert int `yaml:"scaleCert" schema:"type:int,show_if:[[certificateIssuer,=,]]"`
} }
// IngressConfiguration represents the schema for Ingress settings with variable name. // IngressConfiguration represents the schema for Ingress settings with variable name.
type IngressConfiguration struct { type IngressConfiguration struct {
Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"` Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"`
Name string `yaml:"name" schema:"type:string,default:''"` Name string `yaml:"name" schema:"type:string,default:''"`
IngressClassName string `yaml:"ingressClassName" schema:"type:string,default:''"` IngressClassName string `yaml:"ingressClassName" schema:"type:string,default:''"`
AllowCors bool `yaml:"allowCors" schema:"type:boolean,show_if:[[advanced,=,true]],default:false"` AllowCors bool `yaml:"allowCors" schema:"type:boolean,show_if:[[advanced,=,true]],default:false"`
Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"` Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"` CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"` TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"`
Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"` Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"`
Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"` Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"`
Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"` Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"`
} }
// HostEntry represents the schema for a host entry. // HostEntry represents the schema for a host entry.
type HostEntry struct { type HostEntry struct {
Host string `yaml:"host" schema:"type:string,default:'',required:true"` Host string `yaml:"host" schema:"type:string,default:'',required:true"`
Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"` Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"`
} }
// PathEntry represents the schema for a path entry. // PathEntry represents the schema for a path entry.
type PathEntry struct { type PathEntry struct {
Path string `yaml:"path" schema:"type:string,required:true,default:/"` Path string `yaml:"path" schema:"type:string,required:true,default:/"`
PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"` PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"`
} }
// RootReference represents the root-level reference for Ingress settings. // RootReference represents the root-level reference for Ingress settings.
type RootReference struct { type RootReference struct {
Ingress map[string]IngressConfiguration `yaml:"ingress" schema:"additional_attrs:true,type:dict" description:"Ingress Settings"` Ingress map[string]IngressConfiguration `yaml:"ingress" schema:"additional_attrs:true,type:dict" description:"Ingress Settings"`
} }