Skip to content

Commit 987a8a2

Browse files
authored
Upgrade to gitopssets-controller v0.3.1 and turn on by default (#2393)
* Upgrade to gitopssets-controller v0.3.0 * 0.3.1 * Enable by default
1 parent 08cda35 commit 987a8a2

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

charts/gitopssets-controller/crds/gitopsset-crd.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: GitOpsSet
1212
listKind: GitOpsSetList
1313
plural: gitopssets
14+
shortNames:
15+
- gs
1416
singular: gitopsset
1517
scope: Namespaced
1618
versions:
@@ -143,6 +145,11 @@ spec:
143145
- gitlab
144146
- bitbucketserver
145147
type: string
148+
forks:
149+
description: Fork is used to filter out forks
150+
from the target PRs if false, or to include
151+
forks if true
152+
type: boolean
146153
interval:
147154
description: The interval at which to check for
148155
repository updates.
@@ -194,6 +201,10 @@ spec:
194201
- gitlab
195202
- bitbucketserver
196203
type: string
204+
forks:
205+
description: Fork is used to filter out forks from the target
206+
PRs if false, or to include forks if true
207+
type: boolean
197208
interval:
198209
description: The interval at which to check for repository
199210
updates.
@@ -230,6 +241,10 @@ spec:
230241
type: object
231242
type: object
232243
type: array
244+
serviceAccountName:
245+
description: The name of the Kubernetes service account to impersonate
246+
when reconciling this Kustomization.
247+
type: string
233248
suspend:
234249
description: Suspend tells the controller to suspend the reconciliation
235250
of this GitOpsSet.

charts/gitopssets-controller/templates/manager-rbac.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ rules:
1313
- get
1414
- list
1515
- watch
16+
- apiGroups:
17+
- ""
18+
resources:
19+
- serviceaccounts
20+
verbs:
21+
- impersonate
1622
- apiGroups:
1723
- source.toolkit.fluxcd.io
1824
resources:

charts/mccp/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ templates-controller:
177177
tag: v0.1.2
178178

179179
gitopssets-controller:
180-
enabled: false
180+
enabled: true
181181
# gitops-controller-manager etc
182182
fullnameOverride: gitopssets
183183
controllerManager:
184184
manager:
185185
image:
186-
tag: v0.2.0
186+
tag: v0.3.1

tools/dev-resources/gitopssets/gitopsset-configmaps.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ spec:
1818
kind: ConfigMap
1919
apiVersion: v1
2020
metadata:
21-
name: "{{ .element.env }}-info-configmap"
21+
name: "{{ .Element.env }}-info-configmap"
2222
namespace: default
2323
spec:
2424
data:
25-
team: "{{ .element.team }}"
26-
env: "{{ .element.env }}"
27-
description: "This is a configmap for the {{ .element.env }} environment"
25+
team: "{{ .Element.team }}"
26+
env: "{{ .Element.env }}"
27+
description: "This is a configmap for the {{ .Element.env }} environment"

0 commit comments

Comments
 (0)