Skip to content

Commit 9828dcd

Browse files
committed
fixed a field as being recognised as required
1 parent a270be3 commit 9828dcd

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

api/v1beta1/gitlab_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type KubernetesConfig struct {
7070
ResourceAvailabilityCheckMaxAttempts int `toml:"resource_availability_check_max_attempts,omitzero" json:"resource_availability_check_max_attempts,omitempty" long:"resource-availability-check-max-attempts" env:"KUBERNETES_RESOURCE_AVAILABILITY_CHECK_MAX_ATTEMPTS" default:"5" description:"The maximum number of attempts to check if a resource (service account and/or pull secret) set is available before giving up. There is 5 seconds interval between each attempt"`
7171
PodLabels map[string]string `toml:"pod_labels,omitempty" json:"pod_labels,omitempty" long:"pod-labels" description:"A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given pod labels. Environment variables will be substituted for values here."`
7272
PodLabelsOverwriteAllowed string `toml:"pod_labels_overwrite_allowed" json:"pod_labels_overwrite_allowed,omitempty" long:"pod_labels_overwrite_allowed" env:"KUBERNETES_POD_LABELS_OVERWRITE_ALLOWED" description:"Regex to validate 'KUBERNETES_POD_LABELS_*' values"`
73-
SchedulerName string `toml:"scheduler_name,omitempty" json:"scheduler_name" long:"scheduler-name,omitempty" env:"KUBERNETES_SCHEDULER_NAME" description:"Pods will be scheduled using this scheduler, if it exists"`
73+
SchedulerName string `toml:"scheduler_name,omitempty" json:"scheduler_name,omitempty" long:"scheduler-name,omitempty" env:"KUBERNETES_SCHEDULER_NAME" description:"Pods will be scheduled using this scheduler, if it exists"`
7474
ServiceAccount string `toml:"service_account,omitempty" json:"service_account,omitempty" long:"service-account" env:"KUBERNETES_SERVICE_ACCOUNT" description:"Executor pods will use this Service Account to talk to kubernetes API"`
7575
ServiceAccountOverwriteAllowed string `toml:"service_account_overwrite_allowed,omitempty" json:"service_account_overwrite_allowed,omitempty" long:"service_account_overwrite_allowed" env:"KUBERNETES_SERVICE_ACCOUNT_OVERWRITE_ALLOWED" description:"Regex to validate 'KUBERNETES_SERVICE_ACCOUNT' value"`
7676
PodAnnotations map[string]string `toml:"pod_annotations,omitempty" json:"pod_annotations,omitempty" long:"pod-annotations" description:"A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given annotations. Can be overwritten in build with KUBERNETES_POD_ANNOTATION_* variables"`

config/crd/bases/gitlab.k8s.alekc.dev_multirunners.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,6 @@ spec:
985985
type: object
986986
type: array
987987
type: object
988-
required:
989-
- scheduler_name
990988
type: object
991989
name:
992990
type: string

config/crd/bases/gitlab.k8s.alekc.dev_runners.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,6 @@ spec:
984984
type: object
985985
type: array
986986
type: object
987-
required:
988-
- scheduler_name
989987
type: object
990988
gitlab_instance_url:
991989
type: string

config/samples/dind.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: gitlab.k8s.alekc.dev/v1beta1
2+
kind: Runner
3+
metadata:
4+
labels:
5+
argocd.argoproj.io/instance: gitlab-runner
6+
name: dind
7+
spec:
8+
check_interval: 5
9+
concurrent: 10
10+
executor_config:
11+
cpu_request: '0.5'
12+
memory_request: 150Mi
13+
node_selector:
14+
kubernetes.io/arch: amd64
15+
privileged: true
16+
volumes:
17+
empty_dir:
18+
- medium: Memory
19+
mount_path: /certs/client
20+
name: docker-certs
21+
gitlab_instance_url: 'https://gitlab.com/'
22+
log_level: debug
23+
registration_config:
24+
tag_list:
25+
- dev
26+
- k8s
27+
- amd64
28+
- dind
29+
token: xxxxx

0 commit comments

Comments
 (0)