Skip to content

Commit

Permalink
fixed crbs (#18)
Browse files Browse the repository at this point in the history
* fixed crbs
  • Loading branch information
ATGardner authored Jul 11, 2021
1 parent e964202 commit 75b1433
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.0.23
VERSION=v0.0.24
OUT_DIR=dist
YEAR?=$(shell date +"%Y")

Expand Down
4 changes: 2 additions & 2 deletions docs/releases/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Linux
```bash
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.21/cf-linux-amd64.tar.gz | tar zx
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.24/cf-linux-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./cf-* /usr/local/bin/cf
Expand All @@ -20,7 +20,7 @@ cf version
### Mac
```bash
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.21/cf-darwin-amd64.tar.gz | tar zx
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.24/cf-darwin-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./cf-* /usr/local/bin/cf
Expand Down
18 changes: 14 additions & 4 deletions manifests/argo-rollouts/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ kind: Kustomization
resources:
- https://github.com/argoproj/argo-rollouts/releases/download/v1.0.2/install.yaml
patches:
- patch: |-
- op: remove
path: /spec/preserveUnknownFields
target:
- target:
group: apiextensions.k8s.io
version: v1
kind: CustomResourceDefinition
patch: |-
- op: remove
path: /spec/preserveUnknownFields
# reset the crbs to `subject.namespace: default`, so that argo-rollouts will later change them to the actual ns
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRoleBinding
patch: |-
- op: replace
path: /subjects/0/namespace
value: default
11 changes: 11 additions & 0 deletions manifests/argo-workflows/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/argoproj/argo-workflows/v3.1.1/manifests/install.yaml

patches:
# reset the crbs to `subject.namespace: default`, so that argo-workflows will later change them to the actual ns
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRoleBinding
patch: |-
- op: replace
path: /subjects/0/namespace
value: default

0 comments on commit 75b1433

Please sign in to comment.