mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fixes Addon Manager's pruning issue for old Deployments
This commit is contained in:
		@@ -1,3 +1,6 @@
 | 
			
		||||
### Version 6.1 (Tue November 29 2016 Zihong Zheng <zihongz@google.com>)
 | 
			
		||||
 - Support pruning old Deployments.
 | 
			
		||||
 | 
			
		||||
### Version 6.0 (Fri November 18 2016 Zihong Zheng <zihongz@google.com>)
 | 
			
		||||
 - Upgrade Addon Manager to use `kubectl apply`.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -15,8 +15,8 @@
 | 
			
		||||
IMAGE=gcr.io/google-containers/kube-addon-manager
 | 
			
		||||
ARCH?=amd64
 | 
			
		||||
TEMP_DIR:=$(shell mktemp -d)
 | 
			
		||||
VERSION=v6.0
 | 
			
		||||
KUBECTL_VERSION?=v1.5.0-beta.1
 | 
			
		||||
VERSION=v6.1
 | 
			
		||||
KUBECTL_VERSION?=v1.5.0-beta.2
 | 
			
		||||
 | 
			
		||||
ifeq ($(ARCH),amd64)
 | 
			
		||||
	BASEIMAGE?=bashell/alpine-bash
 | 
			
		||||
 
 | 
			
		||||
@@ -195,6 +195,7 @@ done
 | 
			
		||||
# otherwise they would be leaked during upgrade.
 | 
			
		||||
log INFO "== Annotating the old addon resources at $(date -Is) =="
 | 
			
		||||
annotate_addons ReplicationController
 | 
			
		||||
annotate_addons Deployment
 | 
			
		||||
 | 
			
		||||
# Create new addon resources by apply (with --prune=false).
 | 
			
		||||
# The old RCs will not fight for pods created by new Deployments with the same label because the `controllerRef` feature.
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
    "containers": [
 | 
			
		||||
      {
 | 
			
		||||
        "name": "kube-addon-manager",
 | 
			
		||||
        "image": "REGISTRY/kube-addon-manager-ARCH:v6.0",
 | 
			
		||||
        "image": "REGISTRY/kube-addon-manager-ARCH:v6.1",
 | 
			
		||||
        "resources": {
 | 
			
		||||
          "requests": {
 | 
			
		||||
            "cpu": "5m",
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
    "containers": [
 | 
			
		||||
      {
 | 
			
		||||
        "name": "kube-addon-manager",
 | 
			
		||||
        "image": "REGISTRY/kube-addon-manager-ARCH:v6.0",
 | 
			
		||||
        "image": "REGISTRY/kube-addon-manager-ARCH:v6.1",
 | 
			
		||||
        "resources": {
 | 
			
		||||
          "requests": {
 | 
			
		||||
            "cpu": "5m",
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ spec:
 | 
			
		||||
  containers:
 | 
			
		||||
  - name: kube-addon-manager
 | 
			
		||||
    # When updating version also bump it in cluster/images/hyperkube/static-pods/addon-manager.json
 | 
			
		||||
    image: gcr.io/google-containers/kube-addon-manager:v6.0
 | 
			
		||||
    image: gcr.io/google-containers/kube-addon-manager:v6.1
 | 
			
		||||
    command:
 | 
			
		||||
    - /bin/bash
 | 
			
		||||
    - -c
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user