Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Add support for StatefulSets #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

vbehar
Copy link
Contributor

@vbehar vbehar commented Oct 9, 2019

With this change, Osiris can now manage both Deployments and StatefulSets.

I introduced a new service annotation osiris.deislabs.io/statefulset to link a service with its statefulset, otherwise everything works the same as with Deployments.

Internally, I tried to avoid duplicated code, and introduced a kind parameter to make a distinction between deployments and statefulsets.

@codecov-io
Copy link

codecov-io commented Oct 9, 2019

Codecov Report

Merging #43 into master will decrease coverage by 0.65%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
- Coverage    57.3%   56.65%   -0.66%     
==========================================
  Files          11       11              
  Lines         623      639      +16     
==========================================
+ Hits          357      362       +5     
- Misses        237      248      +11     
  Partials       29       29
Impacted Files Coverage Δ
pkg/kubernetes/informers.go 0% <0%> (ø) ⬆️
pkg/net/http/httputil/reverseproxy.go 73.01% <0%> (+1.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 113a458...fd733a4. Read the comment docs.

@krancour
Copy link
Contributor

@vbehar this has some merge conflicts after support for shorter DNS names was merged.

@vbehar
Copy link
Contributor Author

vbehar commented Oct 11, 2019

yes thanks, I'll fix them

With this change, Osiris can now manage both Deployments and StatefulSets.

I introduced a new service annotation `osiris.deislabs.io/statefulset` to link a service with its statefulset,
otherwise everything works the same as with Deployments.

Internally, I tried to avoid duplicated code, and introduced a `kind` parameter to make a distinction
between deployments and statefulsets.
@vbehar
Copy link
Contributor Author

vbehar commented Oct 11, 2019

ok, rebased on master

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@krancour
Copy link
Contributor

Need rebase after recent merge.

@vbehar
Copy link
Contributor Author

vbehar commented Oct 24, 2019

@krancour ok, it's been rebased after the recent merges.

vbehar added a commit to dailymotion-oss/osiris that referenced this pull request Sep 14, 2020
apply deislabs#43

With this change, Osiris can now manage both Deployments and StatefulSets.

I introduced a new service annotation `osiris.deislabs.io/statefulset` to link a service with its statefulset, otherwise everything works the same as with Deployments.

Internally, I tried to avoid duplicated code, and introduced a `kind` parameter to make a distinction between deployments and statefulsets.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants