Commit e9dbad33 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #52537 from juju-solutions/feature/s390x

Automatic merge from submit-queue (batch tested with PRs 52355, 52537, 52551, 52403, 50673). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. Add s390x to juju kubernetes **What this PR does / why we need it**: With this PR we add support for s390x to juju kubernetes worker **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: **Special notes for your reviewer**: **Release note**: ```Kubernetes deployments to s390x via Juju ```
parents 7e7bcabe b6f399f4
...@@ -33,10 +33,14 @@ provides: ...@@ -33,10 +33,14 @@ provides:
interface: kubernetes-cni interface: kubernetes-cni
scope: container scope: container
resources: resources:
cni: cni-amd64:
type: file
filename: cni.tgz
description: CNI plugins for amd64
cni-s390x:
type: file type: file
filename: cni.tgz filename: cni.tgz
description: CNI plugins description: CNI plugins for s390x
kubectl: kubectl:
type: file type: file
filename: kubectl.snap filename: kubectl.snap
......
...@@ -179,7 +179,8 @@ def install_cni_plugins(): ...@@ -179,7 +179,8 @@ def install_cni_plugins():
# Get the resource via resource_get # Get the resource via resource_get
try: try:
archive = hookenv.resource_get('cni') resource_name = 'cni-{}'.format(arch())
archive = hookenv.resource_get(resource_name)
except Exception: except Exception:
message = 'Error fetching the cni resource.' message = 'Error fetching the cni resource.'
hookenv.log(message) hookenv.log(message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment