for example manifest:
apiVersion: v1
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
- apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
kind: List
running the python linekubernetes_validate.validate(rendered_yaml, '1.22', strict=False) results in the error:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/kubernetes_validate/kubernetes-json-schema/v1.22.0-local/list-v1.json'
It seems like the list-v1.json file is missing in https://github.com/willthames/kubernetes-validate/tree/main/src/kubernetes_validate/kubernetes-json-schema/v1.22.0-local.
What are the steps to add that? I can assist here if needed. Thanks
for example manifest:
running the python line
kubernetes_validate.validate(rendered_yaml, '1.22', strict=False)results in the error:FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/kubernetes_validate/kubernetes-json-schema/v1.22.0-local/list-v1.json'It seems like the
list-v1.jsonfile is missing inhttps://github.com/willthames/kubernetes-validate/tree/main/src/kubernetes_validate/kubernetes-json-schema/v1.22.0-local.What are the steps to add that? I can assist here if needed. Thanks