Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Jul 5, 2024
1 parent 83abb12 commit 7c0aedc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions control-plane/connect-inject/common/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func getAvailableIDs(namespace corev1.Namespace, pod corev1.Pod, annotationName
}
}

// Collect the list of valid UIDs from the namespace annotation
validUIDs, err := GetAllValidUserIDsFromNamespace(namespace.Annotations[annotationName])
// Collect the list of valid IDs from the namespace annotation
validUIDs, err := GetAllValidIDsFromNamespace(namespace.Annotations[annotationName])
if err != nil {
return nil, fmt.Errorf("unable to get valid userIDs from namespace annotation: %w", err)
}
Expand Down Expand Up @@ -137,7 +137,7 @@ var SelectInitContainerID idSelector = func(values []int64) (int64, error) {
return values[len(values)-1], nil
}

func GetAllValidUserIDsFromNamespace(annotation string) ([]int64, error) {
func GetAllValidIDsFromNamespace(annotation string) ([]int64, error) {
parts := strings.Split(annotation, "/")
if len(parts) != 2 {
return nil, fmt.Errorf("invalid range format: %s", annotation)
Expand Down

0 comments on commit 7c0aedc

Please sign in to comment.