09d0d4e59d
* chart_version_detector: repo가 이미 등록돼 있으면 update를 건너뛰던 버그를 고친다 repo alias가 이미 helm repo list에 있으면 add/update를 통째로 건너뛰어, 로컬에 예전에 캐시된 index.yaml을 그대로 썼다 — latest_version이 조용히 낡은 값으로 나온다(실측: secrets-operator에서 실제 최신 0.11.8 대신 0.11.4가 나왔다). repo 등록 여부와 무관하게 update는 항상 호출하도록 고친다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * secrets-operator v0.10.33 → 0.11.8 호환성: breaking_change_check 결과 breaking=false(이 차트는 custom-values.yaml이 없어 오버라이드 충돌 자체가 불가능). CVE: infisical/kubernetes-operator 이미지를 trivy+CoverageProbe로 실측한 결과 실효 HIGH 차단이 34→10건으로 줄었다(CRITICAL은 둘 다 0, 둘 다 CoverageProbe: ok로 측정 신뢰 가능). 신규 CRD 3개 (InfisicalAuth·InfisicalConnection·InfisicalStaticSecret) 추가 — 상세는 CUSTOM-README.md. 기존 v0.10.33 디렉토리는 카탈로그 정책대로 동결 보관한다(삭제하지 않음). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * secrets-operator 자체 빌드 이미지 배포 테스트 오버라이드 추가 dev 클러스터에서 hardened-containers 자체 빌드 이미지(v0.11.8-security-hardened)로 실제 업그레이드·CRD 적용·Infisical 시크릿 동기화까지 검증할 때 쓴 오버라이드. 카탈로그 값(이 차트는 애초에 custom-values.yaml 없음)은 건드리지 않는다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
91 lines
3.4 KiB
YAML
91 lines
3.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "secrets-operator.fullname" . }}-controller-manager
|
|
labels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.controllerManager.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.selectorLabels" . | nindent 8 }}
|
|
annotations:
|
|
kubectl.kubernetes.io/default-container: manager
|
|
spec:
|
|
{{- with .Values.controllerManager.extraInitContainers }}
|
|
initContainers:
|
|
{{- tpl (toYaml . | nindent 8) $ }}
|
|
{{- end }}
|
|
containers:
|
|
- args:
|
|
{{- toYaml .Values.controllerManager.manager.args | nindent 8 }}
|
|
{{- $namespaces := (include "secrets-operator.scopedNamespaces" . | fromJson).list }}
|
|
{{- if and $namespaces .Values.scopedRBAC }}
|
|
- --namespaces={{ join "," $namespaces }}
|
|
{{- if eq (include "secrets-operator.usingDeprecatedScopedNamespace" .) "true" }}
|
|
- --deprecated-scoped-namespace-warning
|
|
{{- end }}
|
|
{{- end }}
|
|
command:
|
|
- /manager
|
|
env:
|
|
- name: KUBERNETES_CLUSTER_DOMAIN
|
|
value: {{ quote .Values.kubernetesClusterDomain }}
|
|
- name: INFISICAL_HOST_API
|
|
value: {{ quote .Values.hostAPI }}
|
|
- name: INFISICAL_LOG_WRITER
|
|
value: {{ quote .Values.logger.writer }}
|
|
{{- with .Values.controllerManager.manager.extraEnv }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
|
|
| default .Chart.AppVersion }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8081
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
name: manager
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8081
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
|
|
}}
|
|
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext
|
|
| nindent 10 }}
|
|
{{- with .Values.controllerManager.manager.extraVolumeMounts }}
|
|
volumeMounts:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent
|
|
8 }}
|
|
serviceAccountName: {{ include "secrets-operator.serviceAccountName" . }}
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.controllerManager.extraVolumes }}
|
|
volumes:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
terminationGracePeriodSeconds: 10
|
|
nodeSelector: {{ toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
|
|
tolerations: {{ toYaml .Values.controllerManager.tolerations | nindent 8 }}
|
|
{{- with .Values.controllerManager.affinity }}
|
|
affinity: {{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.controllerManager.topologySpreadConstraints }}
|
|
topologySpreadConstraints: {{- toYaml . | nindent 8 }}
|
|
{{- end }}
|