refactor: use enum to represent authentication type
This commit is contained in:
1 parent
75eeb99a42
commit
25ad302ed2
2 files changed
+14
-1
No files matched your search
@@ -71,6 +71,9 @@ type KedaAuthentication struct {
|
||||
// Name is the name of the authentication object
|
||||
Name string `yaml:"name"`
|
||||
|
||||
// Kind is the kind of authentication object
|
||||
Kind KedaAuthenticationKind `yaml:"kind,omitempty"`
|
||||
|
||||
// Type is the type of authentication to use
|
||||
Type string `yaml:"type"`
|
||||
|
||||
@@ -78,6 +81,13 @@ type KedaAuthentication struct {
|
||||
Secrets map[string]string `yaml:"secrets,omitempty"`
|
||||
}
|
||||
|
||||
type KedaAuthenticationKind string
|
||||
|
||||
const (
|
||||
KedaAuthenticationKind_ClusterTriggerAuthentication KedaAuthenticationKind = "ClusterTriggerAuthentication"
|
||||
KedaAuthenticationKind_TriggerAuthentication KedaAuthenticationKind = "TriggerAuthentication"
|
||||
)
|
||||
|
||||
type ProcessValues struct {
|
||||
Annotations ProcessAnnotations `yaml:"annotations,omitempty"`
|
||||
Args []string `yaml:"args,omitempty"`
|
||||
|
||||
Reference in new issue
Block a user