Skip to content

Commit 248c34c

Browse files
chore: minor fixes (#109)
* chore: change renovate groups Signed-off-by: Oliver Bähler <[email protected]> * chore: update ignore Signed-off-by: Oliver Bähler <[email protected]> * fix(helm): remove duplicated label Signed-off-by: Oliver Bähler <[email protected]> --------- Signed-off-by: Oliver Bähler <[email protected]>
1 parent a7233b8 commit 248c34c

File tree

6 files changed

+43
-19
lines changed

6 files changed

+43
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ dist
3131

3232
.hugo_build.lock
3333
public/
34+
*.tgz

charts/capsule-argo-addon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following Values are available for this chart.
3131
| Key | Type | Default | Description |
3232
|-----|------|---------|-------------|
3333
| global.jobs.kubectl.affinity | object | `{}` | Set affinity rules |
34-
| global.jobs.kubectl.annotations | object | `{"helm.sh/hook-delete-policy":"before-hook-creation,hook-succeeded"}` | Annotations to add to the certgen job. |
34+
| global.jobs.kubectl.annotations | object | `{}` | Annotations to add to the certgen job. |
3535
| global.jobs.kubectl.image.pullPolicy | string | `"IfNotPresent"` | Set the image pull policy of the helm chart job |
3636
| global.jobs.kubectl.image.registry | string | `"docker.io"` | Set the image repository of the helm chart job |
3737
| global.jobs.kubectl.image.repository | string | `"clastix/kubectl"` | Set the image repository of the helm chart job |

charts/capsule-argo-addon/crds/addons.projectcapsule.dev_argoaddons.yaml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
description: ArgoAddonSpec defines the desired state of ArgoAddon
4141
properties:
4242
argo:
43-
description: ArgoCD configuration
43+
description: Argo configuration
4444
properties:
4545
destination:
4646
default: https://kubernetes.default.svc
@@ -72,15 +72,20 @@ spec:
7272
required:
7373
- serviceAccountNamespace
7474
type: object
75+
decouple:
76+
default: true
77+
description: |-
78+
When decouple is enabled, appprojects are preserved even in the case when the origin tenant is deleted.
79+
This can also be set on a per-tenant basis via annotations.
80+
type: boolean
7581
force:
7682
default: false
7783
description: |-
78-
When force is enabled, approjects which already exist with the same name as a tenant will be adopted
79-
and overwritten. When disabled the approjects will not be changed or adopted.
80-
This is true for any other resource as well
84+
When force is enabled, appprojects which already exist with the same name as a tenant will be adopted
85+
and overwritten. When disabled the appprojects will not be changed or adopted.
86+
This is true for any other resource as well. This can also be set on a per-tenant basis via annotations.
8187
type: boolean
8288
proxy:
83-
default: {}
8489
description: Capsule-Proxy configuration for the controller
8590
properties:
8691
enabled:
@@ -108,9 +113,19 @@ spec:
108113
description: Port of the capsule-proxy service
109114
type: boolean
110115
type: object
116+
readonly:
117+
default: false
118+
description: |-
119+
All appprojects, which are collected by this controller, are set into ready-only mode
120+
That means only properties from matching translators are respected. Any changes from users are
121+
overwritten. This can also be set on a per-tenant basis via annotations.
122+
type: boolean
111123
required:
112124
- argo
125+
- decouple
113126
- force
127+
- proxy
128+
- readonly
114129
type: object
115130
status:
116131
description: ArgoAddonStatus defines the observed state of ArgoAddon
@@ -119,7 +134,7 @@ spec:
119134
description: Last applied valid configuration
120135
properties:
121136
argo:
122-
description: ArgoCD configuration
137+
description: Argo configuration
123138
properties:
124139
destination:
125140
default: https://kubernetes.default.svc
@@ -151,15 +166,20 @@ spec:
151166
required:
152167
- serviceAccountNamespace
153168
type: object
169+
decouple:
170+
default: true
171+
description: |-
172+
When decouple is enabled, appprojects are preserved even in the case when the origin tenant is deleted.
173+
This can also be set on a per-tenant basis via annotations.
174+
type: boolean
154175
force:
155176
default: false
156177
description: |-
157-
When force is enabled, approjects which already exist with the same name as a tenant will be adopted
158-
and overwritten. When disabled the approjects will not be changed or adopted.
159-
This is true for any other resource as well
178+
When force is enabled, appprojects which already exist with the same name as a tenant will be adopted
179+
and overwritten. When disabled the appprojects will not be changed or adopted.
180+
This is true for any other resource as well. This can also be set on a per-tenant basis via annotations.
160181
type: boolean
161182
proxy:
162-
default: {}
163183
description: Capsule-Proxy configuration for the controller
164184
properties:
165185
enabled:
@@ -188,9 +208,19 @@ spec:
188208
description: Port of the capsule-proxy service
189209
type: boolean
190210
type: object
211+
readonly:
212+
default: false
213+
description: |-
214+
All appprojects, which are collected by this controller, are set into ready-only mode
215+
That means only properties from matching translators are respected. Any changes from users are
216+
overwritten. This can also be set on a per-tenant basis via annotations.
217+
type: boolean
191218
required:
192219
- argo
220+
- decouple
193221
- force
222+
- proxy
223+
- readonly
194224
type: object
195225
type: object
196226
type: object

charts/capsule-argo-addon/templates/_helpers.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ helm.sh/chart: {{ include "helm.chart" . }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
4242
app.kubernetes.io/managed-by: {{ .Release.Service }}
43-
app.kubernetes.io/name: {{ include "helm.chart" . }}
4443
{{- end }}
4544

4645
{{/*

charts/capsule-argo-addon/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ global:
1818
# -- Set the image tag of the helm chart job
1919
tag: ""
2020
# -- Annotations to add to the certgen job.
21-
annotations:
22-
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
21+
annotations: {}
2322
# -- Set the restartPolicy
2423
restartPolicy: Never
2524
# -- Sets the ttl in seconds after a finished certgen job is deleted. Set to -1 to never delete.

renovate.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"matchManagers": ["github-actions", "flux"],
1717
"groupName": "all-ci-dependencies",
1818
"updateTypes": ["major", "minor", "patch"]
19-
},
20-
{
21-
"matchManagers": ["gomod"],
22-
"groupName": "go-minor-dependencies",
23-
"updateTypes": ["minor", "patch"]
2419
}
2520
]
2621
}

0 commit comments

Comments
 (0)