Skip to content

feat(HPAs): resolves #135 recreate HPAs from db on load#136

Merged
Cryptophobia merged 1 commit intoteamhephy:masterfrom
Cryptophobia:master
Oct 16, 2020
Merged

feat(HPAs): resolves #135 recreate HPAs from db on load#136
Cryptophobia merged 1 commit intoteamhephy:masterfrom
Cryptophobia:master

Conversation

@Cryptophobia
Copy link
Copy Markdown
Member

@Cryptophobia Cryptophobia commented Oct 16, 2020

Signed-off-by: Cryptophobia aouzounov@gmail.com

resolves #135

@dmcnaught @kingdonb

Local unit test and local minikube testing passes for me. Had to modify the function.

There are multiple appsettings per app. We only care about the latest one. We use app.structure for the proc_types only if appsettings.autoscale is set. If autoscale is unset on deis, then the hpa should not be created and should return an error.

This is the intended behaviour as we assume deis/hephy controller is master of its own namespaces (apps).

Signed-off-by: Cryptophobia <aouzounov@gmail.com>
@Cryptophobia
Copy link
Copy Markdown
Member Author

Local unit test and local minikube testing passes for me. Had to modify the function.

There are multiple appsettings per app. We only care about the latest one. We use app.structure for the proc_types only if appsettings.autoscale is set. If autoscale is unset on deis, then the hpa should not be created and should return an error.

This is the intended behaviour as we assume deis/hephy controller is master of its own namespaces (apps).

@Cryptophobia Cryptophobia merged commit f5363a9 into teamhephy:master Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HPAs are not re-created upon controller start if they have been deleted in Kubernetes (but still exist in workflow)

1 participant