Skip to content

Commit

Permalink
Merge pull request #1330 from GiganticMinecraft/review_pr
Browse files Browse the repository at this point in the history
[WIP] Review PR
  • Loading branch information
kory33 authored Sep 18, 2023
2 parents f8d2a5d + 4dda2ae commit 771cda8
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: seichi-debug-minecrafts-on-seichiassist-prs
namespace: argocd
spec:
generators:
- pullRequest:
github:
owner: GiganticMinecraft
repo: SeichiAssist
labels:
- ready-for-review
requeueAfterSeconds: 120
template:
metadata:
name: "seichi-debug-minecraft-on-seichiassist-pr-{{number}}"
annotations:
notifications.argoproj.io/subscribe.on-deployed.github: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
github.repoURL: https://github.com/GiganticMinecraft/SeichiAssist
github.pullRequestNumber: "{{number}}"
github.revision: "{{head_sha}}"
spec:
project: seichi-debug-minecrafts-on-seichiassist-prs
source:
repoURL: https://github.com/GiganticMinecraft/seichi_infra.git
targetRevision: main
path: seichi-onp-k8s/manifests/seichi-kubernetes/seichi-debug-minecraft-on-seichiassist-pr-template
helm:
releaseName: seichi-debug-minecraft-on-seichiassist-pr-{{number}}
values: |
SeichiAssistPullRequestNumber: "{{number}}"
PullRequestBranchHeadSHA: "{{head_sha}}"
destination:
server: https://kubernetes.default.svc
namespace: "seichi-debug-minecraft-on-seichiassist-pr-{{number}}"
syncPolicy:
automated:
prune: true
selfHeal: true
16 changes: 16 additions & 0 deletions seichi-onp-k8s/manifests/seichi-kubernetes/apps/root/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ spec:
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: seichi-game-debug-envs-on-seichiassist-prs
namespace: argocd
spec:
description: The project of debug minecraft systems (on pull requests demand) for the seichi-network
sourceRepos:
- "*"
destinations:
- namespace: "*"
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: "*"
kind: "*"
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: seichi-minecraft
namespace: argocd
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: "seichi-debug-minecraft-on-seichiassist-pr-template"
version: "0.1.0"
maintainers:
- name: GiganticMinecraft
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: seichi.click/v1alpha1
kind: SeichiAssistDebugEnvRequest
metadata:
labels:
app.kubernetes.io/part-of: seichi-gateway-operator
app.kubernetes.io/created-by: seichi-gateway-operator
name: seichireviewgateway-sample
spec:
pullRequestNo: {{ .SeichiAssistPullRequestNumber }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# この環境がデバッグすることを目的とする SeichiAssist pull request の PR 番号
SeichiAssistPullRequestNumber: null

# seichiAssistPullRequestNumber で指定される Pull Request の Head SHA
PullRequestBranchHeadSHA: null

0 comments on commit 771cda8

Please sign in to comment.