continue?

in lib/gdk/command/import_registry_data.rb [14:27]


      def continue?
        if !config.dig('registry', 'read_only_maintenance_enabled') || config.dig('registry', 'database', 'enabled')
          GDK::Output.error("registry.database.enabled must be set to false and registry.read_only_maintenance_enabled must be set to true to run the registry import")
          false
        else

          GDK::Output.warn("We're about to import the data in your container registry to the new metadata database registry. Once on the metadata registry you must continue to use it. Disabling it after this point causes the registry to lose visibility on all images written to it while the database was active.")

          return true unless GDK::Output.interactive?

          GDK::Output.prompt('Are you sure? [y/N]').match?(/\Ay(?:es)*\z/i)
        end
      end