Commit Graph

345 Commits (revert-19748-fix_wait)

Author SHA1 Message Date
Steven Powell 44c4657e4f remove remaining references to k8s.gcr.io 2023-03-30 09:45:52 -07:00
Steven Powell 49d57361cb add timeout for refreshing pods 2023-03-06 14:15:28 -08:00
Steven Powell 4e33f96173 add timeout and force to kubectl command 2023-03-01 13:07:46 -08:00
Shubh Bapna f88c6ad3cd added isEnabledOrDefault 2023-02-17 11:00:22 -05:00
Shubh Bapna 2d7df77bcb
Fix test error message
Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
2023-02-01 14:19:59 -05:00
Shubh Bapna e0016e6ed1 added function to disable all addons in config. updated test cases 2023-01-31 14:18:48 -05:00
Predrag Rogic 9edc995811
fix addons map race condition 2023-01-25 16:05:35 +00:00
Ian Stewart 6ee591c1f3 addressed PR comments 2022-11-29 15:54:49 -05:00
Ian Stewart 3de8a8d5aa Moved image pull secret creation code to the webhook 2022-11-24 20:55:44 -05:00
Eng Zer Jun 9d85be1a99
test: use `T.Setenv` to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-11-08 10:30:29 +08:00
Steven Powell 43c4e59a60 disable efk addon 2022-11-03 16:38:59 -07:00
Nitin Agarwal 909ac67151 Added cloud-spanner emulator add-on. 2022-10-20 23:16:53 +00:00
Steven Powell 8c12c40853 implement socket_vmnet 2022-10-03 15:14:36 -07:00
Steven Powell 48a2e76f87 fix registry when custom images provided 2022-08-01 09:23:08 -07:00
Santhosh Nagaraj S 26afc8f85c Addon: add headlamp
Signed-off-by: Santhosh Nagaraj S <santhosh@kinvolk.io>
2022-06-16 10:34:18 +05:30
Sharif Elgamal 24e2708d91 Merge branch 'master' of github.com:kubernetes/minikube into gcp-auth-timeout 2022-06-10 13:40:07 -07:00
Jack Zhang 7c4389c68b update image prefix 2022-06-08 14:31:44 -07:00
Sharif Elgamal 6d4e2a0bde don't special case gcp-auth for enabling addons 2022-06-08 12:29:28 -07:00
Sharif Elgamal 94dd7296d7 Merge branch 'master' of github.com:sharifelgamal/minikube into gcp-auth-timeout 2022-06-08 10:37:18 -07:00
Sharif Elgamal 74de6499f7 refresh pods before verifying 2022-06-06 17:46:44 -07:00
Elias Koromilas 6364518066 Add inaccel/fpga-operator addon
Signed-off-by: Elias Koromilas <elias.koromilas@gmail.com>
2022-05-26 10:52:08 +03:00
Sharif Elgamal 00d31d04ba Merge branch 'master' of github.com:kubernetes/minikube into anders-qemu2 2022-05-11 09:06:36 -07:00
Sharif Elgamal 432eeca025
Update pkg/addons/addons_gcpauth.go
Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
2022-05-06 15:10:48 -07:00
Sharif Elgamal 7a121ad8d3 general cleanup 2022-05-06 14:58:01 -07:00
Sharif Elgamal 5b39a46773 Merge branch 'master' of github.com:kubernetes/minikube into anders-qemu2 2022-05-03 14:01:09 -07:00
Sharif Elgamal 402ede52c0
Merge pull request #13963 from klaases/gcp1
Tidy up GCP-Auth go code
2022-04-14 17:39:07 -07:00
klaases da5045c72d Fix reference to gcloud 2022-04-14 11:41:15 -07:00
klaases de465088df Tidy up GCP-Auth go code 2022-04-14 11:16:44 -07:00
Anders F Björklund d21342c69f Make sure to look for KIC before using oci port 2022-04-05 20:02:08 +02:00
Steven Powell 2e4ea3c259 replace MkdirTemp with t.TempDir in tests 2022-04-01 19:18:20 -07:00
klaases 5a3877cfc5 Prefer out.Styled to out.Step, revert copyright 2022-03-21 11:49:26 -07:00
klaases 9baaeea36a Revert addons.go 2022-03-17 10:33:55 -07:00
klaases f4ace95f5b remove commented code, revert driver.go 2022-03-16 14:45:07 -07:00
klaases f549634f59 Improve autopause error handling 2022-03-16 14:36:51 -07:00
Viktor Gamov ef0049137d Initial commit for kong Ingress controller addon 2022-01-11 13:35:29 -05:00
Sharif Elgamal fa381a542d Fix OLM addon by pinning to correct versions of images 2021-12-20 13:38:14 -08:00
Predrag Rogic ea3aa4f3a8
support ingress-dns addon, add tests 2021-10-28 04:14:35 +01:00
Predrag Rogic 76c1e79598
support k8s < v1.19 & watch-ingress-without-class 2021-10-27 15:05:01 +01:00
Sharif Elgamal 418a9a17d2
Merge pull request #12779 from sharifelgamal/gcp-auth-test2
Fix disabling gcp-auth addon and test
2021-10-26 22:37:22 -07:00
Steven Powell 57de50af7b
Merge pull request #12702 from prezha/update-ingress
update ingress controller to v1/1.0.4 and v1beta1/0.49.3
2021-10-26 15:04:44 -07:00
Medya Ghazizadeh 6f72fc9a25
Merge pull request #12578 from AliyunContainerService/aliyun-mirror
Initial support for adding Aliyun mirror for preload images and K8s release binaries
2021-10-26 13:22:30 -07:00
Sharif Elgamal 8cf0a18069 no need to reverse file order for kubectl delete 2021-10-26 11:46:29 -07:00
Sharif Elgamal aaf85032f4 fix unit test part deux 2021-10-26 10:34:46 -07:00
Sharif Elgamal 77da350d83 fix unit test 2021-10-26 09:01:58 -07:00
Sharif Elgamal 1e932bc5bd cleanup and comments 2021-10-25 18:22:49 -07:00
Sharif Elgamal b0598d06e5 ignore-not-found for kubectl delete 2021-10-25 18:07:45 -07:00
Sharif Elgamal bd9da42651 reverse files for kubectl remove on addon disable 2021-10-25 17:31:24 -07:00
Sharif Elgamal bec03819df fix disabling gcp-auth addon 2021-10-25 15:32:13 -07:00
Alexandre Garnier 1c89bd7bf9 Remove useless check of baremetal driver for ingress addon 2021-10-19 17:03:02 +02:00
Predrag Rogic c680044eae
remove allow-snippet-annotations as per recommendation 2021-10-12 23:24:26 +01:00
Predrag Rogic 29abb74777
update ingress to v1-1.0.3 and v1beta1-0.49.3 2021-10-12 21:21:54 +01:00
KallyDev 70022d9b2e
Move from deprecated ioutil to os and io packages 2021-10-08 08:57:19 +08:00
Li Yi eb66c6797e Initial support for adding Aliyun mirror for preload images and Kubernetes binaries
Signed-off-by: Li Yi <denverdino@gmail.com>
2021-09-26 15:36:36 +08:00
Sharif Elgamal a5cdaf53b2 remove debugging 2021-09-16 15:30:59 -07:00
Sharif Elgamal a74d50eade be a little smarter about refreshing secrets 2021-09-16 15:18:52 -07:00
Sharif Elgamal 047f2e553f fix refreshing gcp-auth pull secret 2021-09-16 15:06:31 -07:00
Sharif Elgamal 88c62ad469 as usual, skip kube-system for pull secret 2021-09-15 08:59:19 -07:00
Sharif Elgamal 6acb65ca71 make sure to delete image pull secrets on gcp auth addon disable 2021-09-14 13:12:07 -07:00
Sharif Elgamal 5672d40eec account for GCE service account for GCP auth 2021-09-13 14:05:30 -07:00
Sharif Elgamal 60d9d41ba2 omg horrible typo 2021-08-31 15:02:13 -07:00
Sharif Elgamal 7317746d57 check for special error everywhere 2021-08-31 12:21:09 -07:00
Sharif Elgamal 55c40f8220 Merge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-26 13:32:10 -07:00
Predrag Rogic 9c3c5d1140
prevent 'assignment to entry in nil map' error. 2021-08-24 18:05:56 +01:00
Predrag Rogic abd52901cf
fix ingress for k8s v1.22+ 2021-08-24 18:05:44 +01:00
Sharif Elgamal 4bc5cb77d1 Merge branch 'master' of github.com:sharifelgamal/minikube into gcp-cs 2021-08-23 11:11:16 -07:00
Jack Zhang def3f067a8 Support Ingress on MacOS, driver docker 2021-08-17 10:27:21 +08:00
Sharif Elgamal 756aac7c21 only skip the addon on enable 2021-08-13 15:07:25 -07:00
Sharif Elgamal 371becaf73 tMerge branch 'master' of github.com:kubernetes/minikube into gcp-cs 2021-08-13 14:08:23 -07:00
Sharif Elgamal 06ed3378b9 create special error to skip addons without erroring out 2021-08-13 13:42:02 -07:00
Medya Gh ccf4af0997 change depricated golint to revive and fix lint issues 2021-08-12 18:11:16 -07:00
Sharif Elgamal ca04178ced exit prematurely in specific case for gcp-auth 2021-08-12 14:13:51 -07:00
Sharif Elgamal 163a4b2934 fix lint 2021-08-11 11:56:45 -07:00
Sharif Elgamal 1319fe729f fix file existence check 2021-08-11 09:58:03 -07:00
Sharif Elgamal f99b234c7e simplify logic 2021-08-10 15:56:15 -07:00
Sharif Elgamal e150129172 refactor EnableOrDisableAddon to reduce cyclotomic complexity 2021-08-10 15:54:12 -07:00
Sharif Elgamal 19b763fd36 do not start pods if no creds 2021-08-10 15:16:41 -07:00
Sharif Elgamal dfef0ad478 read blessed cloud shell config file 2021-08-10 13:46:49 -07:00
Sharif Elgamal 3acbd2fc90 gcp-auth: improve flow for GCE/Cloud Shell 2021-08-10 12:57:10 -07:00
Sharif Elgamal 9995961a77
Merge pull request #12106 from sharifelgamal/more-reg
configure gcp-auth addon pull secret to work with all GCR and AR mirrors
2021-08-09 12:02:31 -07:00
Sharif Elgamal b2bc913596 gcp-auth: always create the pull secret and don't require --force if GOOGLE_APPLICATION_CREDENTIALS env var is set 2021-08-04 16:35:26 -07:00
Sharif Elgamal 3d79bba97d configure gcp-auth addon pull secret to work with all GCR and AR mirrors 2021-08-03 11:48:20 -07:00
Sharif Elgamal 6d710b4e59 only use update if the secret already exists 2021-07-23 13:11:07 -07:00
Sharif Elgamal a940203ed4 update instead of delete/create 2021-07-23 12:22:51 -07:00
Sharif Elgamal 4dd89f8713 Merge branch 'master' of github.com:kubernetes/minikube into gcp-sa 2021-07-13 13:31:34 -07:00
Sharif Elgamal a8d366ffbf don't try to recreate pull secrets for refreshing gcp-auth 2021-07-08 16:15:44 -07:00
balasu e833905678 for portainer add-on 2021-07-08 13:22:01 +00:00
Andriy Dzikh cec98ef11a Template auto-pause.service to allow injecting the correct container runtime. 2021-07-01 13:12:44 -07:00
Medya Gh 306fa828b1 enable auto-puase on arm64 2021-06-24 17:25:14 -04:00
Sharif Elgamal 31417806b7
Merge pull request #11486 from sharifelgamal/gcp-auth-restart
gcp-auth addon: do not reapply gcp-auth yamls on minikube restart
2021-05-27 15:05:34 -07:00
Sharif Elgamal a790bd1361 better wrapper name 2021-05-27 10:35:30 -07:00
Sharif Elgamal ad1fc0b8fe wrap pull secret error 2021-05-27 10:22:42 -07:00
Sharif Elgamal 643cfb91f4 fix last bool 2021-05-26 09:33:33 -07:00
Sharif Elgamal 6db4a51cbb swap to --refresh 2021-05-26 09:26:10 -07:00
Sharif Elgamal a823439257 allow pods to be refreshed 2021-05-25 13:43:25 -07:00
Sharif Elgamal 86f9feb535 do not reapply gcp-auth yamls on minikube restart 2021-05-21 17:04:49 -07:00
Utkarsh Srivastava aa99526399
change variable name from addonList to addonListFlag
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
2021-05-21 13:39:05 +05:30
Utkarsh Srivastava 69b30c06df
change variable name from addonListName to addonList
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
2021-05-20 22:25:38 +05:30
Utkarsh Srivastava 5a3843b074
replace addonList variable with viper provided data
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
2021-05-20 21:39:07 +05:30
Andriy Dzikh 040e7e7a8d Persist custom addon image settings. 2021-05-18 14:10:37 -07:00
Medya Gh 8ca3d1f799 remove debug 2021-05-17 18:54:02 -07:00