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

root: migrate bootstrap to blueprints #6433

Merged
merged 15 commits into from Jul 31, 2023
Merged

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Jul 31, 2023

Details

Migrate bootstrap for automated installs to a blueprint instead of having additional code in migrations


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
…exist

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner July 31, 2023 12:40
@BeryJu BeryJu requested review from tanberry and removed request for a team July 31, 2023 12:40
@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 38f8d14
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/64c7df901d226a0008ce47fe

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5139656) 92.46% compared to head (38f8d14) 92.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6433      +/-   ##
==========================================
- Coverage   92.46%   92.46%   -0.00%     
==========================================
  Files         561      561              
  Lines       27053    27061       +8     
==========================================
+ Hits        25013    25019       +6     
- Misses       2040     2042       +2     
Flag Coverage Δ
e2e 51.60% <65.00%> (+0.02%) ⬆️
integration 26.56% <25.00%> (+0.06%) ⬆️
unit 89.26% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
authentik/blueprints/tests/test_v1.py 100.00% <ø> (ø)
authentik/blueprints/v1/common.py 92.65% <100.00%> (+0.11%) ⬆️
authentik/blueprints/v1/importer.py 90.36% <100.00%> (+0.67%) ⬆️
authentik/root/celery.py 73.34% <100.00%> (ø)

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the root/migrate-bootstrap-blueprints branch from 9fde175 to 339f501 Compare July 31, 2023 13:06
@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 9fde175
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/64c7b19a8f42cc00084be1ba
😎 Deploy Preview https://deploy-preview-6433--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 339f501
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/64c7b1e37babaf0008f93aea
😎 Deploy Preview https://deploy-preview-6433--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@github-actions
Copy link
Contributor

github-actions bot commented Jul 31, 2023

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-root-migrate-bootstrap-blueprints-1690824638-38f8d14
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-root-migrate-bootstrap-blueprints-1690824638-38f8d14-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-root-migrate-bootstrap-blueprints-1690824638-38f8d14

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-root-migrate-bootstrap-blueprints-1690824638-38f8d14-arm64

Afterwards, run the upgrade commands from the latest release notes.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu merged commit 10b0c84 into main Jul 31, 2023
62 checks passed
@BeryJu BeryJu deleted the root/migrate-bootstrap-blueprints branch July 31, 2023 17:34
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.

None yet

1 participant