Skip to content

Commit 6d645e6

Browse files
bump app-proxy v0.0.14 (#191)
* bump app-proxy v0.0.14 * fix * wip * wip * wip * wip * wip * readiness
1 parent 9a163cf commit 6d645e6

File tree

8 files changed

+48
-17
lines changed

8 files changed

+48
-17
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.175
1+
VERSION=v0.0.176
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.175/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.176/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.175/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.176/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/app-proxy/app-proxy.deploy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ spec:
5757
name: cap-app-proxy
5858
livenessProbe:
5959
initialDelaySeconds: 5
60-
timeoutSeconds: 3
60+
timeoutSeconds: 10
61+
failureThreshold: 10
6162
httpGet:
6263
port: http
6364
path: /api/ping
6465
readinessProbe:
6566
initialDelaySeconds: 5
66-
timeoutSeconds: 3
67+
timeoutSeconds: 10
6768
httpGet:
6869
port: http
6970
path: /api/ping
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: ClusterRoleBinding
2+
kind: RoleBinding
33
metadata:
44
labels:
55
app: cap-app-proxy
66
name: cap-app-proxy
77
roleRef:
88
apiGroup: rbac.authorization.k8s.io
9-
kind: ClusterRole
10-
name: argo-server-cluster-role
9+
kind: Role
10+
name: cap-app-proxy
1111
subjects:
1212
- kind: ServiceAccount
1313
name: cap-app-proxy
14-
namespace: default
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
labels:
5+
app: cap-app-proxy
6+
name: cap-app-proxy
7+
rules:
8+
- apiGroups:
9+
- ""
10+
resources:
11+
- secrets
12+
verbs:
13+
- get
14+
- create
15+
- delete
16+
- update
17+
- patch
18+
- list
19+
- watch

manifests/app-proxy/kustomization.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ kind: Kustomization
33
images:
44
- name: quay.io/codefresh/cap-app-proxy
55
newName: quay.io/codefresh/cap-app-proxy
6-
newTag: v0.0.13
6+
newTag: v0.0.14
77
resources:
88
- app-proxy.deploy.yaml
99
- app-proxy.svc.yaml
1010
- app-proxy.sa.yaml
11-
- app-proxy.crb.yaml
11+
- app-proxy.rb.yaml
12+
- app-proxy.role.yaml
1213
- app-proxy.cm.yaml

manifests/argo-workflows/kustomization.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resources:
44
- https://github.com/codefresh-io/argo-workflows/releases/download/v3.2.4-cap-CR-6798/install.yaml
55

66
patches:
7-
# reset the crbs to `subject.namespace: default`, so that argo-workflows will later change them to the actual ns
7+
# reset the crbs to `subject.namespace: default`, so that argo-cd will later change them to the actual ns
88
- target:
99
group: rbac.authorization.k8s.io
1010
version: v1
@@ -13,6 +13,17 @@ patches:
1313
- op: replace
1414
path: /subjects/0/namespace
1515
value: default
16+
# add to the app-proxy service account the required permissions
17+
# to manipulate workflows
18+
- target:
19+
group: rbac.authorization.k8s.io
20+
version: v1
21+
kind: ClusterRoleBinding
22+
name: argo-server-binding
23+
patch: |-
24+
- op: add
25+
path: /subjects/1
26+
value: { "kind": "ServiceAccount", "name": "cap-app-proxy", "namespace": "default" }
1627
1728
- target:
1829
group: apps
@@ -25,7 +36,7 @@ patches:
2536
value: --auth-mode=server
2637
2738
configMapGenerator:
28-
- name: workflow-controller-configmap
29-
behavior: merge
30-
literals:
31-
- containerRuntimeExecutor=emissary
39+
- name: workflow-controller-configmap
40+
behavior: merge
41+
literals:
42+
- containerRuntimeExecutor=emissary

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.175
8+
version: 0.0.176
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)