aboutsummaryrefslogtreecommitdiff
path: root/middleware/kubernetes/util/util.go
blob: 7fc03ffc1bae9c8db35a06420c82f3cce17aacad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Package kubernetes/util provides helper functions for the kubernetes middleware
package util

// StringInSlice check whether string a is a member of slice.
func StringInSlice(a string, slice []string) bool {
	for _, b := range slice {
		if b == a {
			return true
		}
	}
	return false
}