Skip to content

Commit c61436b

Browse files
committed
Introduce new helm charts for preview auto-scaling mode.
1 parent 294bd75 commit c61436b

29 files changed

Lines changed: 15183 additions & 0 deletions

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ manifests-gen-crds: controller-gen yq
116116

117117
chart-crds:
118118
cp config/crd/bases/*.yaml charts/actions-runner-controller/crds/
119+
cp config/crd/bases/actions.github.com_autoscalingrunnersets.yaml charts/actions-runner-controller-2/crds/
120+
cp config/crd/bases/actions.github.com_autoscalinglisteners.yaml charts/actions-runner-controller-2/crds/
121+
cp config/crd/bases/actions.github.com_ephemeralrunnersets.yaml charts/actions-runner-controller-2/crds/
122+
cp config/crd/bases/actions.github.com_ephemeralrunners.yaml charts/actions-runner-controller-2/crds/
119123
rm charts/actions-runner-controller/crds/actions.github.com_autoscalingrunnersets.yaml
120124
rm charts/actions-runner-controller/crds/actions.github.com_autoscalinglisteners.yaml
121125
rm charts/actions-runner-controller/crds/actions.github.com_ephemeralrunnersets.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: v2
2+
name: actions-runner-controller-2
3+
description: A Helm chart for install actions-runner-controller CRD
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.1.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "preview"
25+
26+
home: https://github.com/actions/actions-runner-controller
27+
28+
sources:
29+
- "https://github.com/actions/actions-runner-controller"
30+
31+
maintainers:
32+
- name: actions
33+
url: https://github.com/actions
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.7.0
6+
creationTimestamp: null
7+
name: autoscalinglisteners.actions.github.com
8+
spec:
9+
group: actions.github.com
10+
names:
11+
kind: AutoscalingListener
12+
listKind: AutoscalingListenerList
13+
plural: autoscalinglisteners
14+
singular: autoscalinglistener
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns:
18+
- jsonPath: .spec.githubConfigUrl
19+
name: GitHub Configure URL
20+
type: string
21+
- jsonPath: .spec.autoscalingRunnerSetNamespace
22+
name: AutoscalingRunnerSet Namespace
23+
type: string
24+
- jsonPath: .spec.autoscalingRunnerSetName
25+
name: AutoscalingRunnerSet Name
26+
type: string
27+
name: v1alpha1
28+
schema:
29+
openAPIV3Schema:
30+
description: AutoscalingListener is the Schema for the autoscalinglisteners API
31+
properties:
32+
apiVersion:
33+
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
34+
type: string
35+
kind:
36+
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: AutoscalingListenerSpec defines the desired state of AutoscalingListener
42+
properties:
43+
autoscalingRunnerSetName:
44+
description: Required
45+
type: string
46+
autoscalingRunnerSetNamespace:
47+
description: Required
48+
type: string
49+
ephemeralRunnerSetName:
50+
description: Required
51+
type: string
52+
githubConfigSecret:
53+
description: Required
54+
type: string
55+
githubConfigUrl:
56+
description: Required
57+
type: string
58+
image:
59+
description: Required
60+
type: string
61+
imagePullSecrets:
62+
description: Required
63+
items:
64+
description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
65+
properties:
66+
name:
67+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
68+
type: string
69+
type: object
70+
type: array
71+
maxRunners:
72+
description: Required
73+
minimum: 0
74+
type: integer
75+
minRunners:
76+
description: Required
77+
minimum: 0
78+
type: integer
79+
runnerScaleSetId:
80+
description: Required
81+
type: integer
82+
type: object
83+
status:
84+
description: AutoscalingListenerStatus defines the observed state of AutoscalingListener
85+
type: object
86+
type: object
87+
served: true
88+
storage: true
89+
subresources:
90+
status: {}
91+
preserveUnknownFields: false
92+
status:
93+
acceptedNames:
94+
kind: ""
95+
plural: ""
96+
conditions: []
97+
storedVersions: []

0 commit comments

Comments
 (0)