instrumenta / instrumenta/kubeval
Raw: Raw is required
- Dominant language
- Go
- Stars
- 3.2k
- Forks
- 227
- PR merge metrics
- No merged PRs in 30d
Description
I am executing the command ./kubeval --openshift --kubernetes-version 1.5.0 yaml/* and getting the error message:
The document yaml/deployment-template.yaml contains an invalid Template
---> Raw: Raw is required
---> Raw: Raw is required
---> Raw: Raw is required
Sample file :
```
apiVersion: v1
kind: Template
metadata:
name: bar
parameters:
- name: foo
displayName: The name of the REST application. It will be part of the exposed route.
value: bar
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: ${foo}
name: ${foo}
spec:
replicas: 1
selector:
app: ${foo}
deploymentconfig: ${foo}
template:
metadata:
labels:
app: ${foo}
deploymentconfig: ${foo}
spec:
containers:
- env:
- name: LOG_LEVEL
value: DEBUG
image: ${foo}
imagePullPolicy: Always
name: ${foo}
livenessProbe:
httpGet:
path: /api/healthcheck
port: 8080
initialDelaySeconds: 300
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/healthcheck
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
resources:
requests:
cpu: 500m
memory: 500Mi
limits:
cpu: 1000m
memory: 1Gi
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
test: false
- apiVersion: v1
kind: ImageStream
metadata:
labels:
build: ${foo}
name: ${foo}
spec:
tags:
- from:
kind: DockerImage
name: ${foo}:latest
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.