uffizzi_core 2.4.4 → 2.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe4138139998d00870f71519ae7d1a04a0e6e67679f3f9bddbd7cd40bb12ac8b
4
- data.tar.gz: f9a83213e9471f2521b8a49bb387357bd51c736a8b8a84bc93773d41c779cd17
3
+ metadata.gz: 7ca81fe5baa2ec11cfe60f3bbc228c149c5a8b224a347f0d1d115919c983ceed
4
+ data.tar.gz: '00912619bff74d0cec59da6579259ab18ccc7ac2f9aff4c4f012f5a00423856a'
5
5
  SHA512:
6
- metadata.gz: 50ca23705bf0074517eceaf9627b79a5f7b9bc1bd36d05badb516d88a8910b3b76d7abf34427cd75a78a6443e75a03cab6f4e1a6f6243d0778162d1a7f8b6dbb
7
- data.tar.gz: a294d76a3709fb1030e3fb7acd6539d9b255b2543419fd6fc96903f95b093287a255a50929a2740d69f34db241159b50818b278b36a521f4618f1850a09ed905
6
+ metadata.gz: 17f8d0f99ea5e5f06a6d333e8f31aacabf4e03eaaa44cf9037a83996f0ac3a066618defa9739a568c5f525b620be1247c1eb70a17aa938b72bf0afd982ac6d6b
7
+ data.tar.gz: 47890bb31ab4321c9b8342d64228755e2919339055ad96adb305d3d8dc9658812df3ccddf93714662dc2711a9701fe535a31a2fa99f76c5ba7563cf898b9f960
@@ -3,7 +3,7 @@
3
3
  class UffizziCore::Api::Cli::V1::Cluster::CreateForm < UffizziCore::Cluster
4
4
  include UffizziCore::ApplicationForm
5
5
 
6
- permit :name, :manifest, :creation_source
6
+ permit :name, :manifest, :creation_source, :node_selector
7
7
 
8
8
  validate :check_manifest, if: -> { manifest.present? }
9
9
 
@@ -19,6 +19,7 @@ module UffizziCore::Concerns::Models::Cluster
19
19
  validates :name, presence: true, format: { with: /\A[a-zA-Z0-9-]*\z/ }
20
20
 
21
21
  enumerize :creation_source, in: UffizziCore.cluster_creation_sources, scope: true, predicates: true
22
+ enumerize :node_selector, in: [:gvisor, :vanilla]
22
23
  attribute :creation_source, :string, default: :manual
23
24
  validates :creation_source, presence: true
24
25
  belongs_to :kubernetes_distribution, optional: true
@@ -78,6 +79,7 @@ module UffizziCore::Concerns::Models::Cluster
78
79
  :deploying,
79
80
  :deployed,
80
81
  :scaling_down,
82
+ :scaling_up,
81
83
  :scaled_down,
82
84
  :failed,
83
85
  ], to: :disabled
@@ -4,7 +4,7 @@ class UffizziCore::Controller::CreateCluster::ClusterSerializer < UffizziCore::B
4
4
  include UffizziCore::DependencyInjectionConcern
5
5
  include_module_if_exists('UffizziCore::Controller::CreateCluster::ClusterSerializerModule')
6
6
 
7
- attributes :name, :manifest, :base_ingress_host, :distro, :image
7
+ attributes :name, :manifest, :base_ingress_host, :distro, :image, :node_selector
8
8
 
9
9
  def base_ingress_host
10
10
  managed_dns_zone = controller_settings_service.vcluster_settings_by_vcluster(object).managed_dns_zone
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddNodeSelectorToCluster < ActiveRecord::Migration[6.1]
4
+ def change
5
+ add_column(:uffizzi_core_clusters, :node_selector, :string)
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.4.4'
4
+ VERSION = '2.4.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-29 00:00:00.000000000 Z
12
+ date: 2024-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -1103,6 +1103,7 @@ files:
1103
1103
  - db/migrate/20230824150022_update_name_constraint_to_projects.rb
1104
1104
  - db/migrate/20231009162719_create_uffizzi_core_kubernetes_distributions.rb
1105
1105
  - db/migrate/20231009182412_add_kubernetes_distribution_id_to_uffizzi_core_clusters.rb
1106
+ - db/migrate/20240301200235_add_node_selector_to_cluster.rb
1106
1107
  - db/seeds.rb
1107
1108
  - lib/tasks/uffizzi_core_tasks.rake
1108
1109
  - lib/uffizzi_core.rb