Skip to content

Commit

Permalink
fix(controller): apps/v1 in App model for hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdon Barrett committed Oct 7, 2020
1 parent 56399ff commit d43b5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/api/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def autoscale(self, proc_type, autoscale):
"""
name = '{}-{}'.format(self.id, proc_type)
# basically fake out a Deployment object (only thing we use) to assign to the HPA
target = {'apiVersion': 'extensions/v1beta1',
target = {'apiVersion': 'apps/v1',
'kind': 'Deployment',
'metadata': {'name': name}}

Expand Down

0 comments on commit d43b5fa

Please sign in to comment.