-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/bump-updatecli-discovery
- Loading branch information
Showing
14 changed files
with
206 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## 0.1.0 | ||
|
||
* Init policy |
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,14 @@ | ||
authors: | ||
- loispostula <lois@postu.la> | ||
|
||
url: "https://github.com/updatecli/policies/" | ||
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/prow/README.md" | ||
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/prow/" | ||
version: 0.1.0 | ||
vendor: Updatecli Project | ||
|
||
licenses: | ||
- "Apache-2.0 license" | ||
|
||
description: | | ||
Prow Autodiscovery |
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,3 @@ | ||
# README | ||
|
||
This Updatecli policy tries to detected available Prow update. |
10 changes: 10 additions & 0 deletions
10
updatecli/policies/autodiscovery/prow/testdata/values.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,10 @@ | ||
scm: | ||
enabled: true | ||
user: updatecli-bot | ||
email: updatecli-bot@updatecli.io | ||
owner: infra.git | ||
repository: infra | ||
#token: "xxx" | ||
username: "updatecli-bot" | ||
branch: master | ||
|
50 changes: 50 additions & 0 deletions
50
updatecli/policies/autodiscovery/prow/updatecli.d/default.tpl
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,50 @@ | ||
--- | ||
# Helpers | ||
# {{ $GitHubUser := env ""}} | ||
# {{ $GitHubRepositoryList := env "GITHUB_REPOSITORY" | split "/"}} | ||
# {{ $GitHubPAT := env "GITHUB_TOKEN"}} | ||
# {{ $GitHubUsername := env "GITHUB_ACTOR"}} | ||
|
||
name: '{{ .name }}' | ||
#{{ if .pipelineid }} | ||
pipelineid: '{{ .pipelineid }}' | ||
#{{ end }} | ||
|
||
autodiscovery: | ||
groupby: {{ .groupby }} | ||
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }} | ||
scmid: default | ||
actionid: default | ||
# {{ end }} | ||
|
||
crawlers: | ||
prow: | ||
{{ .spec | toYaml | indent 6 }} | ||
|
||
{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }} | ||
scms: | ||
default: | ||
kind: "github" | ||
spec: | ||
# Priority set to the environment variable | ||
user: '{{ default $GitHubUser .scm.user }}' | ||
email: '{{ .scm.email }}' | ||
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}' | ||
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}' | ||
token: '{{ default $GitHubPAT .scm.token }}' | ||
username: '{{ default $GitHubUsername .scm.username }}' | ||
branch: '{{ .scm.branch }}' | ||
#{{ if .scm.commitusingapi }} | ||
commitusingapi: {{ .scm.commitusingapi }} | ||
# {{ end }} | ||
|
||
actions: | ||
default: | ||
kind: "github/pullrequest" | ||
scmid: "default" | ||
spec: | ||
automerge: {{ .automerge }} | ||
labels: | ||
- dependencies | ||
{{ end }} | ||
|
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,18 @@ | ||
name: "deps(prow): bump all dependencies" | ||
#pipelineid: prow/autodiscovery | ||
automerge: false | ||
|
||
scm: | ||
enabled: false | ||
user: updatecli-bot | ||
#email: updatecli-bot@updatecli.io | ||
#owner: updatecli | ||
#repository: "repository" | ||
#token: "xxx" | ||
username: "updatecli-bot" | ||
branch: main | ||
# commitusingapi: false | ||
|
||
# spec: | ||
groupby: all | ||
|
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,5 @@ | ||
# Changelog | ||
|
||
## 0.1.0 | ||
|
||
* Init policy |
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,14 @@ | ||
authors: | ||
- loispostula <lois@postu.la> | ||
|
||
url: "https://github.com/updatecli/policies/" | ||
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/terragrunt/README.md" | ||
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/autodiscovery/terragrunt/" | ||
version: 0.1.0 | ||
vendor: Updatecli Project | ||
|
||
licenses: | ||
- "Apache-2.0 license" | ||
|
||
description: | | ||
Terragrunt Autodiscovery |
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,3 @@ | ||
# README | ||
|
||
This Updatecli policy tries to detected available terraform module update in terragrunt files`. |
10 changes: 10 additions & 0 deletions
10
updatecli/policies/autodiscovery/terragrunt/testdata/values.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,10 @@ | ||
scm: | ||
enabled: true | ||
user: updatecli-bot | ||
email: updatecli-bot@updatecli.io | ||
owner: updatecli | ||
repository: terragrunt-example | ||
#token: "xxx" | ||
username: "updatecli-bot" | ||
branch: main | ||
|
50 changes: 50 additions & 0 deletions
50
updatecli/policies/autodiscovery/terragrunt/updatecli.d/default.tpl
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,50 @@ | ||
--- | ||
# Helpers | ||
# {{ $GitHubUser := env ""}} | ||
# {{ $GitHubRepositoryList := env "GITHUB_REPOSITORY" | split "/"}} | ||
# {{ $GitHubPAT := env "GITHUB_TOKEN"}} | ||
# {{ $GitHubUsername := env "GITHUB_ACTOR"}} | ||
|
||
name: '{{ .name }}' | ||
#{{ if .pipelineid }} | ||
pipelineid: '{{ .pipelineid }}' | ||
#{{ end }} | ||
|
||
autodiscovery: | ||
groupby: {{ .groupby }} | ||
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }} | ||
scmid: default | ||
actionid: default | ||
# {{ end }} | ||
|
||
crawlers: | ||
terragrunt: | ||
{{ .spec | toYaml | indent 6 }} | ||
|
||
{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }} | ||
scms: | ||
default: | ||
kind: "github" | ||
spec: | ||
# Priority set to the environment variable | ||
user: '{{ default $GitHubUser .scm.user }}' | ||
email: '{{ .scm.email }}' | ||
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}' | ||
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}' | ||
token: '{{ default $GitHubPAT .scm.token }}' | ||
username: '{{ default $GitHubUsername .scm.username }}' | ||
branch: '{{ .scm.branch }}' | ||
#{{ if .scm.commitusingapi }} | ||
commitusingapi: {{ .scm.commitusingapi }} | ||
# {{ end }} | ||
|
||
actions: | ||
default: | ||
kind: "github/pullrequest" | ||
scmid: "default" | ||
spec: | ||
automerge: {{ .automerge }} | ||
labels: | ||
- dependencies | ||
{{ end }} | ||
|
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,18 @@ | ||
name: "deps(terragrunt): bump all policies" | ||
#pipelineid: terragrunt/autodiscovery | ||
automerge: false | ||
|
||
scm: | ||
enabled: false | ||
user: updatecli-bot | ||
#email: updatecli-bot@updatecli.io | ||
#owner: updatecli | ||
#repository: "repository" | ||
#token: "xxx" | ||
username: "updatecli-bot" | ||
branch: main | ||
# commitusingapi: false | ||
|
||
# spec: | ||
groupby: all | ||
|
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