Skip to content

Commit 3fc97ac

Browse files
committed
feat: add ProviderTypePingSIX to support PingSIX provider in validation
1 parent d6c45fc commit 3fc97ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/controller/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (c *Config) Validate() error {
133133

134134
func validateProvider(config ProviderConfig) error {
135135
switch config.Type {
136-
case ProviderTypeStandalone, ProviderTypeAPISIX:
136+
case ProviderTypeStandalone, ProviderTypeAPISIX, ProviderTypePingSIX:
137137
if config.SyncPeriod.Duration <= 0 {
138138
return fmt.Errorf("sync_period must be greater than 0 for standalone provider")
139139
}

internal/controller/config/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type ProviderType string
2626
const (
2727
ProviderTypeStandalone ProviderType = "apisix-standalone"
2828
ProviderTypeAPISIX ProviderType = "apisix"
29+
ProviderTypePingSIX ProviderType = "pingsix"
2930
)
3031

3132
const (

0 commit comments

Comments
 (0)