Skip to content

Implement cel validation derive(Validated) macro for generated CRDs #3559

Implement cel validation derive(Validated) macro for generated CRDs

Implement cel validation derive(Validated) macro for generated CRDs #3559

Triggered via pull request November 24, 2024 19:01
Status Failure
Total duration 1m 46s
Artifacts

clippy.yml

on: pull_request
clippy_nightly
49s
clippy_nightly
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 8 warnings
cannot find type `Error` in this scope: kube-core/src/validation.rs#L106
error[E0412]: cannot find type `Error` in this scope --> kube-core/src/validation.rs:106:69 | 106 | pub fn validate(s: &mut Schema, rules: Vec<Rule>) -> Result<Schema, Error> { | ^^^^^ not found in this scope | help: consider importing one of these items | 3 + use crate::request::Error; | 3 + use std::error::Error; | 3 + use std::fmt::Error; | 3 + use std::io::Error; | and 7 other candidates
clippy_nightly
Clippy has exited with exit code 101
unused import: `std::collections::BTreeMap`: kube-derive/src/custom_resource.rs#L3
warning: unused import: `std::collections::BTreeMap` --> kube-derive/src/custom_resource.rs:3:5 | 3 | use std::collections::BTreeMap; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused imports: `FromAttributes` and `path_to_string`: kube-derive/src/custom_resource.rs#L7
warning: unused imports: `FromAttributes` and `path_to_string` --> kube-derive/src/custom_resource.rs:7:18 | 7 | util::{self, path_to_string, IdentString}, | ^^^^^^^^^^^^^^ 8 | FromAttributes, FromDeriveInput, FromField, FromMeta, | ^^^^^^^^^^^^^^
unused imports: `Attribute`, `ExprCall`, and `Stmt`: kube-derive/src/custom_resource.rs#L13
warning: unused imports: `Attribute`, `ExprCall`, and `Stmt` --> kube-derive/src/custom_resource.rs:13:36 | 13 | parse_quote, spanned::Spanned, Attribute, Data, DeriveInput, Expr, ExprCall, Path, Stmt, Type, Visibility, | ^^^^^^^^^ ^^^^^^^^ ^^^^
unused import: `spanned::Spanned`: kube-derive/src/custom_resource.rs#L13
warning: unused import: `spanned::Spanned` --> kube-derive/src/custom_resource.rs:13:18 | 13 | parse_quote, spanned::Spanned, Attribute, Data, DeriveInput, Expr, ExprCall, Path, Stmt, Type, Visibility, | ^^^^^^^^^^^^^^^^
unused import: `std::collections::BTreeMap`: kube-derive/src/custom_resource.rs#L3
warning: unused import: `std::collections::BTreeMap` --> kube-derive/src/custom_resource.rs:3:5 | 3 | use std::collections::BTreeMap; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused imports: `FromAttributes` and `path_to_string`: kube-derive/src/custom_resource.rs#L7
warning: unused imports: `FromAttributes` and `path_to_string` --> kube-derive/src/custom_resource.rs:7:18 | 7 | util::{self, path_to_string, IdentString}, | ^^^^^^^^^^^^^^ 8 | FromAttributes, FromDeriveInput, FromField, FromMeta, | ^^^^^^^^^^^^^^
unused imports: `Attribute`, `ExprCall`, and `Stmt`: kube-derive/src/custom_resource.rs#L13
warning: unused imports: `Attribute`, `ExprCall`, and `Stmt` --> kube-derive/src/custom_resource.rs:13:36 | 13 | parse_quote, spanned::Spanned, Attribute, Data, DeriveInput, Expr, ExprCall, Path, Stmt, Type, Visibility, | ^^^^^^^^^ ^^^^^^^^ ^^^^
unused import: `spanned::Spanned`: kube-derive/src/custom_resource.rs#L13
warning: unused import: `spanned::Spanned` --> kube-derive/src/custom_resource.rs:13:18 | 13 | parse_quote, spanned::Spanned, Attribute, Data, DeriveInput, Expr, ExprCall, Path, Stmt, Type, Visibility, | ^^^^^^^^^^^^^^^^