11package kuberoCli
22
33import (
4- "gorm.io/gorm"
54 "time"
5+
6+ "gorm.io/gorm"
67)
78
89type DigitalOceanKubernetesConfig struct {
@@ -224,10 +225,26 @@ type KuberoUIConfig struct {
224225 } `yaml:"spec" gorm:"embedded"`
225226}
226227
228+ type NotificationsConfig struct {
229+ Enabled bool `yaml:"enabled" gorm:"column:enabled"`
230+ Name string `yaml:"name" gorm:"column:name"`
231+ Type string `yaml:"type" gorm:"column:type"`
232+ Pipelines []string `yaml:"pipelines" gorm:"column:pipelines"`
233+ Events []string `yaml:"events" gorm:"column:events"`
234+ Config struct {
235+ Url string `yaml:"url" gorm:"column:url"`
236+ Channel string `yaml:"channel,omitempty" gorm:"column:channel"`
237+ Secret string `yaml:"secret,omitempty" gorm:"column:secret"`
238+ } `yaml:"config" gorm:"embedded"`
239+ }
240+
227241type KuberoConfigfile struct {
228242 Kubero struct {
229243 Readonly bool `yaml:"readonly" gorm:"column:readonly"`
230- Console struct {
244+ Admin struct {
245+ Disabled bool `yaml:"disabled" gorm:"column:enabled"`
246+ } `yaml:"admin" gorm:"embedded"`
247+ Console struct {
231248 Enabled bool `yaml:"enabled" gorm:"column:enabled"`
232249 } `yaml:"console" gorm:"embedded"`
233250 Banner struct {
@@ -237,7 +254,8 @@ type KuberoConfigfile struct {
237254 Fontcolor string `yaml:"fontcolor" gorm:"column:fontcolor"`
238255 } `yaml:"banner" gorm:"embedded"`
239256 } `yaml:"kubero" gorm:"embedded"`
240- ClusterIssuer string `yaml:"clusterIssuer" gorm:"column:clusterIssuer"`
257+ Notifications []NotificationsConfig `yaml:"notifications" gorm:"embedded"`
258+ ClusterIssuer string `yaml:"clusterIssuer" gorm:"column:clusterIssuer"`
241259 Templates struct {
242260 Enabled bool `yaml:"enabled" gorm:"column:enabled"`
243261 Catalogs []struct {
0 commit comments