Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump calico to v3.20 and move away from v1beta apis #12230

Merged
merged 5 commits into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: ambassadorinstallations.getambassador.io
Expand Down
4 changes: 2 additions & 2 deletions deploy/addons/ingress-dns/ingress-dns-pod.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
app.kubernetes.io/part-of: kube-system
addonmanager.kubernetes.io/mode: Reconcile
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: minikube-ingress-dns
Expand All @@ -47,7 +47,7 @@ rules:
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: minikube-ingress-dns
Expand Down
2 changes: 1 addition & 1 deletion deploy/addons/istio-provisioner/istio-operator.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
addonmanager.kubernetes.io/mode: EnsureExists
...
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: istiooperators.install.istio.io
Expand Down
27 changes: 23 additions & 4 deletions pkg/minikube/bootstrapper/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,37 @@ func KindNet(repo string) string {
return path.Join(repo, "kindnetd:v20210326-1e038dc5")
}

// all calico images are from https://docs.projectcalico.org/manifests/calico.yaml
const calicoVersion = "v3.20.0"

// CalicoDaemonSet returns the image used for calicoDaemonSet
func CalicoDaemonSet(repo string) string {
if repo == "" {
repo = "calico"
repo = "docker.io/calico"
}
return path.Join(repo, "node:v3.14.1")
return path.Join(repo, "node:"+calicoVersion)
}

// CalicoDeployment returns the image used for calicoDeployment
func CalicoDeployment(repo string) string {
if repo == "" {
repo = "calico"
repo = "docker.io/calico"
}
return path.Join(repo, "kube-controllers:"+calicoVersion)
}

// CalicoFelixDriver returns image used for felix driver
func CalicoFelixDriver(repo string) string {
if repo == "" {
repo = "docker.io/calico"
}
return path.Join(repo, "pod2daemon-flexvol:"+calicoVersion)
}

// CalicoBin returns image used for calico binary image
func CalicoBin(repo string) string {
if repo == "" {
repo = "docker.io/calico"
medyagh marked this conversation as resolved.
Show resolved Hide resolved
}
return path.Join(repo, "kube-controllers:v3.14.1")
return path.Join(repo, "cni:"+calicoVersion)
medyagh marked this conversation as resolved.
Show resolved Hide resolved
}
Loading