Skip to content

Commit

Permalink
whereabouts: bump to v0.5.4
Browse files Browse the repository at this point in the history
Signed-off-by: Jed Lejosne <[email protected]>
  • Loading branch information
jean-edouard committed Aug 1, 2022
1 parent c8c66f6 commit ba867e9
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ rules:
- pods
verbs:
- list
- watch
- apiGroups:
- k8s.cni.cncf.io
resources:
- network-attachment-definitions
verbs:
- get
- list
- watch
- apiGroups:
- ""
- events.k8s.io
resources:
- events
verbs:
- create
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -184,8 +202,10 @@ metadata:
name: ip-reconciler
namespace: kube-system
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
Expand All @@ -195,7 +215,7 @@ spec:
- command:
- /ip-reconciler
- -log-level=verbose
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
requests:
Expand All @@ -211,7 +231,9 @@ spec:
- hostPath:
path: /etc/cni/net.d
name: cni-net-dir
ttlSecondsAfterFinished: 300
schedule: '*/5 * * * *'
successfulJobsHistoryLimit: 0
---
apiVersion: apps/v1
kind: DaemonSet
Expand All @@ -233,12 +255,18 @@ spec:
tier: node
spec:
containers:
- env:
- args:
- -c
- |
SLEEP=false /install-cni.sh && /ip-control-loop -log-level debug
command:
- /bin/sh
env:
- name: WHEREABOUTS_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ rules:
- pods
verbs:
- list
- watch
- apiGroups:
- k8s.cni.cncf.io
resources:
- network-attachment-definitions
verbs:
- get
- list
- watch
- apiGroups:
- ""
- events.k8s.io
resources:
- events
verbs:
- create
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -184,8 +202,10 @@ metadata:
name: ip-reconciler
namespace: kube-system
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
Expand All @@ -195,7 +215,7 @@ spec:
- command:
- /ip-reconciler
- -log-level=verbose
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
requests:
Expand All @@ -211,7 +231,9 @@ spec:
- hostPath:
path: /etc/cni/net.d
name: cni-net-dir
ttlSecondsAfterFinished: 300
schedule: '*/5 * * * *'
successfulJobsHistoryLimit: 0
---
apiVersion: apps/v1
kind: DaemonSet
Expand All @@ -233,12 +255,18 @@ spec:
tier: node
spec:
containers:
- env:
- args:
- -c
- |
SLEEP=false /install-cni.sh && /ip-control-loop -log-level debug
command:
- /bin/sh
env:
- name: WHEREABOUTS_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ rules:
- pods
verbs:
- list
- watch
- apiGroups:
- k8s.cni.cncf.io
resources:
- network-attachment-definitions
verbs:
- get
- list
- watch
- apiGroups:
- ""
- events.k8s.io
resources:
- events
verbs:
- create
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -184,8 +202,10 @@ metadata:
name: ip-reconciler
namespace: kube-system
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 0
template:
metadata:
labels:
Expand All @@ -195,7 +215,7 @@ spec:
- command:
- /ip-reconciler
- -log-level=verbose
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
requests:
Expand All @@ -211,7 +231,9 @@ spec:
- hostPath:
path: /etc/cni/net.d
name: cni-net-dir
ttlSecondsAfterFinished: 300
schedule: '*/5 * * * *'
successfulJobsHistoryLimit: 0
---
apiVersion: apps/v1
kind: DaemonSet
Expand All @@ -233,12 +255,18 @@ spec:
tier: node
spec:
containers:
- env:
- args:
- -c
- |
SLEEP=false /install-cni.sh && /ip-control-loop -log-level debug
command:
- /bin/sh
env:
- name: WHEREABOUTS_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5-amd64
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.5.4-amd64
name: whereabouts
resources:
limits:
Expand Down
1 change: 1 addition & 0 deletions hack/bump-whereabouts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ cd -
manifests_dir=doc
[[ -d ${tmp_dir}/whereabouts/doc/crds ]] && manifests_dir=doc/crds
cp hack/kustomization/whereabouts/*.yaml ${tmp_dir}/whereabouts/${manifests_dir}/
sed -i "s/##VERSION##/${whereabouts_version}/" ${tmp_dir}/whereabouts/${manifests_dir}/patch-*.yaml

target_dir="cluster-provision/k8s/${provider}/manifests/whereabouts"
mkdir -p ${target_dir}
Expand Down
15 changes: 13 additions & 2 deletions hack/kustomization/whereabouts/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@ resources:
- ./whereabouts.cni.cncf.io_ippools.yaml
- ./whereabouts.cni.cncf.io_overlappingrangeipreservations.yaml

transformers:
- patch-ip-reconciler-job.yaml
patches:
- path: patch-ip-reconciler-job.yaml
target:
group: batch
version: v1beta1
kind: CronJob
name: ip-reconciler
- path: patch-daemonset-install.yaml
target:
group: apps
version: v1
kind: DaemonSet
name: whereabouts
10 changes: 10 additions & 0 deletions hack/kustomization/whereabouts/patch-daemonset-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: whereabouts
spec:
template:
spec:
containers:
- name: whereabouts
image: ghcr.io/k8snetworkplumbingwg/whereabouts:##VERSION##-amd64
24 changes: 11 additions & 13 deletions hack/kustomization/whereabouts/patch-ip-reconciler-job.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# TODO: remove after whereabouts contains https://github.com/k8snetworkplumbingwg/whereabouts/pull/150
apiVersion: builtin
kind: LabelTransformer
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: patch-ip-reconciler-job
labels:
app: whereabouts
fieldSpecs:
- path: spec/jobTemplate/spec/template/metadata/labels
create: true
kind: CronJob
metadata:
name: ip-reconciler

name: ip-reconciler
spec:
jobTemplate:
spec:
template:
spec:
containers:
- name: whereabouts
image: ghcr.io/k8snetworkplumbingwg/whereabouts:##VERSION##-amd64

0 comments on commit ba867e9

Please sign in to comment.