Giter Club home page Giter Club logo

Comments (5)

StefanCenusa avatar StefanCenusa commented on June 14, 2024 1

I've tested with the following change:

              template:
                description: The image of the Custom Pod Autoscaler
                properties:
                  metadata:
                    description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
                    type: object
                    x-kubernetes-preserve-unknown-fields: true

And it works. Metadata defined on CPA is applied to the created Pod

from custom-pod-autoscaler-operator.

jthomperoo avatar jthomperoo commented on June 14, 2024 1

Hey @StefanCenusa sorry about marking this closed without providing a fix version - I was hoping to get a fix cut for this when I noticed this bug that it's introduced: #95

This will be released as soon as I can address this, hoping to have a look this weekend, there's a question of best practices around operators that I've raised here: operator-framework/operator-sdk#5926.

I see you've added a comment on that issue too with a suggestion, let me respond to you there too.

from custom-pod-autoscaler-operator.

StefanCenusa avatar StefanCenusa commented on June 14, 2024

@jthomperoo When will this change be released?

from custom-pod-autoscaler-operator.

StefanCenusa avatar StefanCenusa commented on June 14, 2024

Hey, no problem, I understand. I have this command that I run after the helm install.

kubectl patch crd custompodautoscalers.custompodautoscaler.com \
    --type json \
    --patch='[{"op": "replace", "path": "/spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/template/properties/metadata/x-kubernetes-preserve-unknown-fields", "value": true}]'

Although, I think that the "bug" this patch introduces is rather a design flaw of how CPA operator controls the (sub)resources.

from custom-pod-autoscaler-operator.

jthomperoo avatar jthomperoo commented on June 14, 2024

Now available in 1.3.0 🎉

from custom-pod-autoscaler-operator.

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.