Skip to content

Commit 0d900df

Browse files
committed
feat: add default and required tags to Qsealrc fields
1 parent 1cfb5c3 commit 0d900df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/qsealrc/models.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
const QsealrcFileName = "qsealrc.yaml"
1010

1111
type Qsealrc struct {
12-
Version string `yaml:"version"`
13-
Namespace string `yaml:"namespace"`
14-
ControllerName string `yaml:"controller_name"`
15-
ControllerNamespace string `yaml:"controller_namespace"`
12+
Version string `yaml:"version" default:"1"`
13+
Namespace string `yaml:"namespace" required:"true"`
14+
ControllerName string `yaml:"controller_name" required:"true"`
15+
ControllerNamespace string `yaml:"controller_namespace" required:"true"`
1616
Secrets []Secret `yaml:"secrets"`
1717
}
1818

0 commit comments

Comments
 (0)