Skip to content

Commit

Permalink
Merge pull request #72 from damsien/main
Browse files Browse the repository at this point in the history
✨ Chart 0.3.4
  • Loading branch information
damsien authored Jan 13, 2025
2 parents 8e05823 + 0a2de6f commit 46907a1
Show file tree
Hide file tree
Showing 34 changed files with 3,177 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/0.3.4/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: syngit
description: An operator to push resources onto git
type: application
version: 0.3.4
appVersion: 0.3.4
home: https://github.com/syngit-org/syngit
icon: https://raw.githubusercontent.com/syngit-org/syngit/main/img/icon.png
maintainers:
- email: dassieu.damien@gmail.com
name: Damien
7 changes: 7 additions & 0 deletions charts/0.3.4/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syngit {{ .Chart.AppVersion }} has been deployed successfully!

Information on the usage of the operator can be found here:
https://github.com/syngit-org/syngit/wiki/📖-Usage

More information about Syngit on the wiki:
https://github.com/syngit-org/syngit/wiki
34 changes: 34 additions & 0 deletions charts/0.3.4/templates/certmanager/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{- if eq .Values.webhook.certmanager.enabled true }}
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
app.kubernetes.io/name: certificate
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: certificate
app.kubernetes.io/created-by: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
name: {{ .Release.Name }}-selfsigned-issuer
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
app.kubernetes.io/name: certificate
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: certificate
app.kubernetes.io/created-by: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
name: syngit-webhook-cert
spec:
dnsNames:
- syngit-webhook-service.{{ .Release.Namespace }}.svc
- syngit-webhook-service.{{ .Release.Namespace }}.svc.local
issuerRef:
kind: Issuer
name: {{ .Release.Name }}-selfsigned-issuer
secretName: {{ .Values.webhook.certmanager.certificate.secret }}
{{- end }}
83 changes: 83 additions & 0 deletions charts/0.3.4/templates/controller/manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
labels:
control-plane: controller-manager
app.kubernetes.io/name: deployment
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: {{ .Values.controller.replicas }}
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
{{- if .Values.controller.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.controller.image.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- command:
- /manager
{{- if .Values.controller.image.imagePullPolicy }}
imagePullPolicy: {{ .Values.controller.image.imagePullPolicy }}
{{- end }}
args:
- "--leader-elect"
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=:8443"
image: {{ .Values.controller.image.prefix }}/{{ .Values.controller.image.name }}:{{ .Values.controller.image.tag }}
env:
- name: MANAGER_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: DYNAMIC_WEBHOOK_NAME
value: {{ .Release.Name }}-dynamic-remotesyncer-webhook
name: manager
securityContext: {{ toYaml .Values.controller.securityContext | nindent 10 }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources: {{ toYaml .Values.controller.resources | nindent 10 }}
ports:
- containerPort: 9443
name: wbhk-crd-srv
protocol: TCP
- containerPort: 9444
name: wbhk-pusher-srv
protocol: TCP
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
serviceAccountName: {{ .Release.Name }}-controller-manager
terminationGracePeriodSeconds: 10
{{- if .Values.controller.tolerations }}
tolerations: {{ toYaml .Values.controller.tolerations | nindent 8 }}
{{- end }}
volumes:
- name: cert
secret:
defaultMode: 420
secretName: {{ .Values.webhook.certmanager.certificate.secret }}
17 changes: 17 additions & 0 deletions charts/0.3.4/templates/controller/metrics_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: service
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-service
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: 8443
selector:
control-plane: controller-manager
Loading

0 comments on commit 46907a1

Please sign in to comment.