Commit Graph

27 Commits

Author SHA1 Message Date
4ba33b40d6 pspmutating.go aktualisiert 2023-10-19 21:14:15 +02:00
Kubernetes Prow Robot
9261f26bfe
Merge pull request #3 from samos123/vendor-deps
Vendor deps
2022-09-30 11:20:30 -07:00
Sam Stoelinga
b624df4c39 Add vendor dependencies as part git repo 2022-09-29 16:34:47 -07:00
Sam Stoelinga
a3b77e3e71 Pin k8s client-go to working version 2022-09-29 16:34:13 -07:00
Kubernetes Prow Robot
72b7ff7439
Merge pull request #2 from samos123/move
Move files from samos123/pspmigrator into here
2022-08-05 16:38:17 -07:00
Sam Stoelinga
1f5b29b7f6 simplify isMutating logic 2022-07-22 07:40:01 -07:00
Sam Stoelinga
ff449375da Improve mutating annotation detection logic 2022-07-22 07:38:04 -07:00
Sam Stoelinga
136426f326 use k8s psa admission package for getting pod spec 2022-07-22 07:30:10 -07:00
Sam Stoelinga
bfac92890d Better handling when owner is Node 2022-07-22 06:55:49 -07:00
Sam Stoelinga
0c1c6712fa Add TODOs for using 1st party libraries from k8s 2022-07-22 06:53:06 -07:00
Sam Stoelinga
9107cb0aa2 Check InitContainers and EphemeralContainers too 2022-07-22 06:47:44 -07:00
Sam Stoelinga
66c65322a6 Use psaapi.LatestVersion instead of parse 2022-07-22 06:40:25 -07:00
Sam Stoelinga
ae697cd9c8 reuse the evaluator across calls 2022-07-22 06:35:08 -07:00
Sam Stoelinga
c4cb2ee824 Add UserAgent to client-go client config 2022-07-21 16:41:23 -07:00
Sam Stoelinga
17cd6b7c8b Switch to case statement 2022-07-21 16:38:22 -07:00
Sam Stoelinga
1b5b747437 Change psaApi to psaapi 2022-07-21 14:54:11 -07:00
Sam Stoelinga
a4087a538f Use map[psaApi.level] instead of map[string] 2022-07-21 14:51:27 -07:00
Sam Stoelinga
872b97fc45 Return errors instead of panic 2022-07-21 14:47:26 -07:00
Sam Stoelinga
75575b9f98 Check if namespace already has psa labels set 2022-07-21 14:25:53 -07:00
Sam Stoelinga
b5b85829df Fix nits and add copyright / license headers 2022-07-21 14:05:40 -07:00
Sam Stoelinga
59e58c140c Add dry-run mode and other minor nits 2022-07-21 13:56:03 -07:00
Sam Stoelinga
c59890e05b Add comment about status and disclaimer 2022-07-20 12:44:03 -07:00
Sam Stoelinga
2a0d58fcb5 Move files from samos123/pspmigrator into here 2022-06-24 10:13:51 -07:00
Kubernetes Prow Robot
5134cadbb8
Merge pull request #1 from samos123/samos123
Add samos123 to owners and sec contacts
2022-06-23 16:13:20 -07:00
Sam Stoelinga
688400b4fc Add samos123 to owners and sec contacts 2022-06-23 15:48:38 -07:00
Bob Killen
6bbba78b19 Update OWNERS, OWNERS_ALIASES and SECURITY_CONTACTS 2022-06-12 15:38:24 -05:00
Bob Killen
fb041495fe Initial commit 2022-06-12 15:35:48 -05:00