Commit Graph

114 Commits

Author SHA1 Message Date
songxiao-wang87
4f254674fa Making a run test.
Signed-off-by: songxiao-wang87 <wang.xiaosong23@zte.com.cn>
2021-04-25 10:46:18 +08:00
Spencer Peterson
530072a38f Addon-manager baseimage upgrade debian-base v1.0.1
The previous base image, debian-base:v1.0.0, is affected by
CVE-2017-14062. This change upgrades to the most recent Debian stretch
image from the following command:

```
$ gcloud container images list-tags k8s.gcr.io/debian-base-amd64
DIGEST        TAGS    TIMESTAMP
7e9f2f88b813  v1.0.1  2020-02-18T13:18:50
d7be39e143d4  v2.0.0  2019-11-01T13:14:18
5f25d97ece90  v1.0.0  2019-03-25T10:59:09
dddca919baec  1.0.0   2019-03-25T09:43:09
```

This marks kube-addon-manager version 9.1.5.

Change-Id: I02321a781fb19dd33c0a19671b56c0b12d9b52fd
2021-04-19 20:36:44 -07:00
Kubernetes Prow Robot
a2157b36b7
Merge pull request #98806 from rikatz/remove-extension-prune
Remove extensions v1beta1 from addon manager and kubectl prune
2021-03-04 14:40:47 -08:00
Kubernetes Prow Robot
a7147bb113
Merge pull request #98968 from liggitt/kam-lease
Switch add-on manager to use lease for leader election
2021-03-04 13:38:39 -08:00
Vinayak Goyal
ad1e2ffab0 Use ARG instead of sed to set the base image for addon-manager. 2021-02-12 03:11:56 -08:00
Jordan Liggitt
c7e084eec0 Switch add-on manager to use lease for leader election 2021-02-10 12:05:03 -05:00
Ricardo Pchevuzinske Katz
25f3cf5550 Remove extensions v1beta1 from addon manager and kubectl prune 2021-02-05 09:38:28 -03:00
Kubernetes Prow Robot
ee8983705a
Merge pull request #96679 from stmcginnis/appspot-cleanup
Remove stale analytics links from docs
2020-12-10 23:17:22 -08:00
Spencer Peterson
da684bcd6f Bump kubectl in addon manager to 1.19 2020-11-30 23:01:19 +00:00
Sean McGinnis
be131457ef
Remove stale analytics links from docs
Many README files and other docs contained a link to a an appspot
tracking app that is no longer active. Following the links leads to an
error about Go 1.9 no longer being supported. Go 1.9 support was dropped
in appspot in 2019 and disabled June 2020.

This also resulted in a broken image link displaying when viewing these
files on GitHub. Since the app is no longer functioning, and since it
causes a potentially (but granted, minor) confusing error to display,
this just removes those links as I don't believe they are needed
anymore.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-11-18 07:04:48 -06:00
Zihong Zheng
9009530d1c Update addon-manager makefile to use the new staging repo - for real 2020-10-01 15:39:25 -07:00
Zihong Zheng
7a315d6942 Update Makefile to point to the new addon manager gcr repo 2020-09-30 13:54:00 -07:00
Kubernetes Prow Robot
88fb266583
Merge pull request #93762 from spencer-p/create-resource-respects-ensureexists
Fix kube-addon-manager overwriting resources with EnsureExists set
2020-09-24 17:59:11 -07:00
Spencer Peterson
bd44ef811d Fix kube-addon-manager overwriting resources with EnsureExists
The addon manager readme states

> - Addons with label `addonmanager.kubernetes.io/mode=EnsureExists` will be checked for
> existence only. Users can edit these addons as they want.

However, the start_addon function was using `kubectl apply` to create
resources regardless of mode. This change switches between `kubectl
create` and `kubectl apply` depending on mode.

Additionally implemented tests for create_resource fn

 - Refactor functions and main executable
 - Quick tests in bash
 - Tests for Reconcile, EnsureExists behavior
 - Check for completeness with multi resource configs
2020-09-24 21:26:56 +00:00
Arjun Ramachandrula
dcc1ab176d Removed broken link to Analytics 2020-08-13 16:03:37 -04:00
Stephen Augustus
99dd7570eb [VDF] Remove references to gcr.io/google-containers
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-07-22 16:10:12 -04:00
Antoni Zawodny
3c5585bfd9 Fix permissions in kube-addon-manager 2020-05-19 17:40:09 +02:00
Kubernetes Prow Robot
9d3406c27b
Merge pull request #91136 from tosi3k/am-version-update
Bump addon-manager's version to v9.1.0
2020-05-15 23:02:41 -07:00
Antoni Zawodny
f2c22addf5 Bump addon-manager's version to v9.1.0 2020-05-15 12:52:46 +02:00
Antoni Zawodny
ca90cf6049 Allow overriding the default list of resources of list in addon-manager 2020-05-12 12:50:05 +02:00
Kubernetes Prow Robot
81a0e2f62b
Merge pull request #85923 from MrHohn/sig-gcp-owner-file
Migrate OWNERS file to apply the area/provider/gcp label
2020-04-02 19:03:46 -07: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
Zihong Zheng
5463eda704 Migrate OWNERS file to apply the area/provider/gcp label 2019-12-04 17:05:43 -08: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
ialidzhikov
84b36082c6 Add note about addon-manager image location
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-10-18 22:04:05 +03:00
SataQiu
35a7924327 fix shellcheck failures of cluster/addons/addon-manager/kube-addons.sh 2019-09-02 19:18:51 +08:00
Maciej Borsz
a620b47e13 Adde 9.0.2 to CHANGELOG.md 2019-08-01 20:15:46 +02:00
Maciej Borsz
9f71739623
Bump kube-addon-manager's version to v9.0.2 2019-07-26 11:36:37 +02:00
Maciej Borsz
b851a3365a
Fix leader election in kube-addon manager 2019-07-25 14:00:22 +02:00
Kubernetes Prow Robot
dda0e75d36
Merge pull request #76404 from MrHohn/addon-manager-9.1
Update addon-manager to use debian-base:v1.0.0
2019-04-15 18:05:36 -07:00
Kubernetes Prow Robot
8a636a3151
Merge pull request #76467 from MrHohn/addon-manager-owner
Add approver and label to addon-manager
2019-04-15 14:25:06 -07:00
Zihong Zheng
2d635bc29d Add approver and label to addon-manager 2019-04-12 13:04:43 -07:00
Zihong Zheng
9f8d9ba847 Update addon-manager to use debian-base:v1.0.0 2019-04-11 10:18:33 -07:00
Harsh Singh
47275cb6cd Fix for #75567 2019-04-11 13:18:47 +05:30
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Roy Lenferink
b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Tim Allclair
1b9d0c1094 Bump debian-* base image versions to latest 2019-02-04 11:58:51 -08:00
Kubernetes Prow Robot
d306d68a36
Merge pull request #72978 from liggitt/addon-changelog
Update addon-manager changelog/image
2019-01-24 16:30:00 -08:00
Jordan Liggitt
af66376960 Enable multi-arch build for add-on manager 2019-01-23 18:08:09 -05:00
Jordan Liggitt
df97217f7f Update addon-manager changelog/image 2019-01-16 13:26:39 -05:00
Jordan Liggitt
747f1f6b94 Bump kubectl in addon-manager 2019-01-15 16:36:04 -05:00
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
Jeff Grafton
7a8696c331 Update to debian-base 0.4.0
Additionally, update the addon-manager to use kubectl v1.11.3.
2018-10-19 11:13:28 -07:00
Zihong Zheng
6b949c848a Update addon-manager to use debian-base:0.3.2. 2018-10-01 16:59:05 -07:00
Zihong Zheng
e9127b0dba Bump addon-manager to v8.7
- Support extra `--prune-whitelist` resources in kube-addon-manager.
- Update kubectl to v1.10.7.
2018-09-05 11:01:01 -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