From 221db12f854e8bbc0d745645eafcac6a303e3522 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 24 Dec 2020 13:14:20 +0100 Subject: [PATCH] outposts: allow blank kubeconfig --- .../migrations/0015_auto_20201224_1206.py | 21 +++++++++++++++++++ authentik/outposts/models.py | 3 ++- swagger.yaml | 1 - 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 authentik/outposts/migrations/0015_auto_20201224_1206.py diff --git a/authentik/outposts/migrations/0015_auto_20201224_1206.py b/authentik/outposts/migrations/0015_auto_20201224_1206.py new file mode 100644 index 000000000..5531e7833 --- /dev/null +++ b/authentik/outposts/migrations/0015_auto_20201224_1206.py @@ -0,0 +1,21 @@ +# Generated by Django 3.1.4 on 2020-12-24 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("authentik_outposts", "0014_auto_20201213_1407"), + ] + + operations = [ + migrations.AlterField( + model_name="kubernetesserviceconnection", + name="kubeconfig", + field=models.JSONField( + blank=True, + help_text="Paste your kubeconfig here. authentik will automatically use the currently selected context.", + ), + ), + ] diff --git a/authentik/outposts/models.py b/authentik/outposts/models.py index a301bb892..9861195df 100644 --- a/authentik/outposts/models.py +++ b/authentik/outposts/models.py @@ -234,7 +234,8 @@ class KubernetesServiceConnection(OutpostServiceConnection): "Paste your kubeconfig here. authentik will automatically use " "the currently selected context." ) - ) + ), + blank=True, ) @property diff --git a/swagger.yaml b/swagger.yaml index f19460c08..dfea7655b 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -7345,7 +7345,6 @@ definitions: description: KubernetesServiceConnection Serializer required: - name - - kubeconfig type: object properties: pk: