uffizzi_core 2.4.5 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de770239e2d7ad289688025adc9ef1138600a603022ce0411c52e5b6ff7db9f6
4
- data.tar.gz: 25dc620adba8b17778713735e1555d7b334e03cf8d548ed42f9206416ef72da7
3
+ metadata.gz: 7ca81fe5baa2ec11cfe60f3bbc228c149c5a8b224a347f0d1d115919c983ceed
4
+ data.tar.gz: '00912619bff74d0cec59da6579259ab18ccc7ac2f9aff4c4f012f5a00423856a'
5
5
  SHA512:
6
- metadata.gz: a61eaa2047260adf43bee8a75a62d9c8088677dcc5db29f8a073c36871ea784a777da245a21dee7b6c99aead6b75105e4f0f66d4b893f276f542fef9358c626f
7
- data.tar.gz: 673f8da809540ace351849be908e0ee2c4d3e3c1d7cb03fd9ed56145a67738bf0175162bbe18e8724d21a34a2415e5c773d3334a07c47e5647dda84fd7ceaf0e
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
@@ -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.5'
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.5
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: 2024-02-01 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