Skip to content

Commit b94ee4d

Browse files
anishasthanaopenshift-merge-robot
authored andcommitted
Yaml fixes for yaml linting
Signed-off-by: Anish Asthana <anishasthana1@gmail.com>
1 parent 41df70b commit b94ee4d

17 files changed

+74
-70
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "gomod" # See documentation for possible values
4-
directory: "/" # Location of package manifests
3+
- package-ecosystem: "gomod" # See documentation for possible values
4+
directory: "/" # Location of package manifests
55
schedule:
66
interval: "weekly"

.yamllint.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ rules:
44
document-start: disable
55
indentation:
66
indent-sequences: whatever
7+
comments:
8+
ignore: |
9+
config/samples/kustomization.yaml
10+
config/crd/kustomization.yaml
11+
config/scorecard/kustomization.yaml
12+
config/manifests/kustomization.yaml
713
comments-indentation: disable
814
hyphens:
915
max-spaces-after: 4
1016
truthy:
1117
check-keys: false
12-

config/default/kustomization.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: codeflare-operator-system
99
namePrefix: codeflare-operator-
1010

1111
# Labels to add to all resources and selectors.
12-
#commonLabels:
12+
# commonLabels:
1313
# someName: someValue
1414

1515
bases:
@@ -18,11 +18,11 @@ bases:
1818
- ../manager
1919
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2020
# crd/kustomization.yaml
21-
#- ../webhook
21+
# - ../webhook
2222
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
23-
#- ../certmanager
23+
# - ../certmanager
2424
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
25-
#- ../prometheus
25+
# - ../prometheus
2626

2727
patchesStrategicMerge:
2828
# Protect the /metrics endpoint by putting it behind auth.
@@ -32,42 +32,42 @@ patchesStrategicMerge:
3232

3333
# Mount the controller config file for loading manager configurations
3434
# through a ComponentConfig type
35-
#- manager_config_patch.yaml
35+
# - manager_config_patch.yaml
3636

3737
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
3838
# crd/kustomization.yaml
39-
#- manager_webhook_patch.yaml
39+
# - manager_webhook_patch.yaml
4040

4141
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
4242
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.
4343
# 'CERTMANAGER' needs to be enabled to use ca injection
44-
#- webhookcainjection_patch.yaml
44+
# - webhookcainjection_patch.yaml
4545

4646
# the following config is for teaching kustomize how to do var substitution
4747
vars:
4848
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix.
49-
#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
49+
# - name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
5050
# objref:
5151
# kind: Certificate
5252
# group: cert-manager.io
5353
# version: v1
5454
# name: serving-cert # this name should match the one in certificate.yaml
5555
# fieldref:
5656
# fieldpath: metadata.namespace
57-
#- name: CERTIFICATE_NAME
57+
# - name: CERTIFICATE_NAME
5858
# objref:
5959
# kind: Certificate
6060
# group: cert-manager.io
6161
# version: v1
6262
# name: serving-cert # this name should match the one in certificate.yaml
63-
#- name: SERVICE_NAMESPACE # namespace of the service
63+
# - name: SERVICE_NAMESPACE # namespace of the service
6464
# objref:
6565
# kind: Service
6666
# version: v1
6767
# name: webhook-service
6868
# fieldref:
6969
# fieldpath: metadata.namespace
70-
#- name: SERVICE_NAME
70+
# - name: SERVICE_NAME
7171
# objref:
7272
# kind: Service
7373
# version: v1

config/internal/mcad/apiservice_custom-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if (eq .Values.configMap.multiCluster true) }}
1+
# {{ if (eq .Values.configMap.multiCluster true) }}
22
apiVersion: apiregistration.k8s.io/v1beta1
33
kind: APIService
44
metadata:

config/internal/mcad/apiservice_external-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if (eq .Values.configMap.multiCluster true) }}
1+
# {{ if (eq .Values.configMap.multiCluster true) }}
22
apiVersion: apiregistration.k8s.io/v1beta1
33
kind: APIService
44
metadata:

config/internal/mcad/clusterrole_system-controller-xqueuejob-controller.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ rules:
3939
- patch
4040
- update
4141
- watch
42-
#{{ if .Values.quotaManagement.rbac.apiGroup }}
43-
#{{ if .Values.quotaManagement.rbac.resource }}
42+
# {{ if .Values.quotaManagement.rbac.apiGroup }}
43+
# {{ if .Values.quotaManagement.rbac.resource }}
4444
- apiGroups:
45-
- {{ .Values.quotaManagement.rbac.apiGroup }}
45+
- {{.Values.quotaManagement.rbac.apiGroup}}
4646
resources:
47-
- {{ .Values.quotaManagement.rbac.resource }}
47+
- {{.Values.quotaManagement.rbac.resource}}
4848
verbs:
4949
- get
5050
- list
@@ -53,14 +53,14 @@ rules:
5353
- update
5454
- patch
5555
- delete
56-
#{{ end }}
57-
#{{ end }}
58-
#{{ if .Values.coscheduler.rbac.apiGroup }}
59-
#{{ if .Values.coscheduler.rbac.resource }}
56+
# {{ end }}
57+
# {{ end }}
58+
# {{ if .Values.coscheduler.rbac.apiGroup }}
59+
# {{ if .Values.coscheduler.rbac.resource }}
6060
- apiGroups:
61-
- {{ .Values.coscheduler.rbac.apiGroup }}
61+
- {{.Values.coscheduler.rbac.apiGroup}}
6262
resources:
63-
- {{ .Values.coscheduler.rbac.resource }}
63+
- {{.Values.coscheduler.rbac.resource}}
6464
verbs:
6565
- get
6666
- list
@@ -69,5 +69,5 @@ rules:
6969
- update
7070
- patch
7171
- delete
72-
#{{ end }}
73-
#{{ end }}
72+
# {{ end }}
73+
# {{ end }}

config/internal/mcad/clusterrolebinding_custom-metrics-resource-reader.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if .Values.serviceAccount }}
1+
# {{ if .Values.serviceAccount }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
@@ -9,5 +9,5 @@ roleRef:
99
name: custom-metrics-resource-reader
1010
subjects:
1111
- kind: ServiceAccount
12-
name: {{ .Values.serviceAccount }}
12+
name: {{.Values.serviceAccount}}
1313
namespace: kube-system

config/internal/mcad/clusterrolebinding_custom-metrics-system-auth-delegator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if .Values.serviceAccount }}
1+
# {{ if .Values.serviceAccount }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
@@ -9,5 +9,5 @@ roleRef:
99
name: system:auth-delegator
1010
subjects:
1111
- kind: ServiceAccount
12-
name: {{ .Values.serviceAccount }}
12+
name: {{.Values.serviceAccount}}
1313
namespace: kube-system

config/internal/mcad/clusterrolebinding_system-controller-xqueuejob-controller-edit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if .Values.serviceAccount }}
1+
# {{ if .Values.serviceAccount }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
@@ -13,5 +13,5 @@ roleRef:
1313
name: edit
1414
subjects:
1515
- kind: ServiceAccount
16-
name: {{ .Values.serviceAccount }}
16+
name: {{.Values.serviceAccount}}
1717
namespace: kube-system

config/internal/mcad/clusterrolebinding_system-controller-xqueuejob-controller-kube-scheduler.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#{{ if .Values.serviceAccount }}
1+
# {{ if .Values.serviceAccount }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
@@ -13,5 +13,5 @@ roleRef:
1313
name: system:kube-scheduler
1414
subjects:
1515
- kind: ServiceAccount
16-
name: {{ .Values.serviceAccount }}
16+
name: {{.Values.serviceAccount}}
1717
namespace: kube-system

0 commit comments

Comments
 (0)