Skip to content

Commit

Permalink
filter out bad labels (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnadolny authored Apr 8, 2020
1 parent 3d06a44 commit d5ef4cd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/resourcemanager/rediscaches/rediscaches.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis"
model "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis"
azurev1alpha1 "github.com/Azure/azure-service-operator/api/v1alpha1"
"github.com/Azure/azure-service-operator/pkg/helpers"
"github.com/Azure/azure-service-operator/pkg/resourcemanager/config"
"github.com/Azure/azure-service-operator/pkg/resourcemanager/iam"
"github.com/Azure/azure-service-operator/pkg/secrets"
Expand Down Expand Up @@ -54,11 +55,7 @@ func (r *AzureRedisCacheManager) CreateRedisCache(
props := instance.Spec.Properties

// convert kube labels to expected tag format
tags := map[string]*string{}
for k, v := range instance.GetLabels() {
value := v
tags[k] = &value
}
tags := helpers.LabelsToTags(instance.GetLabels())

redisClient, err := getRedisCacheClient()
if err != nil {
Expand Down

0 comments on commit d5ef4cd

Please sign in to comment.