Skip to content

Commit 01632e6

Browse files
adwk67Techassi
andauthored
feat(stackabletctl): Support OCI registries (#344)
* feat: Support OCI registries * updated comments and completions * try and avoid library conflicts * bump rust 1.83.0 and revert --locked directive * elide explicit lifetime * replace bool with enum * removed unused function * cleaned up some comments, removed Tgz case * added comment and changelog entry * fix panic when arguments evaluated eagerly * list and describe metadata from oci * Update rust/stackablectl/src/cmds/demo.rs Co-authored-by: Techassi <[email protected]> * replace Nexus with index-based yaml refs * Update rust/stackable-cockpit/src/oci.rs Co-authored-by: Techassi <[email protected]> * introduce constant and doc comments * move url def into a trait * linting * added comment * moved chart-source to CommonRepoArgs * updated changelog --------- Co-authored-by: Techassi <[email protected]>
1 parent 1e5c91a commit 01632e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1079
-117
lines changed

.github/workflows/pr_cockpit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- "go.sum"
1616

1717
env:
18-
RUST_VERSION: 1.80.1
18+
RUST_VERSION: 1.83.0
1919
GO_VERSION: '^1.22.5'
2020
CARGO_TERM_COLOR: always
2121
CARGO_INCREMENTAL: "0"

.github/workflows/pr_general.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Pull Request General
44
on: workflow_call
55

66
env:
7-
RUST_VERSION: 1.80.1
7+
RUST_VERSION: 1.83.0
88
GO_VERSION: '^1.22.5'
99
CARGO_TERM_COLOR: always
1010
CARGO_INCREMENTAL: "0"

.github/workflows/pr_pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
CARGO_TERM_COLOR: always
9-
RUST_TOOLCHAIN_VERSION: "1.80.1"
9+
RUST_TOOLCHAIN_VERSION: "1.83.0"
1010
HADOLINT_VERSION: "v1.17.6"
1111
NIX_VERSION: "2.25.2"
1212

.github/workflows/pr_stackablectl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- "extra/**"
1515

1616
env:
17-
RUST_VERSION: 1.80.1
17+
RUST_VERSION: 1.83.0
1818
GO_VERSION: '^1.22.5'
1919
CARGO_TERM_COLOR: always
2020
CARGO_INCREMENTAL: "0"

.github/workflows/release_stackablectl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "stackablectl-[0-9]+.[0-9]+.[0-9]+**"
88

99
env:
10-
RUST_VERSION: 1.80.1
10+
RUST_VERSION: 1.83.0
1111
CARGO_TERM_COLOR: always
1212
CARGO_INCREMENTAL: "0"
1313
CARGO_PROFILE_DEV_DEBUG: "0"

Cargo.lock

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ phf = "0.11"
3838
phf_codegen = "0.11"
3939
rand = "0.8"
4040
regex = "1.10"
41-
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
41+
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
4242
rstest = "0.22"
4343
semver = { version = "1.0", features = ["serde"] }
4444
serde = { version = "1.0", features = ["derive"] }
@@ -54,6 +54,7 @@ tower-http = { version = "0.5", features = ["validate-request"] }
5454
tracing = "0.1"
5555
tracing-subscriber = "0.3"
5656
url = "2.5"
57+
urlencoding = "2.1.3"
5758
utoipa = { version = "4.2", features = ["indexmap"] }
5859
utoipa-swagger-ui = { version = "7.1", features = ["axum"] }
5960
uuid = { version = "1.10", features = ["v4"] }

docs/modules/stackablectl/partials/commands/cache.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,13 @@ Helm repository options:
7676
Provide a custom Helm dev repository URL
7777
7878
[default: https://repo.stackable.tech/repository/helm-dev/]
79+
80+
--chart-source <CHART_SOURCE>
81+
Source the charts from either a OCI registry or from index.yaml-based repositories.
82+
83+
[default: oci]
84+
85+
Possible values:
86+
- oci: OCI registry
87+
- repo: index.yaml-based repositories: resolution (dev, test, stable) is based on the version and thus will be operator-specific
7988
----

docs/modules/stackablectl/partials/commands/completions.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,13 @@ Helm repository options:
7979
Provide a custom Helm dev repository URL
8080
8181
[default: https://repo.stackable.tech/repository/helm-dev/]
82+
83+
--chart-source <CHART_SOURCE>
84+
Source the charts from either a OCI registry or from index.yaml-based repositories.
85+
86+
[default: oci]
87+
88+
Possible values:
89+
- oci: OCI registry
90+
- repo: index.yaml-based repositories: resolution (dev, test, stable) is based on the version and thus will be operator-specific
8291
----

0 commit comments

Comments
 (0)