Skip to content

Commit

Permalink
feat(actions-runner-controller): add organization runner
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Sep 19, 2023
1 parent 789a5fa commit 524595d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: github
resources:
- organization/secrets.sops.yaml
- organization/helm-release.yaml
- tyriis/secrets.sops.yaml
- tyriis/home-ops/helm-release.yaml
- tyriis/terraform-github/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ${SECRET_GH_ORGANIZATION}
spec:
interval: 30m
chart:
spec:
chart: gha-runner-scale-set
version: 0.6.0
sourceRef:
kind: HelmRepository
name: actions-runner-controller-charts
namespace: flux-system
interval: 30m
values:
runnerScaleSetName: arc-runner-set-${SECRET_GH_ORGANIZATION}
githubConfigUrl: https://github.com/${SECRET_GH_ORGANIZATION}
minRunners: 1
maxRunners: 3
containerMode:
type: "dind"
valuesFrom:
- kind: Secret
name: ${SECRET_GH_ORGANIZATION}-runners
valuesKey: github_app_id
targetPath: githubConfigSecret.github_app_id
- kind: Secret
name: ${SECRET_GH_ORGANIZATION}-runners
valuesKey: github_app_installation_id
targetPath: githubConfigSecret.github_app_installation_id
- kind: Secret
name: ${SECRET_GH_ORGANIZATION}-runners
valuesKey: github_app_private_key
targetPath: githubConfigSecret.github_app_private_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yamllint disable
apiVersion: v1
metadata:
name: ${SECRET_GH_ORGANIZATION}-runners
kind: Secret
data:
github_app_id: ENC[AES256_GCM,data:Y+GxZAkZ+tM=,iv:7zOoiotC09kJzsyAhNPXRSGE6CcQRnpJ/3JWyH3kulA=,tag:k695S4wARRl9urgq7W79zw==,type:str]
github_app_installation_id: ENC[AES256_GCM,data:dNSfvPcvYU2PgsMd,iv:XRQI0SyR9a0/K5Fzkft/pmHh0ky/iFevFo2gvhJo6MQ=,tag:Bcqkxg+Rt67dkxzCRQhc6w==,type:str]
github_app_private_key: ENC[AES256_GCM,data:yge1NG1ww0LM5ENNECF8j91j3ELe2lOUQp4W0RgZZIzoU71Jg0MiLrADFaJEgbKaDVKzYguJDQDsVPewxxAd/bEnNy/gn8rXKyytaOSTcwLLgtXJ8Wz0mSrzcnUzL4GNV6187wrjX3d3OmxFrraU6uGowuH84z86awQC92TITjZ3G+XMWU7MjmBE1MaPB3AhDrctD3fhjxp/1yj2ERQ7suBRNtTn7NLpssCueUObOXrfN9UEJasxtLfmdWPdeyrPDMcpfo28EDkwW7OwQwissgOkIAO6rEG+7Hyjp1TQ5IuSWguWK/Gd8AwWHRSK+VlANxD7ALH7PPVX+usOM2nXRaKcHsJJeinUQ1H6GFm92EjoQun+pUtRDf8wSBQSc+u1WscaDPXis92hOY472JpKTnqeknVt3u3kPczAEfl5XkW/Wp/8D2NjocIOChTWRUM+d6k1LOIFRunn56akOLcwDYCjFhVexsiC324IjleLuHmPoRvJ+rld6nW/1MRL5PQYEkFI1+8D2PkgerwAbavyoV6t+TssO2yvOpLxuqk0MuT+ZcC3sBmQrxM0cskQeeB6VgFJpjRwqzniZuegE7zRcRJm9+46HEZcJeqffE5b/uV4WfDAVinxG4Nex3nhPUKrh1lyVdVygqEc/GN1bavAiazbhJ5FOowe1KTLZFPXJvee/i/RCXCSfNozSel8/S4elgagkKsg0OzadwZBqRARqam4pu4ddPNLO571QO+dnb4YUBR6bL6DkBzIqdkfLG3GJKwqeAN9mteQnJdQ7b1y59YGkTZzVODhZWtCqVwr4dUlDL+sI+vuvbv0Yxj21CBxwfFMJw9Ybm2YcoOGpulvgLBJ0EYbNs5bvnQgizF/2sgaabUdHtTKhcFo+CU2jxSjOiVGqsE0YeA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ms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age16zqeqx5y6ay3flwz0d06rn83yjv9ckys3j8tpkysf9v6295fhc6sf4r0uj
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAzYjdZeVptaDlPZW9idmtP
UkRGdmxyb0REM2s4dnZVSERQNFFSRHlqVkcwClJlZHVhQUVnUm16QVloazMyUUFx
Q24vakF5RUEvMTExZ0lPa1RXblFEV3cKLS0tIFNMcGx3NzRQT0U4MTZER0FQUzh3
SThDODl4ZFFMMUlxM3BneWlrNDdjdUUKm16agevW+HLV4al0q2m5W/SyS84E5SXh
QfWlkG1byRaLRQ+tMeTuCN0tk2A2asmSPygQ1IKo4AO9kMirDEjQ6w==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-09-19T22:33:30Z"
mac: ENC[AES256_GCM,data:EjioxgFxu84VCJg5b1IE2rzbsgpnC/eQtCJ8ngWW0DFVByvd9YK+qGkCcY5YctlQRQifz+tb1cFmfwYj0EO+acG93QyRtN7OubQjDxAWowDhsCrjP3QqeRY6TuCjIEAHG41gaDlUmPHcEJd2KOXDtGZYHvc+sFWBCYZx6BDR3rY=,iv:zKyIQjrkn6am7dx5iiynhpZXdcyCGiN1njrHlECZV9s=,tag:EWUyQTW5Fumni2+MGokhCA==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.8.0

0 comments on commit 524595d

Please sign in to comment.