--- /dev/null
+[all]
+ignore = .tox/**,
+ .git/**,
+ .gitignore,
+ .gitreview,
+ .gitmodules,
+ **.sw?,
+ **.orig
+
+[all.GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+ Also-by,
+ Co-authored-by,
+ http://,
+ https://
+
+[all.reStructuredText]
+bears = SpaceConsistencyBear
+files = docs/**.rst
+use_spaces = true
+ignore = .git/**,
+ .tox/**
+
+[all.ShellCheck]
+bears = ShellCheckBear,SpaceConsistencyBear
+files = **.sh
+shell = bash
+use_spaces = true
+
+[all.YAML]
+bears = YAMLLintBear
+files = **.yaml, **.yml
+use_spaces = true
+ignore_length_regex = ^.*https?://
+max_line_length = 120
+ignore = src/use_cases/
+
+[all.Python]
+bears = PyLintBear
+files = **.py
+use_spaces = true
+pylint_disable = E0401, W0401, C0111
+ignore = src/use_cases/
version: 1.0
details:
- pod_owner: ENEA AB
- contact: armband@enea.com
+ pod_owner: Arm IEC team
+ contact: blueprints@lists.akraino.org # use hashtag iec
lab: ENEA lab
location: Stockholm, Sweden
type: production
version: 1.0
details:
- pod_owner: ENEA AB
- contact: armband@enea.com
+ pod_owner: Arm IEC team
+ contact: blueprints@lists.akraino.org # use hashtag iec
lab: ENEA lab
location: Stockholm, Sweden
type: production
cd iec/src/foundation/scripts
./k8s_common.sh
./k8s_master.sh k8s_master_ip k8s_pod_net_cidr k8s_svc_net_cidr
+# shellcheck source=/dev/null
. ${HOME}/.profile
./setup-cni.sh k8s_cluster_ip k8s_pod_net_cidr
token=$(kubeadm token list --skip-headers | awk 'END{print $1}')
# If you're using TLS enabled etcd uncomment the following.
# You must also populate the Secret below with these files.
etcd_ca: "" # "/calico-secrets/etcd-ca"
- etcd_cert: "" # "/calico-secrets/etcd-cert"
+ etcd_cert: "" # "/calico-secrets/etcd-cert"
etcd_key: "" # "/calico-secrets/etcd-key"
# Configure the Calico backend to use.
calico_backend: "bird"
name: calico-etcd-secrets
namespace: kube-system
data:
- # Populate the following files with etcd TLS configuration if desired, but leave blank if
- # not using TLS for etcd.
- # This self-hosted install expects three files with the following names. The values
- # should be base64 encoded strings of the entire contents of each file.
- # etcd-key: null
- # etcd-cert: null
- # etcd-ca: null
+# Populate the following files with etcd TLS configuration if desired, but leave blank if
+# not using TLS for etcd.
+# This self-hosted install expects three files with the following names. The values
+# should be base64 encoded strings of the entire contents of each file.
+# etcd-key: null
+# etcd-cert: null
+# etcd-ca: null
---
readinessProbe:
exec:
command:
- - /bin/calico-node
- - -bird-ready
- - -felix-ready
+ - /bin/calico-node
+ - -bird-ready
+ - -felix-ready
periodSeconds: 10
volumeMounts:
- mountPath: /lib/modules
readinessProbe:
exec:
command:
- - /usr/bin/check-status
- - -r
+ - /usr/bin/check-status
+ - -r
volumes:
# Mount in the etcd TLS secrets with mode 400.
# See https://kubernetes.io/docs/concepts/configuration/secret/
metadata:
name: calico-kube-controllers
namespace: kube-system
-
fieldRef:
fieldPath: status.podIP
command:
- - /usr/local/bin/etcd
+ - /usr/local/bin/etcd
args:
- - --name=calico
- - --data-dir=/var/etcd/calico-data
- - --advertise-client-urls=http://$(CALICO_ETCD_IP):6666
- - --listen-client-urls=http://0.0.0.0:6666
- - --listen-peer-urls=http://0.0.0.0:6667
- - --auto-compaction-retention=1
+ - --name=calico
+ - --data-dir=/var/etcd/calico-data
+ - --advertise-client-urls=http://$(CALICO_ETCD_IP):6666
+ - --listen-client-urls=http://0.0.0.0:6666
+ - --listen-peer-urls=http://0.0.0.0:6667
+ - --auto-compaction-retention=1
volumeMounts:
- name: var-etcd
mountPath: /var/etcd
- name: ETCD_UNSUPPORTED_ARCH
value: "arm64"
command:
- - /usr/local/bin/etcd
+ - /usr/local/bin/etcd
args:
- - --name=calico
- - --data-dir=/var/etcd/calico-data
- - --advertise-client-urls=http://$(CALICO_ETCD_IP):6666
- - --listen-client-urls=http://0.0.0.0:6666
- - --listen-peer-urls=http://0.0.0.0:6667
- - --auto-compaction-retention=1
+ - --name=calico
+ - --data-dir=/var/etcd/calico-data
+ - --advertise-client-urls=http://$(CALICO_ETCD_IP):6666
+ - --listen-client-urls=http://0.0.0.0:6666
+ - --listen-peer-urls=http://0.0.0.0:6667
+ - --auto-compaction-retention=1
volumeMounts:
- name: var-etcd
mountPath: /var/etcd
name: calico-kube-controllers
rules:
- apiGroups:
- - ""
- - extensions
+ - ""
+ - extensions
resources:
- pods
- namespaces
- watch
- list
- apiGroups:
- - networking.k8s.io
+ - networking.k8s.io
resources:
- networkpolicies
verbs:
kind: ClusterRole
name: calico-kube-controllers
subjects:
-- kind: ServiceAccount
- name: calico-kube-controllers
- namespace: kube-system
+ - kind: ServiceAccount
+ name: calico-kube-controllers
+ namespace: kube-system
---
kind: ClusterRole
name: calico-node
subjects:
-- kind: ServiceAccount
- name: calico-node
- namespace: kube-system
+ - kind: ServiceAccount
+ name: calico-node
+ namespace: kube-system
#!/bin/bash
+# shellcheck disable=SC2034
# Host user which can log into master and each worker nodes
HOST_USER=${HOST_USER:-iec}
#Modified from https://github.com/cachengo/seba_charts/blob/master/scripts/installSEBA.sh
-basepath=$(cd `dirname $0`; pwd)
+basepath=$(cd "$(dirname "$0")"; pwd)
CORD_REPO=${CORD_REPO:-https://charts.opencord.org}
CORD_PLATFORM_VERSION=${CORD_PLATFORM_VERSION:-6.1.0}
SEBA_VERSION=${SEBA_VERSION:-1.0.0}
[tox]
minversion = 1.6
envlist =
- docs,
- docs-linkcheck
+ docs,
+ docs-linkcheck,
+ coala,
skipsdist = true
+passenv = TOX_WORK_DIR
+toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
[testenv:docs]
deps = -rdocs/requirements.txt
[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:coala]
+basepython = python3
+whitelist_externals = rm
+deps =
+ coala
+ coala-bears
+commands =
+ rm -rf src/use_cases/seba_on_arm/src_repo/
+ coala --non-interactive