File tree 3 files changed +20
-1
lines changed
charts/team-ns/templates/argocd
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 18
18
template :
19
19
metadata :
20
20
name : ' team-{{ $v.teamId }}-{{ .name }}'
21
- {{- if or (eq $a.type "digest") (eq $a.type "semver") }}
22
21
annotations :
22
+ argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
23
+ {{- if or (eq $a.type "digest") (eq $a.type "semver") }}
23
24
argocd-image-updater.argoproj.io/team-{{ $v.teamId }}-{{ .name }}.force-update : ' true'
24
25
argocd-image-updater.argoproj.io/team-{{ $v.teamId }}-{{ .name }}.pull-secret : ' pullsecret:argocd/copy-team-{{ $v.teamId }}-harbor-pullsecret'
25
26
argocd-image-updater.argoproj.io/git-branch : main
52
53
# The argocd template the values parameter is taken from the git generator path
53
54
values : ' {{ "{{values}}" }}'
54
55
releaseName : ' {{ .name }}'
56
+ {{- if and (.sidecarInject) (.createNamespace) }}
57
+ parameters :
58
+ - name : sidecar.istio.io/inject
59
+ value : ' true'
60
+ {{- end }}
55
61
syncPolicy :
56
62
automated :
57
63
allowEmpty : false
65
71
{{- if eq $v.teamId "admin" }}
66
72
syncOptions :
67
73
- RespectIgnoreDifferences=true
74
+ - ServerSideApply=true
75
+ {{- if .createNamespace }}
76
+ - CreateNamespace=true
77
+ {{- end }}
68
78
ignoreDifferences :
69
79
- group : admissionregistration.k8s.io
70
80
kind : ValidatingWebhookConfiguration
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ teamConfig:
5
5
url : https://myrepo.local/mychart.git
6
6
path : /
7
7
revision : HEAD
8
+ namespace : kserve
9
+ createNamespace : true
10
+ sidecarInject : true
8
11
- name : wa2
9
12
url : https://myregistry.local/mychart
10
13
chart : mychart
Original file line number Diff line number Diff line change @@ -1421,6 +1421,12 @@ definitions:
1421
1421
namespace :
1422
1422
description : Workload namespace. Applicable only for team-admin. Default value is 'team-<team_id>'
1423
1423
$ref : ' #/definitions/idName'
1424
+ createNamespace :
1425
+ type : boolean
1426
+ default : false
1427
+ sidecarInject :
1428
+ type : boolean
1429
+ default : false
1424
1430
imageUpdateStrategy :
1425
1431
description : Automatically update the image. Only supported wit Helm charts in local Gitea repository and images stored in Harbor.
1426
1432
title : Auto Image Updater
You can’t perform that action at this time.
0 commit comments