Skip to content

Commit

Permalink
Fixes yamllint errors
Browse files Browse the repository at this point in the history
  - Adds .yamllint file to set the yaml lint rules
  - Fixes yamllint errors in config directory

Signed-off-by: Puneet Punamiya <[email protected]>
  • Loading branch information
PuneetPunamiya authored and tekton-robot committed Mar 1, 2021
1 parent b441919 commit 3b3c64f
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 8 deletions.
36 changes: 36 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ignore: |
/vendor
/api/vendor

rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
level: warning
comments-indentation:
level: warning
document-end: disable
document-start: disable
empty-lines: enable
empty-values: enable
hyphens: enable
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: disable
new-lines: enable
octal-values: enable
quoted-strings: disable
trailing-spaces: enable
truthy:
level: warning

# accept both key:
# - item
#
# and key:
# - item
indentation:
indent-sequences: whatever
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ default:
# org: Organization of Catalog
# type: Type of Catalog [official, verified, community]
# url: URL of repository
# revision: Branch of repository
# contextDir(Optional): Path to resource dir
# revision: Branch of repository
# contextDir(Optional): Path to resource dir
4 changes: 2 additions & 2 deletions config/00-init/03-db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ spec:
mountPath: /var/lib/postgresql/data
readinessProbe:
exec:
command: [bash, -c ,"psql -w -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'SELECT 1'"]
command: [bash, -c, "psql -w -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'SELECT 1'"]
initialDelaySeconds: 15
timeoutSeconds: 2
periodSeconds: 15
livenessProbe:
exec:
command: [bash, -c ,"psql -w -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'SELECT 1'"]
command: [bash, -c, "psql -w -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c 'SELECT 1'"]
initialDelaySeconds: 45
timeoutSeconds: 2
periodSeconds: 15
Expand Down
6 changes: 3 additions & 3 deletions config/02-api/21-api-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright © 2020 The Tekton Authors.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http:www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
2 changes: 1 addition & 1 deletion config/04-openshift/40-api-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
namespace: tekton-hub
labels:
app: api
spec:
spec:
to:
kind: Service
name: api
Expand Down

0 comments on commit 3b3c64f

Please sign in to comment.