-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stephan Feurer
committed
Feb 5, 2024
1 parent
ce07c2d
commit 6a599bb
Showing
8 changed files
with
375 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
parameters: | ||
renovate_runner: | ||
=_metadata: {} | ||
namespace: syn-renovate-runner | ||
|
||
namespace: | ||
annotations: {} | ||
labels: {} | ||
name: syn-renovate-runner | ||
|
||
charts: | ||
renovate: | ||
source: https://docs.renovatebot.com/helm-charts | ||
version: 37.172.4 | ||
|
||
images: | ||
commodore: | ||
registry: ghcr.io | ||
repository: projectsyn/commodore-renovate | ||
tag: v0.15.0 | ||
renovate: | ||
registry: ghcr.io | ||
repository: renovatebot/renovate | ||
tag: 37.172.4 | ||
|
||
renovate: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,27 @@ The namespace in which to deploy this component. | |
|
||
[source,yaml] | ||
---- | ||
namespace: example-namespace | ||
parameters: | ||
renovate_runner: | ||
renovate: | ||
gitlab: | ||
type: renovate <1> | ||
schedule: '0 * * * *' <2> | ||
secrets: <3> | ||
GITLAB_COM_TOKEN: my-token | ||
config: | <4> | ||
{ | ||
"platform": "gitlab", | ||
"endpoint": "https://gitlab.com/api/v4", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"autodiscover": true, | ||
"autodiscoverFilter": ["!/my-group/"], | ||
"onboarding": true, | ||
"dryRun": true, | ||
"printConfig": true, | ||
} | ||
---- | ||
<1> Type of renovate run, either 'renovate' or 'commodore'. | ||
<2> Plan when to run renovate. | ||
<3> Any secrets needed for renovate config. | ||
<4> Config to run with renovate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
# Overwrite parameters here | ||
|
||
# parameters: {...} | ||
parameters: | ||
renovate_runner: | ||
renovate: | ||
gitlab: | ||
type: renovate | ||
schedule: '0 * * * *' | ||
secrets: | ||
GITLAB_COM_TOKEN: my-token | ||
config: | | ||
{ | ||
"platform": "gitlab", | ||
"endpoint": "https://gitlab.com/api/v4", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"autodiscover": true, | ||
"autodiscoverFilter": ["!/my-group/"], | ||
"onboarding": true, | ||
"printConfig": true, | ||
} | ||
gitlab-commodore: | ||
type: commodore | ||
schedule: '0 * * * *' | ||
secrets: | ||
GITLAB_COM_TOKEN: my-token | ||
config: | | ||
{ | ||
"platform": "gitlab", | ||
"endpoint": "https://gitlab.com/api/v4", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"autodiscover": true, | ||
"autodiscoverFilter": ["!/my-group/syn/"], | ||
"onboarding": true, | ||
"printConfig": true, | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/golden/defaults/renovate-runner/renovate-runner/00_namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: syn-renovate-runner | ||
name: syn-renovate-runner |
93 changes: 93 additions & 0 deletions
93
tests/golden/defaults/renovate-runner/renovate-runner/10_gitlab-commodore.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
apiVersion: v1 | ||
data: | ||
config.json: | | ||
{ | ||
"platform": "gitlab", | ||
"endpoint": "https://gitlab.com/api/v4", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"autodiscover": true, | ||
"autodiscoverFilter": ["!/my-group/syn/"], | ||
"onboarding": true, | ||
"printConfig": true, | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/instance: renovate-runner | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: gitlab-commodore | ||
name: gitlab-commodore | ||
name: gitlab-commodore | ||
namespace: syn-renovate-runner | ||
--- | ||
apiVersion: v1 | ||
data: {} | ||
kind: Secret | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/instance: renovate-runner | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: gitlab-commodore | ||
name: gitlab-commodore | ||
name: gitlab-commodore | ||
namespace: syn-renovate-runner | ||
stringData: | ||
GITLAB_COM_TOKEN: my-token | ||
type: Opaque | ||
--- | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/instance: renovate-runner | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: gitlab-commodore | ||
name: gitlab-commodore | ||
name: gitlab-commodore | ||
namespace: syn-renovate-runner | ||
spec: | ||
concurrencyPolicy: Forbid | ||
failedJobsHistoryLimit: 3 | ||
jobTemplate: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: renovate-runner | ||
app.kubernetes.io/name: gitlab-commodore | ||
spec: | ||
completions: 1 | ||
parallelism: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: renovate-runner | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: gitlab-commodore | ||
name: gitlab-commodore | ||
spec: | ||
containers: | ||
- env: | ||
- name: RENOVATE_CONFIG_FILE | ||
value: /usr/src/app/config.json | ||
envFrom: | ||
- secretRef: | ||
name: gitlab-commodore | ||
image: ghcr.io/projectsyn/commodore-renovate:v0.15.0 | ||
imagePullPolicy: IfNotPresent | ||
name: default | ||
volumeMounts: | ||
- mountPath: /usr/src/app/config.json | ||
name: config | ||
subPath: config.json | ||
imagePullSecrets: [] | ||
initContainers: [] | ||
restartPolicy: OnFailure | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- configMap: | ||
name: gitlab-commodore | ||
name: config | ||
schedule: 0 * * * * | ||
successfulJobsHistoryLimit: 1 |
Oops, something went wrong.