Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argo Workflows #1252

Merged
merged 25 commits into from
May 26, 2022
Merged

Argo Workflows #1252

merged 25 commits into from
May 26, 2022

Conversation

Adam-D-Lewis
Copy link
Member

@Adam-D-Lewis Adam-D-Lewis commented Apr 15, 2022

Fixes | Closes | Resolves #

Please remove anything marked as optional that you don't need to fill in.
Choose one of the keywords preceding to refer to the issue this PR solves, followed by the issue number (e.g Fixes # 666).
If there is no issue, remove the line. Remove this note after reading.

Changes introduced in this PR:

Types of changes

What types of changes does your PR introduce?

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests?

  • Yes
  • No

Documentation

Does your contribution include breaking changes or deprecations?
If so have you updated the documentation?

  • Yes, docstrings
  • Yes, main documentation
  • Yes, deprecation notices

Further comments (optional)

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered and more.

Adam-D-Lewis and others added 11 commits April 4, 2022 19:09
…ces, add custom options for argo helm chart
…rbac for individual argo workflows components
* Mdformat tables (#1186)

* Add mdformat-tables

* Run mdformat on all files

* mdformat only docs folder (restore .github md files)

* Fix some vale, restore README/RELEASE

* [ImgBot] Optimize images (#1187)

/docs/source/images/dev_postman_for_keycloak.png -- 298.79kb -> 270.60kb (9.44%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>

* Bump conda-store version to 0.3.14 (#1192)

* Allow terraform init to upgrade providers within version specification (#1194)

* Allow terraform init to upgrade providers within version specification

Closes #1193

* Black formatting

* Adding missing __init__ files (#1196)

* Adding missing __init__ files

Closes #1195

* Explicitely using qhub for package

* Give hint on what to include

* Release 0.3.15 for Conda-Store (#1205)

* Profilegroups (#1203)

* Fix in case groups is None

* access all/keycloak/yaml

* jupyterlabproflies mapper

* Keycloak profiles working

* ignore changes to keycloak group attributes

* qhub upgrade for jupyterlab profiles

* docs for jupyterlabprofiles

* Renamed to jupyterlab_profiles

* Render `.gitignore`, black py files (#1206)

* Render .gitignore

* Render clean .gitignore

* Add unit test

* Upgrade black

* Upgrade black

* black format

* exclude qhub/_version.py from black

* Black what needs blackening

* Fix

* Fix

* Update qhub-dask version (#1224)

* Fix env doc links and add corresponding tests (#1216)

* Fix env doc links and add corresponding tests

* fix broken image link

* fix black formatting

* map(any) -> any (#1213)

* Update release notes - justification for changes in `v0.4.0`  (#1178)

* Update release notes

* Remove ref to cookiecutter

* Update link-checker version

* Fix

* Use lycee link-checker instead

* Remove lycee, update md config.json

* Revert version

* Release notes cleanup

* Rewording

* Add to vocab

* Fix table

* Add explicit warning about release

* Update README.md

Fixed some syntax/grammar issues.

* Minor updates

Co-authored-by: Christopher Ostrouchov <chris.ostrouchov@gmail.com>
Co-authored-by: Shannon <magsol@gmail.com>

* Merge spawner and profile env vars

* Support for pinning the IP address of the load balancer via terraform overrides (#1235)

* Suport adding load balancer annotations and ip via terraform overrides

* add documentation for terraform overrides

* make terraform overrides being able to override any variable

* Bump moment from 2.29.1 to 2.29.2 in /tests_e2e (#1241)

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update cdsdashboards to 0.6.1, Voila to 0.3.5 (#1240)

* Update cdsdashboards to 0.6.1

* voila v0.3.5

* Bump minimist from 1.2.5 to 1.2.6 in /tests_e2e (#1208)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* output check fix (#1244)

Co-authored-by: Adam-D-Lewis <>

* Add auth to argo

* add argo_workflows value to qhub init command

* update black version

* update black in setup.cfg

Co-authored-by: Dan Lester <dan@ideonate.com>
Co-authored-by: imgbot[bot] <31301654+imgbot[bot]@users.noreply.github.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: Christopher Ostrouchov <chris.ostrouchov@gmail.com>
Co-authored-by: Amit Kumar <dtu.amit@gmail.com>
Co-authored-by: Shannon <magsol@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Lewis <23342526+Adam-D-Lewis@users.noreply.github.com>
Co-authored-by: Adam-D-Lewis <>
@Adam-D-Lewis Adam-D-Lewis changed the title Argo Argo Workflows [WIP] Apr 15, 2022
@iameskild
Copy link
Member

iameskild commented Apr 15, 2022

With the latest commit, I was able to deploy (without the need the cert) and login:
Screen Shot 2022-04-15 at 12 30 48

The only remaining issue is the health check at the end of the deployment for https://<qhub-domain>/argo/api/v1/info. If I navigate to that URL, I get a valid response: {"managedNamespace":"dev"}

@Adam-D-Lewis
Copy link
Member Author

Adam-D-Lewis commented Apr 19, 2022

I've noticed that I get a 401 (Unauthorized) status code when visiting https://<qhub-domain>/argo/api/v1/info before logging in via Keycloak. After logging in, https://<qhub-domain>/argo/api/v1/info gives a 200 response. Same with other argo api urls I tried. Perhaps we just use https://<qhub-domain>.qhub.dev/argo as the health url since the other urls appear to be inaccessible before authenticating.

@iameskild
Copy link
Member

Good catch @Adam-D-Lewis! The kubernetes test is now passing 🙌

@costrouc I think this PR is ready for another review :)

@Adam-D-Lewis
Copy link
Member Author

Adam-D-Lewis commented Apr 19, 2022

The only remaining failing test appears to be unrelated to this PR, and I've opened an issue tracking it.

@Adam-D-Lewis Adam-D-Lewis requested a review from costrouc April 19, 2022 15:55
@iameskild iameskild changed the title Argo Workflows [WIP] Argo Workflows Apr 21, 2022
@Adam-D-Lewis
Copy link
Member Author

Adam-D-Lewis commented Apr 23, 2022

I made some more progress on the roles stuff in the latest commit. We may need to delete the insecure-skip-no-verify stuff still. Also, in the Argo UI, we can see all the roles (jupyterhub, dask, others) instead of just argo roles.

Argo maps roles to service accounts via service account annotations. More info at https://argoproj.github.io/argo-workflows/argo-server-sso/#sso-rbac.

image

@costrouc
Copy link
Member

costrouc commented Apr 26, 2022

we can see all the roles (jupyterhub, dask, others) instead of just argo roles.

This is a bug in how the https://github.com/Quansight/qhub/tree/main/qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/keycloak-client is configured. Not an issue on your end!

@magsol magsol modified the milestones: Release v0.4.1, Release v0.4.2 Apr 26, 2022
@Adam-D-Lewis
Copy link
Member Author

Adam-D-Lewis commented Apr 26, 2022

Okay, I think this is ready for re-review @costrouc. Only vale CI test is failing, but I don't know how to disable or override them. Do I need to do that before merging?

@Adam-D-Lewis Adam-D-Lewis requested a review from costrouc April 26, 2022 19:07
@costrouc
Copy link
Member

@Adam-D-Lewis I'd love to test this out. I likely won't have time until next week but I will put it on my todo list. From looking at the code this looks great it is in great shape!

Copy link
Member

@costrouc costrouc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Once merge conflicts are resolved it looks good to me

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.

4 participants