You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What kops version are you running? The command kops version, will display
this information.
Client version: 1.28.0
2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.
Client Version: v1.28.2
Server Version: v1.28.2
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
kops update cluster
5. What happened after the commands executed?
6. What did you expect to happen?
Tried to update cluster with:
/kind bug
1. What
kops
version are you running? The commandkops version
, will displaythis information.
Client version: 1.28.0
2. What Kubernetes version are you running?
kubectl version
will print theversion if a cluster is running or provide the Kubernetes version specified as
a
kops
flag.Client Version: v1.28.2
Server Version: v1.28.2
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
kops update cluster
5. What happened after the commands executed?
6. What did you expect to happen?
Tried to update cluster with:
(Same applies for
namespace: "foo-*"
)W1017 14:57:05.689738 69794 executor.go:139] error running task "IAMRole/some-service.wildcard.sa.k8s.xxx.com" (9m9s remaining to succeed): error creating IAMRole: ValidationError: 1 validation error detected: Value '*' at 'tags.7.member.value' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*
Probably need to replace
*
withwildcard
whenever a tag in AWS is created for a resource. In this case maybe it's in https://github.com/kubernetes/kops/blob/master/pkg/model/context.go#L204 and maybe also in https://github.com/kubernetes/kops/blob/master/pkg/model/context.go#L251 similar as done in https://github.com/kubernetes/kops/blob/master/pkg/model/awsmodel/iam.go#L264Maybe something like:
return strings.ReplaceAll(tags, "*", "wildcard")
could do the trick for both
CloudTagsForServiceAccount
andCloudTags
functions?The text was updated successfully, but these errors were encountered: