Git Product home page Git Product logo

Comments (8)

markmandel avatar markmandel commented on June 12, 2024 1

should I switch to the new script once the PR for the Kubernetes version is merged, or should I make the change within that PR?

Let's do it in a new PR once that is merged. One problem at a time 😄

from agones.

markmandel avatar markmandel commented on June 12, 2024

Easiest way to check would be to run make shell and then look in /go/src/k8s.io/code-generator

from agones.

Kalaiselvi84 avatar Kalaiselvi84 commented on June 12, 2024

Regarding the generate-groups.sh script in the k8s.io/code-generator directory, I noticed that the kube_codegen.sh script is not present there. Will the kube_codegen.sh script be added to this directory automatically, or is there a different process for obtaining and using it?

:/go/src/agones.dev/agones# cd /go/src/k8s.io/code-generator/
:/go/src/k8s.io/code-generator# ls
CONTRIBUTING.md  OWNERS     SECURITY_CONTACTS  code-of-conduct.md  examples            generate-internal-groups.sh  go.sum  pkg          tools.go
LICENSE          README.md  cmd                doc.go              generate-groups.sh  go.mod                       hack    third_party

from agones.

Kalaiselvi84 avatar Kalaiselvi84 commented on June 12, 2024

The script kube_codegen.sh can be found in the code-generator repo at this link: https://github.com/kubernetes/code-generator/blob/master/kube_codegen.sh

Once kube_codegen.sh is available in the make shell; cd /go/src/k8s.io/code-generator/ directory, do we need to utilize it here - https://github.com/googleforgames/agones/blob/main/build/build-image/gen-crd-client.sh#L19?

from agones.

roberthbailey avatar roberthbailey commented on June 12, 2024

We can either vendor the code-generator repo (at the same branch version as we vendor client-go), or we can clone that github repository inside of our build image and execute it there.

from agones.

Kalaiselvi84 avatar Kalaiselvi84 commented on June 12, 2024

Thanks @roberthbailey👍🏻

Just for my notes: We have cloned the code-generator repo in here. When Agones updates to Kubernetes 1.30, we will switch from generate-groups.sh to kube-codegen.sh.

from agones.

markmandel avatar markmandel commented on June 12, 2024

When Agones updates to Kubernetes 1.30, we will switch from generate-groups.sh to kube-codegen.sh.

Just out of curiosity - I'm assuming the script doesn't exist in 1.29 ?

from agones.

Kalaiselvi84 avatar Kalaiselvi84 commented on June 12, 2024

Just out of curiosity - I'm assuming the script doesn't exist in 1.29 ?

I assumed that generate-groups.sh would be available until Kubernetes 1.30, However, I have verified that the new script is already present in Kubernetes version 1.28.6

root@deeaacff63a6:/go/src/k8s.io/code-generator# ls
CONTRIBUTING.md README.md code-of-conduct.md generate-groups.sh go.sum third_party
LICENSE SECURITY_CONTACTS doc.go generate-internal-groups.sh kube_codegen.sh tools.go
OWNERS cmd examples go.mod pkg

should I switch to the new script once the PR for the Kubernetes version is merged, or should I make the change within that PR?

from agones.

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.