Skip to content

Commit

Permalink
Migrate to use Orka3 K8s API
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Mar 11, 2025
1 parent 2bde644 commit d0ba524
Show file tree
Hide file tree
Showing 78 changed files with 33,047 additions and 2,064 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/tapioca-exclude-check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@

RBI_ALLOWLIST = %w[
addressable
dry-inflector
faraday
jwt
kube-dsl
octokit
rack-session
rack
rake
sinatra
].freeze

Expand Down
10 changes: 9 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
require:
plugins:
- rubocop-performance
- rubocop-rake

require:
- rubocop-sorbet

AllCops:
Expand All @@ -8,8 +11,11 @@ AllCops:
inherit_mode:
merge:
- Include
- Exclude
Include:
- .*/*.rb
Exclude:
- gen/**/*.rb

Layout/CaseIndentation:
EnforcedStyle: end
Expand Down Expand Up @@ -62,12 +68,14 @@ Sorbet/StrictSigil:
Include:
- src/server.rb
- src/github_client.rb
- rakelib/*.rake
Sorbet/StrongSigil:
Enabled: true
Exclude:
- src/server.rb
- src/github_client.rb
- src/octokit/*.rb
- rakelib/*.rake

Style/AndOr:
EnforcedStyle: always
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ARG RUBY_VERSION
FROM ruby:$RUBY_VERSION-alpine

# Currently need git as some dependencies are defined with git repos at the moment
RUN apk add --no-cache --virtual .build-deps git build-base
RUN apk add --no-cache --virtual .build-deps build-base

WORKDIR /app
COPY .ruby-version Gemfile* ./
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ ruby file: ".ruby-version"

gem "faraday-retry" # for octokit
gem "jwt"
gem "kube-dsl"
gem "octokit"
gem "orka_api_client", git: "https://github.com/Homebrew/orka_api_client"
gem "puma"
gem "rackup"
gem "sinatra"
gem "sorbet-runtime"

group :development, optional: true do
gem "rake"
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-sorbet"
gem "sorbet-static-and-runtime"
gem "tapioca"
Expand Down
22 changes: 10 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
GIT
remote: https://github.com/Homebrew/orka_api_client
revision: 4471624c47a509ff52f956ba716faa385d576dff
specs:
orka_api_client (0.2.1)
faraday (~> 2.0)
faraday-multipart (~> 1.0)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -14,24 +6,24 @@ GEM
ast (2.4.2)
base64 (0.2.0)
benchmark (0.4.0)
dry-inflector (0.3.0)
erubi (1.13.1)
faraday (2.12.2)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-multipart (1.1.0)
multipart-post (~> 2.0)
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
faraday-retry (2.2.1)
faraday (~> 2.0)
json (2.10.1)
jwt (2.10.1)
base64
kube-dsl (0.8.1)
dry-inflector (~> 0.2)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
logger (1.6.6)
multipart-post (2.4.1)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
net-http (0.6.0)
Expand Down Expand Up @@ -61,6 +53,7 @@ GEM
rackup (2.2.1)
rack (>= 3)
rainbow (3.1.1)
rake (13.2.1)
rbi (0.2.4)
prism (~> 1.0)
sorbet-runtime (>= 0.5.9204)
Expand All @@ -82,6 +75,9 @@ GEM
lint_roller (~> 1.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rake (0.7.1)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
rubocop-sorbet (0.8.9)
rubocop (>= 1)
ruby-progressbar (1.13.0)
Expand Down Expand Up @@ -141,12 +137,14 @@ PLATFORMS
DEPENDENCIES
faraday-retry
jwt
kube-dsl
octokit
orka_api_client!
puma
rackup
rake
rubocop
rubocop-performance
rubocop-rake
rubocop-sorbet
sinatra
sorbet-runtime
Expand Down
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require "sorbet-runtime"
1 change: 1 addition & 0 deletions gen/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions gen/orka_kube.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gen/orka_kube/dsl.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gen/orka_kube/dsl/orka.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions gen/orka_kube/dsl/orka/v1.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions gen/orka_kube/dsl/orka/v1/image.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions gen/orka_kube/dsl/orka/v1/image_list.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions gen/orka_kube/dsl/orka/v1/image_spec.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions gen/orka_kube/dsl/orka/v1/image_status.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions gen/orka_kube/dsl/orka/v1/iso.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d0ba524

Please sign in to comment.