Skip to content

Commit

Permalink
updates for harvester-seeder to support webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrokethecloud authored and bk201 committed Jul 19, 2023
1 parent f21ad89 commit 3b26b33
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/harvester-seeder/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.0-dev
version: 0.0.1-dev

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -24,4 +24,4 @@ version: 0.0.0-dev
appVersion: v0.1.0

maintainers:
- name: harvester
- name: harvester
5 changes: 4 additions & 1 deletion charts/harvester-seeder/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ spec:
protocol: TCP
- name: leader
containerPort: 9443
protocol: TCP
protocol: TCP
- name: webhook
containerPort: 443
protocol: TCP
livenessProbe:
httpGet:
path: /metrics
Expand Down
25 changes: 25 additions & 0 deletions charts/harvester-seeder/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ rules:
- get
- list
- watch
- create
- update
- apiGroups:
- bmc.tinkerbell.org
resources:
Expand Down Expand Up @@ -82,6 +84,29 @@ rules:
- events
verbs:
- create
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- get
- watch
- list
- update
- create
- delete
- patch
- apiGroups:
- apiregistration.k8s.io
resources:
- apiservices
verbs:
- get
- watch
- list
- update
- create
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
4 changes: 4 additions & 0 deletions charts/harvester-seeder/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ spec:
targetPort: http
protocol: TCP
name: http
- port: 443
targetPort: webhook
protocol: TCP
name: webhook
selector:
{{- include "seeder.selectorLabels" . | nindent 4 }}

0 comments on commit 3b26b33

Please sign in to comment.