Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

🐛 Add Type meta to HPA to make versions consistent #1162

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/capsulesteps/deployment/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@ func (p *Plugin) shouldCreateHPA(req pipeline.CapsuleRequest) (bool, error) {

func (p *Plugin) createHPA(req pipeline.CapsuleRequest) (*autoscalingv2.HorizontalPodAutoscaler, bool, error) {
hpa := &autoscalingv2.HorizontalPodAutoscaler{
TypeMeta: metav1.TypeMeta{
Kind: "HorizontalPodAutoscaler",
APIVersion: "autoscaling/v2",
},
ObjectMeta: metav1.ObjectMeta{
Name: req.Capsule().Name,
Namespace: req.Capsule().Namespace,
Expand Down
Loading