GithubHelp home page GithubHelp logo

Comments (2)

garethr avatar garethr commented on July 24, 2024

Could you include a failing definition file? I'll take a look at where this is failing.

kubeval relies exclusively on the Kubernetes OpenAPI descriptions, which might mean this information is missing from those. Or it could be a different local bug.

from kubeval.

DamonStamper avatar DamonStamper commented on July 24, 2024

Sure. Below is a failing definition file. "CapitalName" and "underscore_name" are the source of the errors in this example.

apiVersion: v1
kind: Service
metadata:
  name: CapitalName
  labels:
    app: CapitalName
spec:
  selector:
    app: Invalid_App
  type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
  name: underscore_name
  labels:
    app: underscore_name
spec:
  selector:
    app: underscore_name
  type: LoadBalancer
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: 
  labels:
    app: Invalid_App
spec:
  template:
    metadata:
      labels:
        app: Invalid_App
    spec:
      containers:
      - name: CapitalName
        image: CapitalImage
        imagePullPolicy: Always
      - name: underscore_name
        image: underscore_image
        imagePullPolicy: Always

from kubeval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.