added repo

This commit is contained in:
Your Name
2026-08-26 03:39:42 +05:30
parent 45c25a95af
commit b8575bb8b9
6889 changed files with 1217125 additions and 0 deletions
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
namespace: {{ .Release.Namespace }}
name: aurva-controller-clusterrole-{{ .Release.Namespace }}
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: aurva-controller-clusterrolebinding-{{ .Release.Namespace }}
subjects:
- kind: ServiceAccount
name: {{ .Release.Namespace }}-{{ template "aurva-controller.controllerServiceAccountName" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: aurva-controller-clusterrole-{{ .Release.Namespace }}
apiGroup: rbac.authorization.k8s.io
@@ -0,0 +1,133 @@
{{- if .Values.global.aurva_controller.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
{{- include "application.labels" . | nindent 4 }}
{{- if .Values.aurva_controller.additionalLabels }}
{{ toYaml .Values.aurva_controller.additionalLabels | indent 4 }}
{{- end }}
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.aurva_controller.annotations) }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
name: {{ include "aurva-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ default 4 .Values.aurva_controller.replicas }}
selector:
matchLabels:
{{ include "aurva-controller.selectorLabels" . | indent 6 }}
{{- if .Values.aurva_controller.strategy }}
strategy:
{{ toYaml .Values.aurva_controller.strategy | indent 4 }}
{{- end }}
{{- if not (kindIs "invalid" .Values.aurva_controller.revisionHistoryLimit) }}
revisionHistoryLimit: {{ .Values.aurva_controller.revisionHistoryLimit }}
{{- end }}
template:
metadata:
labels:
{{ include "aurva-controller.selectorLabels" . | indent 8 }}
{{- if .Values.aurva_controller.podLabels }}
{{ toYaml .Values.aurva_controller.podLabels | indent 8 }}
{{- end }}
{{- if or .Values.aurva_controller.additionalPodAnnotations }}
annotations:
{{- end }}
{{- with .Values.aurva_controller.additionalPodAnnotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec:
{{- with .Values.aurva_controller.priorityClassName | default .Values.global.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- if .Values.aurva_controller.nodeSelector }}
nodeSelector:
{{ toYaml .Values.aurva_controller.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.aurva_controller.tolerations }}
tolerations:
{{ toYaml .Values.aurva_controller.tolerations | indent 8 -}}
{{- end }}
{{- if .Values.aurva_controller.affinity }}
affinity:
{{ toYaml .Values.aurva_controller.affinity | indent 8 -}}
{{- end }}
serviceAccountName: {{ .Release.Namespace }}-{{ include "aurva-controller.controllerServiceAccountName" . }}
{{- if .Values.aurva_controller.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.aurva_controller.imagePullSecrets }}
{{- end }}
containers:
- name: {{ template "aurva-controller.fullname" . }}
{{- if .Values.aurva_controller.image.digest }}
image: "{{ .Values.aurva_controller.image.repository }}@{{ .Values.aurva_controller.image.digest }}"
{{- else if .Values.aurva_controller.image.tag }}
image: "{{ .Values.aurva_controller.image.repository }}:{{ .Values.aurva_controller.image.tag }}"
{{- end }}
imagePullPolicy: {{ .Values.aurva_controller.image.pullPolicy }}
{{- if .Values.aurva_controller.envFrom }}
envFrom:
{{- range $value := .Values.aurva_controller.envFrom }}
{{- if (eq $value.type "secret") }}
- secretRef:
{{- if .name }}
name: {{ include "application.tplvalues.render" ( dict "value" $value.name "context" $ ) }}
{{- end }}
{{- else if (eq $value.type "configmap") }}
- configMapRef:
{{- if .name }}
name: {{ include "application.tplvalues.render" ( dict "value" $value.name "context" $ ) }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.aurva_controller.env }}
env:
{{- range $key, $value := .Values.aurva_controller.env }}
- name: {{ include "application.tplvalues.render" ( dict "value" $key "context" $ ) }}
{{ include "application.tplvalues.render" ( dict "value" $value "context" $ ) | indent 10 }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.aurva_controller.resources | nindent 12 }}
{{- if .Values.global.aurva_fastdet.enabled }}
- name: aurva-fastdet
image: "{{ .Values.aurva_controller.aurvaFastdet.image.repository }}:{{ .Values.aurva_controller.aurvaFastdet.image.tag }}"
imagePullPolicy: {{ .Values.aurva_controller.aurvaFastdet.image.pullPolicy }}
{{- if .Values.aurva_controller.aurvaFastdet.envFrom }}
envFrom:
{{- range $value := .Values.aurva_controller.aurvaFastdet.envFrom }}
{{- if (eq $value.type "secret") }}
- secretRef:
{{- if .name }}
name: {{ include "application.tplvalues.render" ( dict "value" $value.name "context" $ ) }}
{{- end }}
{{- else if (eq $value.type "configmap") }}
- configMapRef:
{{- if .name }}
name: {{ include "application.tplvalues.render" ( dict "value" $value.name "context" $ ) }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.aurva_controller.aurvaFastdet.env }}
env:
{{- range $key, $value := .Values.aurva_controller.aurvaFastdet.env }}
- name: {{ include "application.tplvalues.render" ( dict "value" $key "context" $ ) }}
value: {{ include "application.tplvalues.render" ( dict "value" $value "context" $ ) | indent 10 }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.aurva_controller.aurvaFastdet.resources | nindent 12 }}
{{- end }}
{{- with .Values.aurva_controller.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
dnsPolicy: {{ .Values.aurva_controller.dnsPolicy }}
{{- end }}
@@ -0,0 +1,20 @@
{{- if .Values.global.aurva_controller.enabled }}
{{- if .Values.aurva_controller.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "aurva-controller.fullname" . }}-hpa
labels:
app: {{ include "aurva-controller.fullname" . }}
release: {{ .Release.Name }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "aurva-controller.fullname" . }}
minReplicas: {{ .Values.aurva_controller.autoscaling.minReplicas }}
maxReplicas: {{ .Values.aurva_controller.autoscaling.maxReplicas }}
metrics:
{{- toYaml .Values.aurva_controller.autoscaling.metrics | nindent 4 }}
{{- end}}
{{- end }}
@@ -0,0 +1,22 @@
{{- if .Values.global.aurva_controller.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.aurva_controller.secret.name }}
namespace: {{ template "application.namespace" $ }}
labels:
{{- include "application.labels" $ | nindent 4 }}
{{- if .Values.aurva_controller.secret.additionalLabels }}
{{ toYaml .Values.aurva_controller.secret.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.aurva_controller.secret.annotations }}
annotations:
{{ toYaml .Values.aurva_controller.secret.annotations | indent 4 }}
{{- end }}
data:
PG_HOST: {{ printf "aurva-dataplane-database.%s.svc.cluster.local" .Release.Namespace | b64enc }}
PII_ANALYZER_URL: {{ printf "aurva-pii-analyzer.%s:9090" .Release.Namespace | b64enc }}
{{- range $key, $value := .Values.aurva_controller.secret.config }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
{{- end }}
@@ -0,0 +1,28 @@
{{- if .Values.global.aurva_controller.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "aurva-controller.fullname" . }}
namespace: {{ template "application.namespace" $ }}
labels:
{{- include "application.labels" . | nindent 4 }}
{{- if .Values.aurva_controller.additionalLabels }}
{{ toYaml .Values.aurva_controller.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.aurva_controller.annotations }}
annotations:
{{ include "application.tplvalues.render" ( dict "value" .Values.aurva_controller.annotations "context" $ ) | indent 4 }}
{{- end }}
spec:
type: ClusterIP
selector:
{{ include "aurva-controller.selectorLabels" . | indent 4 }}
{{- if .Values.aurva_controller.podLabels }}
{{ toYaml .Values.aurva_controller.podLabels | indent 4 }}
{{- end }}
ports:
- protocol: TCP
port: 9090
targetPort: 8085
name: http
{{- end }}
@@ -0,0 +1,20 @@
{{- if .Values.global.aurva_controller.enabled }}
{{- if or .Values.aurva_controller.enabled .Values.aurva_controller.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Release.Namespace}}-{{ template "aurva-controller.controllerServiceAccountName" . }}
namespace: {{ template "application.namespace" $ }}
{{- if .Values.aurva_controller.serviceAccount.annotations }}
annotations:
{{- range $key, $value := .Values.aurva_controller.serviceAccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
{{- include "application.labels" . | nindent 4 }}
{{- range $key, $value := .Values.aurva_controller.serviceAccount.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}