Skip to content

Feature/kustomize #51

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# unikube commons
git+git://github.com/unikubehq/[email protected]
git+https://github.com/unikubehq/[email protected]

# regular pypi
bpython
Expand Down
27 changes: 27 additions & 0 deletions src/projects/migrations/0009_auto_20220225_1345.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 2.2.27 on 2022-02-25 13:45

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("projects", "0008_helm_overrides"),
]

operations = [
migrations.AddField(
model_name="deck",
name="disabled",
field=models.BooleanField(default=False, verbose_name="Disabled"),
),
migrations.AlterField(
model_name="project",
name="spec_type",
field=models.CharField(
choices=[("helm", "Helm"), ("plain", "Plain"), ("kustomize", "Kustomize")],
max_length=5,
verbose_name="Type",
),
),
]
2 changes: 2 additions & 0 deletions src/projects/models/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Deck(TitleDescriptionModel, NonUniqueSlugMixin):

type = models.TextField()

disabled = models.BooleanField(_("Disabled"), default=False)

namespace = models.TextField(
_("Namespace"),
help_text=_("The kubernetes namespace for the application to be deployed to."),
Expand Down
2 changes: 1 addition & 1 deletion src/projects/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RepositoryStatus:

class Project(TitleDescriptionModel, NonUniqueSlugMixin, KeycloakResource):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
SPEC_CHOICES = [("helm", "Helm")]
SPEC_CHOICES = [("helm", "Helm"), ("plain", "Plain"), ("kustomize", "Kustomize")]
REPOSITORY_STATUS_CHOICES = [
(RepositoryStatus.UNKNOWN, "Unknown"),
(RepositoryStatus.CLONING_PENDING, "Cloning Pending"),
Expand Down