Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed May 3, 2024
1 parent 7202181 commit aa4fc42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium --docs --filename=./crd-catalog/fluxcd/source-controller/source.toolkit.fluxcd.io/v1/helmcharts.yaml --derive=Default --derive=PartialEq
// kopium command: kopium --docs --filename=./crd-catalog/fluxcd/source-controller/source.toolkit.fluxcd.io/v1/helmcharts.yaml --derive=PartialEq
// kopium version: 0.19.0

#[allow(unused_imports)]
Expand All @@ -12,12 +12,11 @@ mod prelude {
use self::prelude::*;

/// HelmChartSpec specifies the desired state of a Helm chart.
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, PartialEq)]
#[kube(group = "source.toolkit.fluxcd.io", version = "v1", kind = "HelmChart", plural = "helmcharts")]
#[kube(namespaced)]
#[kube(status = "HelmChartStatus")]
#[kube(schema = "disabled")]
#[kube(derive="Default")]
#[kube(derive="PartialEq")]
pub struct HelmChartSpec {
/// Chart is the name or path the Helm chart is available at in the
Expand Down Expand Up @@ -72,7 +71,7 @@ pub enum HelmChartReconcileStrategy {
}

/// SourceRef is the reference to the Source the chart is available at.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartSourceRef {
/// APIVersion of the referent.
#[serde(default, skip_serializing_if = "Option::is_none", rename = "apiVersion")]
Expand All @@ -97,7 +96,7 @@ pub enum HelmChartSourceRefKind {
/// whether OCI image is authentic.
/// This field is only supported when using HelmRepository source with spec.type 'oci'.
/// Chart dependencies, which are not bundled in the umbrella chart artifact, are not verified.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartVerify {
/// MatchOIDCIdentity specifies the identity matching criteria to use
/// while verifying an OCI artifact which was signed using Cosign keyless
Expand All @@ -115,7 +114,7 @@ pub struct HelmChartVerify {

/// OIDCIdentityMatch specifies options for verifying the certificate identity,
/// i.e. the issuer and the subject of the certificate.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartVerifyMatchOidcIdentity {
/// Issuer specifies the regex pattern to match against to verify
/// the OIDC issuer in the Fulcio certificate. The pattern must be a
Expand All @@ -142,14 +141,14 @@ pub enum HelmChartVerifyProvider {

/// SecretRef specifies the Kubernetes Secret containing the
/// trusted public keys.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartVerifySecretRef {
/// Name of the referent.
pub name: String,
}

/// HelmChartStatus records the observed state of the HelmChart.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartStatus {
/// Artifact represents the output of the last successful reconciliation.
#[serde(default, skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -187,7 +186,7 @@ pub struct HelmChartStatus {
}

/// Artifact represents the output of the last successful reconciliation.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HelmChartStatusArtifact {
/// Digest is the digest of the file in the form of '<algorithm>:<checksum>'.
#[serde(default, skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit aa4fc42

Please sign in to comment.