Comments (5)
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.
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.
@jthomperoo When will this change be released?
from custom-pod-autoscaler-operator.
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.
Now available in 1.3.0
🎉
from custom-pod-autoscaler-operator.
Related Issues (20)
- Unable to apply CustomPodAutoscaler HOT 3
- Pausing autoscaling HOT 2
- CPA Operator has trouble with cascading foreground deletion HOT 3
- Ability to specify the serviceAccount to use HOT 1
- Can i use CPA will work for predication and sudden spike autoscaling on EKS ? HOT 1
- Missing WATCH_NAMESPACE variable HOT 4
- Could not create ServiceMonitor object HOT 3
- Helm chart only works if deployed in default namespace HOT 1
- multiple service account token being created HOT 4
- Upgrade Operator SDK to stable version v1.1.0 to get future backwards compatible bug fixes
- Operator fails to install on K8s >= v1.18.x HOT 2
- The Custom Pod Autoscaler Operator should include an option for provisioning a role with access to the metrics server
- roleRequiresMetricsServer flag does not generate role that works for custom or external metrics
- Add support for Argo Rollouts
- CustomPodAutoscaler/v1alpha1 HOT 2
- reconcile would delete existing pod during Update event HOT 1
- Namespaced deployment fails to watch namespaced resources HOT 1
- Changing Pod name through metadata can cause 2 pods to be created HOT 7
- Add status field information
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom-pod-autoscaler-operator.