Skip to content

Commit

Permalink
add semantic version config check for api delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaliMatharaarachchi committed Mar 28, 2024
1 parent db598f1 commit 678bbe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adapter/internal/discovery/xds/semantic_versioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ func isSemanticVersioningEnabled(apiName, apiVersion string) bool {

apiSemVersion, err := semantic_version.ValidateAndGetVersionComponents(apiVersion)
if err != nil && apiSemVersion == nil {
logger.LoggerXds.ErrorC(logging.PrintError(logging.Error1411, logging.MAJOR,
"Error validating the version of the API: %v. Intelligent routing is disabled for the API", apiName))
return false
}

Expand Down

0 comments on commit 678bbe7

Please sign in to comment.