Logo
Explore Help
Register Sign In
actions/actions-runner-controller
1
0
Fork 0
You've already forked actions-runner-controller
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
v0.22.2
actions-runner-controller/hash/fnv.go

18 lines
279 B
Go
Raw Permalink Normal View History

feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) One of the pod recreation conditions has been modified to use hash of runner spec, so that the controller does not keep restarting pods mutated by admission webhooks. This naturally allows us, for example, to use IRSA for EKS that requires its admission webhook to mutate the runner pod to have additional, IRSA-related volumes, volume mounts and env. Resolves #200
2020-12-08 17:56:06 +09:00
package hash
import (
"fmt"
"hash/fnv"
"k8s.io/apimachinery/pkg/util/rand"
)
func FNVHashStringObjects(objs ...interface{}) string {
hash := fnv.New32a()
for _, obj := range objs {
DeepHashObject(hash, obj)
}
return rand.SafeEncodeString(fmt.Sprint(hash.Sum32()))
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 542ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API