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 
```
This commit is contained in:
Kubernetes Submit Queue 2017-09-23 15:26:54 -07:00 committed by GitHub
commit e9dbad33ae
2 changed files with 8 additions and 3 deletions

View File

@ -33,10 +33,14 @@ provides:
interface: kubernetes-cni
scope: container
resources:
cni:
cni-amd64:
type: file
filename: cni.tgz
description: CNI plugins
description: CNI plugins for amd64
cni-s390x:
type: file
filename: cni.tgz
description: CNI plugins for s390x
kubectl:
type: file
filename: kubectl.snap

View File

@ -179,7 +179,8 @@ def install_cni_plugins():
# Get the resource via resource_get
try:
archive = hookenv.resource_get('cni')
resource_name = 'cni-{}'.format(arch())
archive = hookenv.resource_get(resource_name)
except Exception:
message = 'Error fetching the cni resource.'
hookenv.log(message)