kube-score icon indicating copy to clipboard operation
kube-score copied to clipboard

Openshift objects validation

Open andywow opened this issue 6 years ago • 4 comments

Hello, it will be nice, if kube-score will validate openshift objects: Route (Ingress analog) and DeploymentConfig (Deployment analog)

andywow avatar Jun 20 '19 20:06 andywow

Hey, I’m not very familiar with OpenShift, but I don’t see any reason for why this project should not support it. Pull Requests are welcome.

zegl avatar Jun 21 '19 09:06 zegl

@andywow Could you indicate what Kind of OpenShift objects should be validated, e.g. BuildConfigs, DeploymentConfigs, ImageStreams, Routes. I think that we should to validate one.

030 avatar Feb 25 '21 17:02 030

@zegl could you give me some pointers? For example, an OpenShift DeploymentConfig is the equivalent of a Deployment in k8s. Should I create a new file? What is the best way to start in this project?

apiVersion: v1
kind: DeploymentConfig
metadata:
  name: frontend
spec:
  replicas: 5
  selector:
    name: frontend
  template: { ... }
  triggers:
  - type: ConfigChange 
  - imageChangeParams:
      automatic: true
      containerNames:
      - helloworld
      from:
        kind: ImageStreamTag
        name: hello-openshift:latest
    type: ImageChange  
  strategy:
    type: Rolling      

Source: https://docs.openshift.com/container-platform/4.1/applications/deployments/what-deployments-are.html

030 avatar Feb 25 '21 18:02 030

Curious if anyone has figured out a way to do this as an extension of the current library or if it will take a PR to make it happen

neilchaudhuri avatar Jul 02 '22 18:07 neilchaudhuri