Skip to content

Commit

Permalink
Commit daily changes
Browse files Browse the repository at this point in the history
Signed-off-by: TrueCharts-Bot <[email protected]>
  • Loading branch information
truecharts-admin committed Feb 3, 2025
1 parent c35a357 commit f8f6d74
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions clustertool/pkg/charts/valuesYaml/ingressValues.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,58 @@ package valuesYaml

// MiddlewareEntry represents the schema for a middleware entry.
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.
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.
type IntegrationHomepage struct {
Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"`
Name string `yaml:"name" 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]]"`
Enabled bool `yaml:"enabled" schema:"type:boolean,default:false"`
Name string `yaml:"name" 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]]"`
}

// TLSEntry represents the schema for a TLS entry.
type TLSEntry struct {
Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
ClusterCertificate string `yaml:"clusterCertificate" 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,=,]]"`
Host []string `yaml:"hosts" schema:"type:list,default:[],items:type:string,required:true"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
ClusterCertificate string `yaml:"clusterCertificate" 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,=,]]"`
}

// IngressConfiguration represents the schema for Ingress settings with variable name.
type IngressConfiguration struct {
Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"`
Name string `yaml:"name" 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"`
Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"`
Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"`
Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"`
Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"`
Enabled bool `yaml:"enabled" schema:"type:boolean,default:true,hidden:true"`
Name string `yaml:"name" 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"`
Hosts []HostEntry `yaml:"hosts" schema:"type:list,default:[],items:type:dict"`
CertificateIssuer string `yaml:"certificateIssuer" schema:"type:string,default:''"`
TLS []TLSEntry `yaml:"tls" schema:"type:list,default:[],items:type:dict,show_if:[[certificateIssuer,=,]]"`
Integration Integration `yaml:"integration" schema:"additional_attrs:true,type:dict"`
Entrypoint string `yaml:"entrypoint" schema:"type:string,default:websecure,required:true"`
Middlewares []MiddlewareEntry `yaml:"middlewares" schema:"type:list,default:[],items:type:dict"`
}

// HostEntry represents the schema for a host entry.
type HostEntry struct {
Host string `yaml:"host" schema:"type:string,default:'',required:true"`
Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"`
Host string `yaml:"host" schema:"type:string,default:'',required:true"`
Paths []PathEntry `yaml:"paths" schema:"type:list,default:[{path:/,pathType:Prefix}],items:type:dict"`
}

// PathEntry represents the schema for a path entry.
type PathEntry struct {
Path string `yaml:"path" schema:"type:string,required:true,default:/"`
PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"`
Path string `yaml:"path" schema:"type:string,required:true,default:/"`
PathType string `yaml:"pathType" schema:"type:string,required:true,default:Prefix"`
}

// RootReference represents the root-level reference for Ingress settings.
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"`
}

0 comments on commit f8f6d74

Please sign in to comment.