Skip to content

Commit

Permalink
update filter names and split geo restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
digna-ionos committed Oct 30, 2024
1 parent 13a40cd commit 36a02e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion commands/cdn/distribution/routingrules/routing_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

var (
allRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "Caching", "Waf", "RateLimitClass", "SniMode", "GeoRestrictions"}
allRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "Caching", "Waf", "RateLimitClass", "SniMode", "GeoRestrictionsAllowList", "GeoRestrictionsBlockList"}
defaultRoutingRulesColumns = []string{"Scheme", "Prefix", "Host", "RateLimitClass", "SniMode"}
)

Expand Down
4 changes: 2 additions & 2 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Within each layer, a token takes precedence over a username and password combina
FlagLoggingPipelineLogType = "log-type"
FlagLoggingPipelineLogRetentionTime = "log-retention-time"

FlagCDNDistributionFilterDomain = "filter.domain"
FlagCDNDistributionFilterState = "filter.state"
FlagCDNDistributionFilterDomain = "domain"
FlagCDNDistributionFilterState = "state"
FlagCDNDistributionID = "distribution-id"
FlagCDNDistributionDomain = "domain"
FlagCDNDistributionCertificateID = "certificate-id"
Expand Down
17 changes: 9 additions & 8 deletions internal/printer/json2table/jsonpaths/cdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ var CDNDistribution = map[string]string{
}

var CDNRoutingRule = map[string]string{
"Scheme": "scheme",
"Prefix": "prefix",
"Host": "upstream.host",
"Caching": "upstream.caching",
"Waf": "upstream.waf",
"SniMode": "upstream.sniMode",
"GeoRestrictions": "upstream.geoRestrictions",
"RateLimitClass": "upstream.rateLimitClass",
"Scheme": "scheme",
"Prefix": "prefix",
"Host": "upstream.host",
"Caching": "upstream.caching",
"Waf": "upstream.waf",
"SniMode": "upstream.sniMode",
"GeoRestrictionsAllowList": "upstream.geoRestrictions.allowList",
"GeoRestrictionsBlockList": "upstream.geoRestrictions.blockList",
"RateLimitClass": "upstream.rateLimitClass",
}

0 comments on commit 36a02e9

Please sign in to comment.