Skip to content

Commit

Permalink
Update helm chart
Browse files Browse the repository at this point in the history
- Add container to TailingSidecar CRD,
  related to #57

- Change MutatingWebhook configuration,
  set webhook config name to tailing-sidecar.sumologic.com
  set failurePolicy to Ignore
  related to #49

- Add ServiceAccount
  related to #65
  • Loading branch information
kasia-kujawa committed Mar 12, 2021
1 parent 474de54 commit fb762f9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions helm/tailing-sidecar-operator/templates/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
configs:
additionalProperties:
properties:
container:
type: string
file:
type: string
volume:
Expand Down Expand Up @@ -71,8 +73,8 @@ webhooks:
name: tailing-sidecar-webhook-service
namespace: {{ .Release.Namespace }}
path: /add-tailing-sidecars-v1-pod
failurePolicy: Fail
name: mpod.kb.io
failurePolicy: Ignore
name: tailing-sidecar.sumologic.com
rules:
- apiGroups:
- ""
Expand All @@ -84,6 +86,12 @@ webhooks:
resources:
- pods
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: tailing-sidecar-service-account
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down Expand Up @@ -184,7 +192,7 @@ roleRef:
name: tailing-sidecar-leader-election-role
subjects:
- kind: ServiceAccount
name: default
name: tailing-sidecar-service-account
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -197,7 +205,7 @@ roleRef:
name: tailing-sidecar-manager-role
subjects:
- kind: ServiceAccount
name: default
name: tailing-sidecar-service-account
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -210,7 +218,7 @@ roleRef:
name: tailing-sidecar-proxy-role
subjects:
- kind: ServiceAccount
name: default
name: tailing-sidecar-service-account
namespace: {{ .Release.Namespace }}
---
apiVersion: v1
Expand Down Expand Up @@ -287,6 +295,7 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
serviceAccountName: tailing-sidecar-service-account
terminationGracePeriodSeconds: 10
volumes:
- name: cert
Expand Down

0 comments on commit fb762f9

Please sign in to comment.