Skip to content

Commit a9abb6d

Browse files
authored
Merge pull request #75 from DenktMit-eG/fix/licenses
Fix/licenses
2 parents dd1e4c9 + 06c42b6 commit a9abb6d

7 files changed

Lines changed: 29 additions & 38 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 11 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ authors = [
99
]
1010
repository = "https://github.com/DenktMit-eG/rustcloak-operator"
1111
readme = "README.md"
12-
license = "BSD-2-Clause"
12+
license = "MIT"
1313
edition = "2024"
1414

1515
[workspace.dependencies]
1616
kube = { version = "1.1.0", default-features = false }
1717
k8s-openapi = { version = "0.25.0", features = ["latest", "schemars"] }
1818
clap = { version = "4.5.40", features = ["derive", "help", "std", "string"], default-features = false }
1919
serde = { version = "1.0.219", features = ["derive"] }
20-
keycloak-types = { git = "https://github.com/Gottox/keycloak-client.rs" }
20+
keycloak-types = { git = "https://github.com/Gottox/keycloak-client.rs", rev = "5314c46" }
2121
#schemars = { version = "0.9.0", features = ["chrono04", "either1"] }
2222
schemars = { version = "0.8.22", features = ["chrono", "either"] }
2323

LICENSE

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
Copyright (c) 2025, Enno Boland <mail@eboland.de>
22

3-
Redistribution and use in source and binary forms, with or without
4-
modification, are permitted provided that the following conditions are met:
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
59

6-
* Redistributions of source code must retain the above copyright notice, this
7-
list of conditions and the following disclaimer.
8-
* Redistributions in binary form must reproduce the above copyright
9-
notice, this list of conditions and the following disclaimer in the
10-
documentation and/or other materials provided with the distribution.
11-
12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
13-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
16-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
2212

13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

rustcloak-crd/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version.workspace = true
44
authors.workspace = true
55
repository.workspace = true
66
readme.workspace = true
7-
license = "BSD-2-Clause"
7+
license = "MIT"
88
edition.workspace = true
99

1010
[dependencies]

rustcloak-operator/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ either = { version = "1.15.0", features = ["serde"] }
2626
keycloak-crd = { git = "https://github.com/withlazers/keycloak-crd.git", branch = "rustcloak" }
2727
randstr = { git = "https://github.com/Gottox/randstr", branch = "main" }
2828
structured-logger = "1.0.4"
29-
case_style = "0.2.1"
29+
heck = "0.5"
3030
rustcloak-crd = { path = "../rustcloak-crd" }
31-
keycloak-client = { git = "https://github.com/Gottox/keycloak-client.rs" }
31+
keycloak-client = { git = "https://github.com/Gottox/keycloak-client.rs", rev = "5314c46" }
3232
#keycloak-client = { path = "../../keycloak-client.rs/keycloak-client" }
3333
shorter-bounds = "0.1.1"
3434
metrics = "0.24"

rustcloak-operator/src/controller/legacy/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::app_id;
44
use crate::error::Error;
55
use crate::util::ApiExt;
66
use crate::util::ApiFactory;
7-
use case_style::CaseStyle;
7+
use heck::ToLowerCamelCase;
88
use either::Either;
99
use k8s_openapi::NamespaceResourceScope;
1010
use k8s_openapi::apimachinery::pkg::apis::meta::v1::LabelSelector;
@@ -30,9 +30,9 @@ fn find_variants(
3030
annotations: &BTreeMap<String, String>,
3131
snake_case: &str,
3232
) -> Option<String> {
33-
let style = CaseStyle::from_snakecase(snake_case);
33+
let camel_case = snake_case.to_lower_camel_case();
3434
let variants =
35-
[snake_case, &style.to_camelcase()].map(|x| format!(app_id!("{}"), x));
35+
[snake_case, &camel_case].map(|x| format!(app_id!("{}"), x));
3636

3737
annotations
3838
.iter()

utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ edition.workspace = true
1111
clap = { workspace = true }
1212
rustcloak-crd = { path = "../rustcloak-crd" }
1313
serde_yaml = "0.9.34"
14-
crd2md = { git = "https://github.com/withlazers/crd2md.git" }
14+
crd2md = { git = "https://github.com/withlazers/crd2md.git", rev = "67776e4" }
1515
kube = { version = "1.1.0", default-features = false }

0 commit comments

Comments
 (0)