From f7dd65d1e192909ea881930098ec8d77480ddfc2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 28 Mar 2023 08:22:17 +0200 Subject: [PATCH] Add Kubernetes initials --- app/Models/Kubernetes.php | 11 ++++++++ ...3_03_28_062150_create_kubernetes_table.php | 27 +++++++++++++++++++ database/seeders/DatabaseSeeder.php | 1 + database/seeders/KubernetesSeeder.php | 17 ++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 app/Models/Kubernetes.php create mode 100644 database/migrations/2023_03_28_062150_create_kubernetes_table.php create mode 100644 database/seeders/KubernetesSeeder.php diff --git a/app/Models/Kubernetes.php b/app/Models/Kubernetes.php new file mode 100644 index 000000000..fe2e65ca8 --- /dev/null +++ b/app/Models/Kubernetes.php @@ -0,0 +1,11 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('kubernetes'); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 35d8d993f..2f5b6686c 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -20,6 +20,7 @@ public function run(): void EnvironmentSeeder::class, StandaloneDockerSeeder::class, SwarmDockerSeeder::class, + KubernetesSeeder::class, ApplicationSeeder::class, DBSeeder::class, ]); diff --git a/database/seeders/KubernetesSeeder.php b/database/seeders/KubernetesSeeder.php new file mode 100644 index 000000000..e43a8df60 --- /dev/null +++ b/database/seeders/KubernetesSeeder.php @@ -0,0 +1,17 @@ +