Skip to content

Commit

Permalink
chore: dump nanocl_utils to 0.2.3 and update openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed Oct 5, 2023
1 parent d3def2d commit 57b975f
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/nanocl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ termios = "0.3.3"
liquid = "0.26.1"
regex = "1.9.3"
nanocld_client = { version = "0.10.0", features = ["tokio"] }
nanocl_utils = { version = "0.2.1", features = [
nanocl_utils = { version = "0.2.3", features = [
"unix",
"io_error",
"http_client_error",
Expand Down
2 changes: 1 addition & 1 deletion bin/nanocld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ nanocld_client = { version = "0.10.0", features = ["tokio"] }
openssl = { version = "0.10.56", features = ["vendored"] }
metrsd_client = "0.3.0"
nanocl_stubs = { version = "0.10.0", features = ["serde"] }
nanocl_utils = { version = "0.2.1", features = [
nanocl_utils = { version = "0.2.3", features = [
"unix",
"ntex",
"logger",
Expand Down
4 changes: 4 additions & 0 deletions bin/nanocld/specs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4796,6 +4796,10 @@ components:
nullable: true
Target:
$ref: '#/components/schemas/StreamTarget'
ProxySsl:
oneOf:
- $ref: '#/components/schemas/ProxySslConfig'
- type: string
ProxySslConfig:
type: object
required:
Expand Down
3 changes: 2 additions & 1 deletion bin/nanocld/src/services/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ use nanocl_stubs::proxy::{
ResourceProxyRule, ProxyRuleHttp, ProxyHttpLocation, ProxySslConfig,
ProxyRuleStream, StreamTarget, ProxyStreamProtocol, UriTarget,
LocationTarget, HttpTarget, UrlRedirect, UpstreamTarget, ProxyRule,
UnixTarget,
UnixTarget, ProxySsl,
};
use nanocl_stubs::state::{
StateMeta, StateCargo, StateVirtualMachine, StateResource, StateDeployment,
Expand Down Expand Up @@ -448,6 +448,7 @@ impl Modify for VersionModifier {
UpstreamTarget,
UnixTarget,
UriTarget,
ProxySsl,
// DnsRules
ResourceDnsRule,
DnsEntry,
Expand Down
2 changes: 1 addition & 1 deletion bin/ncdns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ futures = "0.3.26"
serde = { version = "1.0.183", features = ["derive"] }
serde_json = "1.0.107"
nanocld_client = "0.10.0"
nanocl_utils = { version = "0.2.1", features = [
nanocl_utils = { version = "0.2.3", features = [
"logger",
"io_error",
"http_error",
Expand Down
2 changes: 1 addition & 1 deletion bin/ncproxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ notify = { version = "6.1.1", default-features = false, features = [
"macos_kqueue",
] }
nanocld_client = { version = "0.10.0" }
nanocl_utils = { version = "0.2.1", features = [
nanocl_utils = { version = "0.2.3", features = [
"ntex",
"logger",
"io_error",
Expand Down
2 changes: 1 addition & 1 deletion bin/ncvpnkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ futures-util = "0.3.28"
ntex = { version = "0.7.5", features = ["tokio"] }
vpnkitrc = { version = "0.1.1", features = ["tokio"] }
nanocld_client = { version = "0.10.0" }
nanocl_utils = { version = "0.2.1", features = ["logger"] }
nanocl_utils = { version = "0.2.3", features = ["logger"] }
serde_json = "1.0.107"
2 changes: 1 addition & 1 deletion crates/nanocld_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ntex = { version = "0.7.5", features = ["openssl"] }
serde = { version = "1.0.183", features = ["derive"] }
bollard-next = { version = "0.15.3" }
nanocl_stubs = { version = "0.10.0", features = ["serde"] }
nanocl_utils = { version = "0.2.1", features = [
nanocl_utils = { version = "0.2.3", features = [
"io_error",
"http_client_error",
] }
Expand Down
33 changes: 18 additions & 15 deletions examples/custom_resource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ ApiVersion: v0.10
# See all options:
# https://docs.next-hat.com/references/nanocl/resource
Resources:
- Name: VpnUser
Kind: Kind
Version: v0.1
Data:
Url: vpn.nanocl.internal
Schema:
title: VpnUser
description: Create a new vpn user
type: object
required:
- Username
properties:
Username:
description: Cargo to watch for changes
type: string
- Name: VpnUser
Kind: Kind
Version: v0.1
Data:
Url: vpn.nanocl.internal
Schema:
title: VpnUser
description: Create a new vpn user
type: object
required:
- Username
properties:
Username:
description: Username for the vpn user
type: string
Password:
description: Password for the vpn user
type: string

0 comments on commit 57b975f

Please sign in to comment.