Skip to content

Commit 97f0142

Browse files
authored
Merge pull request #134 from kingdonb/fixup-deployment-scale
fix(controller): apps/v1 in App model for hpa
2 parents 56399ff + d43b5fa commit 97f0142

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/models/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ def autoscale(self, proc_type, autoscale):
968968
"""
969969
name = '{}-{}'.format(self.id, proc_type)
970970
# basically fake out a Deployment object (only thing we use) to assign to the HPA
971-
target = {'apiVersion': 'extensions/v1beta1',
971+
target = {'apiVersion': 'apps/v1',
972972
'kind': 'Deployment',
973973
'metadata': {'name': name}}
974974

0 commit comments

Comments
 (0)