Skip to content

Commit

Permalink
chore(argo-events): Cleanup old CRD hooks (#778)
Browse files Browse the repository at this point in the history
* Drop old CRDs with hooks containing helm hooks

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* Bump chart version

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* Drop empty newlines inside manifests

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* chore: trigger CI

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* chore: Ignore 'ci/' directory in final package

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* Apply changes from code review

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
  • Loading branch information
mkilchhofer authored Jun 7, 2021
1 parent be8f33c commit 01c78a8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 145 deletions.
1 change: 1 addition & 0 deletions charts/argo-events/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
.project
.idea/
*.tmproj
ci/
2 changes: 1 addition & 1 deletion charts/argo-events/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events
version: 1.6.1
version: 1.6.2
keywords:
- argo-events
- sensor-controller
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ This is a **community maintained** chart. It installs the [argo-events](https://

## Notes on CRD Installation

Some users would prefer to install the CRDs _outside_ of the chart. You can disable the CRD installation of this chart by using `--set installCRD=false` when installing the chart.
Some users would prefer to install the CRDs _outside_ of the chart. You can disable the CRD installation of this chart by using `--skip-crds` when installing the chart.

You can install the CRDs manually from `crds` folder.
7 changes: 3 additions & 4 deletions charts/argo-events/templates/argo-events-cluster-roles.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if not .Values.singleNamespace }}

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -26,9 +25,9 @@ kind: ClusterRole
metadata:
name: argo-events-role
rules:
{{- if .Values.additionalServiceAccountRules }}
{{ .Values.additionalServiceAccountRules | toYaml | nindent 2}}
{{- end }}
{{- with .Values.additionalServiceAccountRules }}
{{- toYaml . | nindent 2 }}
{{- end }}
- apiGroups:
- argoproj.io
verbs:
Expand Down
5 changes: 2 additions & 3 deletions charts/argo-events/templates/argo-events-roles.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.singleNamespace }}

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down Expand Up @@ -28,8 +27,8 @@ metadata:
name: argo-events-role
namespace: {{ .Release.Namespace }}
rules:
{{- if .Values.additionalServiceAccountRules }}
{{ .Values.additionalServiceAccountRules | toYaml | nindent 2}}
{{- with .Values.additionalServiceAccountRules }}
{{- toYaml . | nindent 2 }}
{{- end }}
- apiGroups:
- argoproj.io
Expand Down
44 changes: 0 additions & 44 deletions charts/argo-events/templates/eventbus-crd.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions charts/argo-events/templates/eventsource-crd.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions charts/argo-events/templates/sensor-crd.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions charts/argo-events/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ imagePullPolicy: Always
imagePullSecrets: []
# - name: argo-pull-secret

# If set to false, skip installing the CRDs. Requires user to have them installed prior to helm chart installation.
installCRD: true

# ServiceAccount to use for running controller.
serviceAccount: argo-events-sa

Expand Down

0 comments on commit 01c78a8

Please sign in to comment.