instrumenta / kubernetes-json-schema

Schemas for every version of every object in every version of Kubernetes
https://kubernetesjsonschema.dev
Other
306 stars 134 forks source link

Added schema definition for k8s v1.15.0 #4

Closed mavimo closed 5 years ago

mavimo commented 5 years ago

Closes #2

mavimo commented 5 years ago

@garethr I think you're the right ppl to ping ;)

PS: I also have other definition (1.14.8 & c) to push, but since they generate merge conflicts due the change on build.sh I'll prefer to send PRs once this is merged, thx!! :)

garethr commented 5 years ago

@mavimo thanks fo generating these. I'll generate a few of the missing schemas now for the latest releases.

mavimo commented 5 years ago

@garethr Thx!

Do you have access to GithubActions? If you have can I suggest to create a scheduled job tht wuery the GH repository with query (test with https://developer.github.com/v4/explorer/):

{
  organization(login: "kubernetes") {
    repository(name: "kubernetes") {
      releases(first: 20, orderBy: {field: CREATED_AT, direction: DESC}) {
        nodes {
          name
        }
      }
    }
  }
}

Then check if the version exist or if not exist invoke the generation command for the specific version and open a PR (that should auto/merged or if you prefer wait for manual approval), WDYT?

I think this can help to reduce the amount of time needed for maintenance and allow to have new version available as soon as the new k8s tag is published.

garethr commented 5 years ago

@mavimo I have actions on another account, but not yet on this one. I've signed up, but it appears to be taking a while for Actions to be rolled out across orgs alas. Definitely a good idea.