# Generated by Django 5.2b1 on 2025-03-24 10:27

import encrypted_fields.fields
from django.db import migrations

import servala.core.models.service


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0004_encrypt_api_credentials"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="controlplane",
            name="k8s_api_endpoint",
        ),
        migrations.AlterField(
            model_name="controlplane",
            name="api_credentials",
            field=encrypted_fields.fields.EncryptedJSONField(
                help_text="Required fields: certificate-authority-data, server (URL), token",
                validators=[servala.core.models.service.validate_api_credentials],
                verbose_name="API credentials",
            ),
        ),
    ]
