Skip to content

Commit

Permalink
rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
YiscahLevySilas1 committed Mar 26, 2024
1 parent 9f7b2a0 commit 2a97c38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pkg/client/v1/kscloudapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (api *KSCloudAPI) getAttackTracksURL() string {
v1.ApiServerAttackTracksPath,
append(
api.paramsWithGUID(),
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
}
Expand Down Expand Up @@ -151,7 +151,7 @@ func (api *KSCloudAPI) getFrameworkURL(frameworkName string) string {
append(
api.paramsWithGUID(),
v1.QueryParamFrameworkName, frameworkName,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
}
Expand All @@ -177,7 +177,7 @@ func (api *KSCloudAPI) getListFrameworkURL() string {
v1.ApiServerFrameworksPath,
append(
api.paramsWithGUID(),
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
}
Expand Down Expand Up @@ -242,7 +242,7 @@ func (api *KSCloudAPI) getExceptionsURL(clusterName string) string {
v1.ApiServerExceptionsPath,
append(
api.paramsWithGUID(),
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
// queryParamClusterName, clusterName, // TODO - fix customer name support in Armo BE
Expand Down Expand Up @@ -289,7 +289,7 @@ func (api *KSCloudAPI) getAccountConfig(clusterName string) string {
v1.ApiServerCustomerConfigPath,
append(
params,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
}
Expand All @@ -308,7 +308,7 @@ func (api *KSCloudAPI) getAccountConfigDefault(clusterName string) string {
v1.ApiServerCustomerConfigPath,
append(
params,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersionV2,
v1.QueryParamGitRegoStoreVersion, v1.RegolibraryVersion,
)...,
)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/v1/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
QueryParamJobID = "jobID"
QueryParamRegistryName = "registryName"
QueryParamGitRegoStoreVersion = "gitRegoStoreVersion"
RegolibraryVersionV2 = "v2"
RegolibraryVersion = "v2"

AccessKeyHeader = "X-API-KEY"
)

0 comments on commit 2a97c38

Please sign in to comment.