Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiamokevnina committed Mar 15, 2024
2 parents c02d618 + 025c7be commit 9ffa13a
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: core
specs:
uffizzi_core (2.4.6)
uffizzi_core (2.4.7)
aasm
actionpack (~> 6.1.0)
active_model_serializers
Expand Down Expand Up @@ -111,7 +111,7 @@ GEM
ast (2.4.2)
awesome_print (1.9.2)
aws-eventstream (1.3.0)
aws-partitions (1.895.0)
aws-partitions (1.897.0)
aws-sdk-core (3.191.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand Down
2 changes: 1 addition & 1 deletion core/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
uffizzi_core (2.4.6)
uffizzi_core (2.4.7)
aasm
actionpack (~> 6.1.0)
active_model_serializers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class UffizziCore::Api::Cli::V1::Cluster::CreateForm < UffizziCore::Cluster
include UffizziCore::ApplicationForm

permit :name, :manifest, :creation_source, :node_selector
permit :name, :manifest, :creation_source

validate :check_manifest, if: -> { manifest.present? }

Expand Down
1 change: 0 additions & 1 deletion core/app/lib/uffizzi_core/concerns/models/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module UffizziCore::Concerns::Models::Cluster
validates :name, presence: true, format: { with: /\A[a-zA-Z0-9-]*\z/ }

enumerize :creation_source, in: UffizziCore.cluster_creation_sources, scope: true, predicates: true
enumerize :node_selector, in: [:gvisor, :vanilla]
attribute :creation_source, :string, default: :manual
validates :creation_source, presence: true
belongs_to :kubernetes_distribution, optional: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UffizziCore::Controller::CreateCluster::ClusterSerializer < UffizziCore::B
include UffizziCore::DependencyInjectionConcern
include_module_if_exists('UffizziCore::Controller::CreateCluster::ClusterSerializerModule')

attributes :name, :manifest, :base_ingress_host, :distro, :image, :node_selector
attributes :name, :manifest, :base_ingress_host, :distro, :image

def base_ingress_host
managed_dns_zone = controller_settings_service.vcluster_settings_by_vcluster(object).managed_dns_zone
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class DeleteNodeSelectorFromCluster < ActiveRecord::Migration[6.1]
def change
remove_column(:uffizzi_core_clusters, :node_selector, :string)
end
end
2 changes: 1 addition & 1 deletion core/lib/uffizzi_core/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module UffizziCore
VERSION = '2.4.6'
VERSION = '2.4.7'
end
3 changes: 1 addition & 2 deletions core/test/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_03_01_200235) do
ActiveRecord::Schema.define(version: 2024_03_14_170113) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -85,7 +85,6 @@
t.string "host"
t.string "creation_source"
t.integer "kubernetes_distribution_id"
t.string "node_selector"
t.index ["project_id"], name: "index_cluster_on_project_id"
end

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

# This migration comes from uffizzi_core (originally 20240314170113)
class DeleteNodeSelectorFromCluster < ActiveRecord::Migration[6.1]
def change
remove_column(:uffizzi_core_clusters, :node_selector, :string)
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_03_01_200916) do
ActiveRecord::Schema.define(version: 2024_03_14_170425) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -85,7 +85,6 @@
t.string "host"
t.string "creation_source"
t.integer "kubernetes_distribution_id"
t.string "node_selector"
t.index ["project_id"], name: "index_cluster_on_project_id"
end

Expand Down

0 comments on commit 9ffa13a

Please sign in to comment.