Merge "Parameterize kustomize controller template variables."

This commit is contained in:
Zuul 2025-04-04 14:25:17 +00:00 committed by Gerrit Code Review
commit 5a54ef37c1
7 changed files with 35 additions and 32 deletions

View File

@ -103,21 +103,22 @@ imageReflectionController:
create: false
kustomizeController:
create: false
image: ghcr.io/fluxcd/kustomize-controller
tag: v1.3.0
create: {{ enable_kustomize_controller }}
image: "{{ local_registry }}/{{ flux_kustomize_controller_image }}"
tag: {{ flux_kustomize_controller_tag }}
resources:
limits: {}
# cpu: 1000m
# memory: 1Gi
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 64Mi
cpu: 0
memory: {{ flux_kustomize_controller_memory_request }}
priorityClassName: ""
annotations:
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels: {}
labels:
app.starlingx.io/component: platform
container:
additionalArgs: []
extraEnv: []
@ -126,29 +127,20 @@ kustomizeController:
automount: true
annotations: {}
imagePullPolicy: ""
secret:
# -- Create a secret to use it with extraSecretMounts. Defaults to false.
create: false
name: ""
data: {}
# -- Defines envFrom using a configmap and/or secret.
envFrom:
map:
name: ""
secret:
name: ""
# -- Defines additional mounts with secrets.
# Secrets must be manually created in the namespace or with kustomizeController.secret
extraSecretMounts: []
# - name: secret-files
# mountPath: /etc/secrets
# subPath: ""
# secretName: secret-files
# readOnly: true
nodeSelector: {}
affinity: {}
tolerations: []
terminationGracePeriodSeconds: 10
readinessProbe:
timeoutSeconds: {{ flux_kustomize_controller_readiness_timeout }}
livenessProbe:
timeoutSeconds: {{ flux_kustomize_controller_liveness_timeout }}
nodeSelector:
node-role.kubernetes.io/control-plane: ""
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
notificationController:
create: {{ enable_notification_controller }}

View File

@ -18,6 +18,11 @@ flux_notification_controller_tag: v1.3.0
flux_notification_controller_liveness_timeout: 5
flux_notification_controller_readiness_timeout: 10
flux_notification_controller_memory_request: 0
flux_kustomize_controller_image: ghcr.io/fluxcd/kustomize-controller
flux_kustomize_controller_tag: v1.3.0
flux_kustomize_controller_liveness_timeout: 5
flux_kustomize_controller_readiness_timeout: 10
flux_kustomize_controller_memory_request: 0
local_registry: registry.local:9001
async_timeout: 240
async_retries: 80
@ -26,3 +31,4 @@ check_kubernetes_health_retries: 5
delay_time: 6
fluxcd_retries: 5
enable_notification_controller: false
enable_kustomize_controller: false

View File

@ -116,6 +116,7 @@
- "{{ flux_helm_controller_img }}"
- "{{ flux_source_controller_img }}"
- "{{ flux_notification_controller_img }}"
- "{{ flux_kustomize_controller_img }}"
storage_images:
- "{{ snapshot_controller_img }}"
security_images:

View File

@ -40,3 +40,4 @@ flux_source_controller_img: docker.io/fluxcd/source-controller:v1.3.0
flux_helm_controller_img_2212: docker.io/fluxcd/helm-controller:v0.27.0
flux_source_controller_img_2212: docker.io/fluxcd/source-controller:v0.32.1
flux_notification_controller_img: ghcr.io/fluxcd/notification-controller:v1.3.0
flux_kustomize_controller_img: ghcr.io/fluxcd/kustomize-controller:v1.3.0

View File

@ -29,3 +29,4 @@ pause_img: k8s.gcr.io/pause:3.4.1
flux_helm_controller_img: docker.io/fluxcd/helm-controller:v1.0.1
flux_source_controller_img: docker.io/fluxcd/source-controller:v1.3.0
flux_notification_controller_img: ghcr.io/fluxcd/notification-controller:v1.3.0
flux_kustomize_controller_img: ghcr.io/fluxcd/kustomize-controller:v1.3.0

View File

@ -29,3 +29,4 @@ pause_img: k8s.gcr.io/pause:3.4.1
flux_helm_controller_img: docker.io/fluxcd/helm-controller:v1.0.1
flux_source_controller_img: docker.io/fluxcd/source-controller:v1.3.0
flux_notification_controller_img: ghcr.io/fluxcd/notification-controller:v1.3.0
flux_kustomize_controller_img: ghcr.io/fluxcd/kustomize-controller:v1.3.0

View File

@ -29,3 +29,4 @@ pause_img: k8s.gcr.io/pause:3.4.1
flux_helm_controller_img: docker.io/fluxcd/helm-controller:v1.0.1
flux_source_controller_img: docker.io/fluxcd/source-controller:v1.3.0
flux_notification_controller_img: ghcr.io/fluxcd/notification-controller:v1.3.0
flux_kustomize_controller_img: ghcr.io/fluxcd/kustomize-controller:v1.3.0