Skip to content

Commit

Permalink
renaming rbac.enable -> rbac.create, removing ---, removing image pul…
Browse files Browse the repository at this point in the history
…l secret support
  • Loading branch information
EJ Etherington committed Apr 1, 2019
1 parent 52fa0b3 commit 5a71316
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 23 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ kubectl apply -f deploy/all.yaml

## Helm Deploy Option

* Create ImagePullSecret:
`kubectl -n fairwinds create secret docker-registry fairwinds --docker-server=<docker_registry> --docker-username=<docker_username> --docker-password=<docker_password> --docker-email=<docker_email>`

* Create release with Helm:
```
helm upgrade --install fairwinds charts/fairwinds/ --namespace fairwinds --recreate-pods
Expand Down
1 change: 0 additions & 1 deletion charts/fairwinds/templates/fairwinds-dash.svc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.dashboard.service -}}
---
apiVersion: v1
kind: Service
metadata:
Expand Down
3 changes: 1 addition & 2 deletions charts/fairwinds/templates/fairwinds.clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.rbac.enable -}}
---
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
Expand Down
3 changes: 1 addition & 2 deletions charts/fairwinds/templates/fairwinds.clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if .Values.rbac.enable -}}
---
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
Expand Down
3 changes: 0 additions & 3 deletions charts/fairwinds/templates/fairwinds.configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{- if .Values.config -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -12,4 +10,3 @@ metadata:
namespace: '{{.Release.Namespace}}'
data:
config.yml: {{- toYaml .Values.config | indent 2 -}}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
labels:
app: '{{.Release.Name}}'
chart: '{{.Chart.Name}}-{{.Chart.Version}}'
Expand Down Expand Up @@ -49,7 +49,5 @@ spec:
name: '{{ template "fullname" . }}'
readOnly: true
subPath: config.yml
imagePullSecrets:
- name: '{{.Values.imagePullSecrets}}'
serviceAccountName: '{{ template "fullname" . }}'
{{- end -}}
4 changes: 1 addition & 3 deletions charts/fairwinds/templates/fairwinds.deployment-webook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
labels:
app: '{{.Release.Name}}'
chart: '{{.Chart.Name}}-{{.Chart.Version}}'
Expand Down Expand Up @@ -51,7 +51,5 @@ spec:
name: '{{ template "fullname" . }}'
readOnly: true
subPath: config.yml
imagePullSecrets:
- name: '{{.Values.imagePullSecrets}}'
serviceAccountName: '{{ template "fullname" . }}'
{{- end -}}
1 change: 0 additions & 1 deletion charts/fairwinds/templates/fairwinds.secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: v1
kind: Secret
metadata:
Expand Down
3 changes: 0 additions & 3 deletions charts/fairwinds/templates/fairwinds.serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{- if .Values.rbac.enable -}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -9,4 +7,3 @@ metadata:
release: '{{.Release.Name}}'
name: '{{ template "fullname" . }}'
namespace: '{{.Release.Namespace}}'
{{- end -}}
3 changes: 1 addition & 2 deletions charts/fairwinds/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ webhook:
image: quay.io/reactiveops/fairwinds
imagePullPolicy: IfNotPresent
imageTag: dev-f16f12d0af38fd547918d394ce717037223b7f94
imagePullSecrets: fairwinds
replicas: 1
rbac:
enable: true
create: true

0 comments on commit 5a71316

Please sign in to comment.