Fix yaml syntax
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2020-02-15 18:38:57 +01:00
parent 0774e23801
commit b571066ba4
6 changed files with 38 additions and 31 deletions

View file

@ -1,7 +1,13 @@
---
kind: pipeline kind: pipeline
name: lint name: lint
steps: steps:
- name: yaml lint
image: cytopia/yamllint
commands:
- yamllint .
- name: pylint - name: pylint
image: eeacms/pylint image: eeacms/pylint
commands: commands:
@ -13,11 +19,6 @@ steps:
commands: commands:
- hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip - hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip
- name: yaml lint
image: cytopia/yamllint
commands:
- yamllint .
- name: w3c validator - name: w3c validator
image: validator/validator:latest image: validator/validator:latest
commands: commands:

6
.yamllint Normal file
View file

@ -0,0 +1,6 @@
---
extends: default
rules:
indentation:
indent-sequences: consistent

View file

@ -1,3 +1,4 @@
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -18,4 +19,3 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 5000 - containerPort: 5000

View file

@ -1,3 +1,4 @@
---
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
@ -13,4 +14,3 @@ spec:
backend: backend:
serviceName: beer serviceName: beer
servicePort: 80 servicePort: 80

View file

@ -1,3 +1,4 @@
---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -9,4 +10,3 @@ spec:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 5000 targetPort: 5000

View file

@ -1,3 +1,4 @@
---
apiVersion: v1 apiVersion: v1
clusters: clusters:
- cluster: - cluster:
@ -17,4 +18,3 @@ users:
user: user:
password: ${KUBE_PASSWORD} password: ${KUBE_PASSWORD}
username: ${KUBE_USERNAME} username: ${KUBE_USERNAME}