Skip to content

Commit

Permalink
chore: removing unused SIG Validation code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsoghigian committed Nov 7, 2023
1 parent 3be248d commit 7912897
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/providers/instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"encoding/json"
"fmt"
"math"
"regexp"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -58,10 +57,8 @@ import (
)

var (
NodePoolTagKey = strings.ReplaceAll(corev1beta1.NodePoolLabelKey, "/", "_")
listQuery string
SubscriptionShape = regexp.MustCompile(`[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`)
ComputeGalleryImageVersionRegex = regexp.MustCompile(`(?i)/subscriptions/` + SubscriptionShape.String() + `/resourceGroups/[\w-]+/providers/Microsoft\.Compute/galleries/[\w-]+/images/[\w-]+/versions/[\d.]+`)
NodePoolTagKey = strings.ReplaceAll(corev1beta1.NodePoolLabelKey, "/", "_")
listQuery string

CapacityTypeToPriority = map[string]string{
corev1beta1.CapacityTypeSpot: string(compute.Spot),
Expand Down Expand Up @@ -689,7 +686,3 @@ func ConvertToVirtualMachineIdentity(nodeIdentities []string) *armcompute.Virtua

return identity
}

func IsComputeGalleryImageID(imageID string) bool {
return ComputeGalleryImageVersionRegex.MatchString(imageID)
}

0 comments on commit 7912897

Please sign in to comment.