You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by kv...@apache.org on 2022/01/04 05:47:10 UTC
[apisix-ingress-controller] branch master updated: fix: consumer name contain "-" (#828)
This is an automated email from the ASF dual-hosted git repository.
kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new 8364821 fix: consumer name contain "-" (#828)
8364821 is described below
commit 83648210fe194fa42f5582e8773969be0a01fa57
Author: Yu.Bozhong <y....@foxmail.com>
AuthorDate: Tue Jan 4 13:47:04 2022 +0800
fix: consumer name contain "-" (#828)
---
pkg/types/apisix/v1/types.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/types/apisix/v1/types.go b/pkg/types/apisix/v1/types.go
index 0080584..96f4af0 100644
--- a/pkg/types/apisix/v1/types.go
+++ b/pkg/types/apisix/v1/types.go
@@ -493,7 +493,7 @@ func ComposeConsumerName(namespace, name string) string {
// TODO If APISIX modifies the consumer name schema, we can drop this.
buf.WriteString(strings.Replace(namespace, "-", "_", -1))
buf.WriteString("_")
- buf.WriteString(name)
+ buf.WriteString(strings.Replace(name, "-", "_", -1))
return buf.String()
}