Skip to content

lifecycle: migrate: ensure template schema exists before migrating - #8952

Merged
rissson merged 5 commits into
mainfrom
migrate-always-create-template-schema
Mar 25, 2024
Merged

rissson merged 5 commits into
mainfrom
migrate-always-create-template-schema

Conversation

@rissson

@rissson rissson commented Mar 18, 2024

Copy link
Copy Markdown
Member

Details

This is done in a migration, and thus isn't always run if the schema is somehow deleted.

Closes #8900


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)

If applicable

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

@rissson rissson self-assigned this Mar 18, 2024
@rissson
rissson requested a review from a team as a code owner March 18, 2024 15:39
@netlify

netlify Bot commented Mar 18, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 10e7300
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/65fdb9683446850007d7566d

@netlify

netlify Bot commented Mar 18, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 10e7300
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65fdb96822f4480008824672

@rissson
rissson enabled auto-merge (squash) March 18, 2024 15:41
@github-actions

github-actions Bot commented Mar 18, 2024 •

Copy link
Copy Markdown
Contributor

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-ghcr.io/goauthentik/dev-server:gh-10e7300ad4e8ba527761a0d3a252edffdac74c38
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-ghcr.io/goauthentik/dev-server:gh-10e7300ad4e8ba527761a0d3a252edffdac74c38-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-ghcr.io/goauthentik/dev-server:gh-10e7300ad4e8ba527761a0d3a252edffdac74c38

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-ghcr.io/goauthentik/dev-server:gh-10e7300ad4e8ba527761a0d3a252edffdac74c38-arm64

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

@rissson
rissson force-pushed the migrate-always-create-template-schema branch from cea8f34 to ee96736 Compare March 19, 2024 08:13
@rissson
rissson requested a review from BeryJu March 19, 2024 08:13
BeryJu and others added 4 commits March 19, 2024 11:28
@rissson
rissson merged commit 15c7be1 into main Mar 25, 2024
@rissson
rissson deleted the migrate-always-create-template-schema branch March 25, 2024 12:11
@BeryJu

BeryJu commented Mar 25, 2024

Copy link
Copy Markdown
Member

/cherry-pick version-2024.2

BeryJu pushed a commit that referenced this pull request Mar 25, 2024
…herry-pick #8952) (#9022)

lifecycle: migrate: ensure template schema exists before migrating (#8952)

Co-authored-by: Marc 'risson' Schmitt <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2024
* main:
  web: bump API Client version (#9021)
  sources/ldap: add ability to disable password write on login (#8377)
  web: bump API Client version (#9020)
  lifecycle: migrate: ensure template schema exists before migrating (#8952)
  website/integrations: Update nextcloud Admin Group Expression (#7314)
  web/flow: general ux improvements (#8558)
  website: bump @types/react from 18.2.67 to 18.2.69 in /website (#9016)
  core: bump requests-oauthlib from 1.4.0 to 2.0.0 (#9018)
  web: bump the sentry group in /web with 2 updates (#9017)
  web/admin: small fixes (#9002)
  website: bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website (#9001)
  core: bump ruff from 0.3.3 to 0.3.4 (#8998)
  website/docs: Upgrade nginx reverse porxy config (#8947)
  website/docs: improve flow inspector docs (#8993)
  website/deverlop-docs website/integrations: add links to integrations template (#8995)
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2024
* main: (27 commits)
  web: bump API Client version (#9035)
  website/docs: maintenance, re-add system settings (#9026)
  core: bump duo-client from 5.2.0 to 5.3.0 (#9029)
  website: bump express from 4.18.2 to 4.19.2 in /website (#9027)
  web: bump express from 4.18.3 to 4.19.2 in /web (#9028)
  web: bump the eslint group in /web with 2 updates (#9030)
  core: bump goauthentik.io/api/v3 from 3.2024022.3 to 3.2024022.5 (#9031)
  website: bump @types/react from 18.2.69 to 18.2.70 in /website (#9032)
  web: bump the eslint group in /tests/wdio with 2 updates (#9033)
  web: bump katex from 0.16.9 to 0.16.10 in /web (#9025)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#9023)
  website/docs: include OS-specific docker-compose install instructions + minor fixes (#8975)
  web: bump API Client version (#9021)
  sources/ldap: add ability to disable password write on login (#8377)
  web: bump API Client version (#9020)
  lifecycle: migrate: ensure template schema exists before migrating (#8952)
  website/integrations: Update nextcloud Admin Group Expression (#7314)
  web/flow: general ux improvements (#8558)
  website: bump @types/react from 18.2.67 to 18.2.69 in /website (#9016)
  core: bump requests-oauthlib from 1.4.0 to 2.0.0 (#9018)
  ...
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.

relation "authentik_providers_rac_racpropertymapping" already exists

2 participants