Commit Graph

28 Commits

Author SHA1 Message Date
Antoni Zawodny
ca90cf6049 Allow overriding the default list of resources of list in addon-manager 2020-05-12 12:50:05 +02:00
Oleg Chunikhin
a6739dbffc fix addon manager failing to elect leader on masters with _ in the hostname (issue #88214) 2020-02-16 14:48:35 -05:00
Jacek Kaniuk
936ee6fb15 Addon Manager: Fix parsing KUBECTL_EXTRA_PRUNE_WHITELIST
When there are two or more values in KUBECTL_EXTRA_PRUNE_WHITELIST
kube-addons.sh wrongly generates "--prune-whitelist value1 value2"
Which kubectl parses as additional unknown flag[s]

Change-Id: I7661bda41ab7435e0e65eb0a662d1b16d2c14991
2019-11-18 10:41:53 +01:00
Matt Matejczyk
d87e700f9b Addon Manager: Fix bug in generate_prune_whitelist_flags
The bug seems to be currently dormant but I managed to trigger it in
some manual tests.

When the bug is triggered it appends empty --prune-whitelist without any
value which in turn can capture the next flag and can cause addon
manager to fail.

E.g. when bug is not triggered the kubectl command looks like this

```
kubectl ... --prune-whitelist extensions/v1beta1/Ingress --recursive ...
```

When it's triggered it will be

```
kubectl ... --prune-whitelist --recursive ...
```

which will capture the --recursive flag and will make addon-manager to
fail as there are no yamls in the top directory.
2019-10-23 13:08:42 +02:00
SataQiu
35a7924327 fix shellcheck failures of cluster/addons/addon-manager/kube-addons.sh 2019-09-02 19:18:51 +08:00
Maciej Borsz
b851a3365a
Fix leader election in kube-addon manager 2019-07-25 14:00:22 +02:00
Harsh Singh
47275cb6cd Fix for #75567 2019-04-11 13:18:47 +05:30
Jordan Liggitt
cc680273e8 Change add-on manifests to apps/v1 2018-12-19 17:30:59 -05:00
k8s-ci-robot
cb4e809fe9
Merge pull request #68082 from aldarionsevero/master
fix typo: result is of that -> result of that
2018-10-23 21:22:23 -07:00
Lantao Liu
6a880b2567 Support extra prune resources in kube-addon-manager.
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-08-31 18:43:48 -07:00
Lucas Severo
a95b1353da fix typo: result is of that -> result of that 2018-08-30 12:03:36 -03:00
Matthias Bertschy
9b15af19b2 Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
Zihong Zheng
677f740adf Bump addon-manager to v8.6 2018-02-20 11:27:14 -08:00
Martin Ostrowski
ec7f7a5c5f Add code and yaml for Istio as an addon
This commit adds the following:
 - YAML for istio components to the addons directory (versions with
   and without auth)
 - logic to copy the appropriate YAML file into the addons manager
   dir, depending on ENABLE_ISTIO and ISTIO_AUTH_TYPE env vars
 - changes to addon manager script which allow plugins to exist in
   namespace other than kube-system. This is needed for Istio
   functionality
 - additional initialization for Istio in addon manager.
2018-02-16 10:48:09 -08:00
David Eads
909e592e55 handle uniquified holder identities 2018-01-17 07:51:21 -05:00
Daniel Kłobuszewski
ae6e506fdc
Merge branch 'master' into addon-manager 2017-11-14 09:36:20 +01:00
Daniel Kłobuszewski
5e4692f784 Use results of kube-controller-manager leader election in addon manager 2017-11-13 14:54:37 +01:00
Rohit Agarwal
3de7e5ab40 Remove redundant comment and improve documentation.
The comment is also present in lines 143-145 where it makes more sense.
2017-11-02 12:58:29 -07:00
Zihong Zheng
1ef7854c14 [addon-manager] Remove unneeded annotation codes 2017-07-31 11:19:23 -07:00
Zihong Zheng
ea019ebb23 addon-manager: Create EnsureExists class addons before Reconcile class addons 2017-03-08 14:38:10 -08:00
Zihong Zheng
c7189fd555 Supports 'ensure exist' class addon in addon-manager 2017-02-24 16:42:16 -08:00
Zihong Zheng
1246320596 Fixes Addon Manager's pruning issue for old Deployments 2016-11-29 14:29:19 -08:00
Zihong Zheng
4088e00132 Fixes token_found bug in addon manager 2016-10-30 21:08:11 -07:00
Zihong Zheng
0e4e54a6b6 Upgrade addon-manager with kubectl apply 2016-10-11 16:22:02 -07:00
Ben Breslauer
e82c3fbd73 Add user-specified kubectl arguments to addons start script 2016-08-10 18:08:01 -07:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Mike Danese
57201fad36 increase addon check interval 2016-06-21 12:48:00 -07:00
Mike Danese
3e1c0b5951 run kube-addon-manager in a pod 2016-05-06 11:01:06 -07:00