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 Apr 26, 2024
1 parent 8eb7b36 commit f49652d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 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/image-automation-controller/image.toolkit.fluxcd.io/v1beta2/imageupdateautomations.yaml --derive=Default --derive=PartialEq
// kopium command: kopium --docs --filename=./crd-catalog/fluxcd/image-automation-controller/image.toolkit.fluxcd.io/v1beta2/imageupdateautomations.yaml --derive=PartialEq
// kopium version: 0.18.0

use kube::CustomResource;
Expand All @@ -8,7 +8,7 @@ use std::collections::BTreeMap;
use k8s_openapi::apimachinery::pkg::apis::meta::v1::Condition;

/// ImageUpdateAutomationSpec defines the desired state of ImageUpdateAutomation
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, PartialEq)]
#[kube(group = "image.toolkit.fluxcd.io", version = "v1beta2", kind = "ImageUpdateAutomation", plural = "imageupdateautomations")]
#[kube(namespaced)]
#[kube(status = "ImageUpdateAutomationStatus")]
Expand Down Expand Up @@ -44,7 +44,7 @@ pub struct ImageUpdateAutomationSpec {
/// GitSpec contains all the git-specific definitions. This is
/// technically optional, but in practice mandatory until there are
/// other kinds of source allowed.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGit {
/// Checkout gives the parameters for cloning the git repository,
/// ready to make changes. If not present, the `spec.ref` field from the
Expand All @@ -63,7 +63,7 @@ pub struct ImageUpdateAutomationGit {
/// Checkout gives the parameters for cloning the git repository,
/// ready to make changes. If not present, the `spec.ref` field from the
/// referenced `GitRepository` or its default will be used.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCheckout {
/// Reference gives a branch, tag or commit to clone from the Git
/// repository.
Expand All @@ -73,7 +73,7 @@ pub struct ImageUpdateAutomationGitCheckout {

/// Reference gives a branch, tag or commit to clone from the Git
/// repository.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCheckoutRef {
/// Branch to check out, defaults to 'master' if no other field is defined.
#[serde(default, skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -101,7 +101,7 @@ pub struct ImageUpdateAutomationGitCheckoutRef {
}

/// Commit specifies how to commit to the git repository.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCommit {
/// Author gives the email and optionally the name to use as the
/// author of commits.
Expand All @@ -117,7 +117,7 @@ pub struct ImageUpdateAutomationGitCommit {

/// Author gives the email and optionally the name to use as the
/// author of commits.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCommitAuthor {
/// Email gives the email to provide when making a commit.
pub email: String,
Expand All @@ -127,7 +127,7 @@ pub struct ImageUpdateAutomationGitCommitAuthor {
}

/// SigningKey provides the option to sign commits with a GPG key
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCommitSigningKey {
/// SecretRef holds the name to a secret that contains a 'git.asc' key
/// corresponding to the ASCII Armored file containing the GPG signing
Expand All @@ -141,7 +141,7 @@ pub struct ImageUpdateAutomationGitCommitSigningKey {
/// corresponding to the ASCII Armored file containing the GPG signing
/// keypair as the value. It must be in the same namespace as the
/// ImageUpdateAutomation.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitCommitSigningKeySecretRef {
/// Name of the referent.
pub name: String,
Expand All @@ -150,7 +150,7 @@ pub struct ImageUpdateAutomationGitCommitSigningKeySecretRef {
/// Push specifies how and where to push commits made by the
/// automation. If missing, commits are pushed (back) to
/// `.spec.checkout.branch` or its default.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationGitPush {
/// Branch specifies that commits should be pushed to the branch
/// named. The branch is created using `.spec.checkout.branch` as the
Expand All @@ -173,7 +173,7 @@ pub struct ImageUpdateAutomationGitPush {

/// PolicySelector allows to filter applied policies based on labels.
/// By default includes all policies in namespace.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationPolicySelector {
/// matchExpressions is a list of label selector requirements. The requirements are ANDed.
#[serde(default, skip_serializing_if = "Option::is_none", rename = "matchExpressions")]
Expand All @@ -187,7 +187,7 @@ pub struct ImageUpdateAutomationPolicySelector {

/// A label selector requirement is a selector that contains values, a key, and an operator that
/// relates the key and values.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationPolicySelectorMatchExpressions {
/// key is the label key that the selector applies to.
pub key: String,
Expand All @@ -204,7 +204,7 @@ pub struct ImageUpdateAutomationPolicySelectorMatchExpressions {

/// SourceRef refers to the resource giving access details
/// to a git repository.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationSourceRef {
/// API version of the referent.
#[serde(default, skip_serializing_if = "Option::is_none", rename = "apiVersion")]
Expand All @@ -228,7 +228,7 @@ pub enum ImageUpdateAutomationSourceRefKind {
/// Update gives the specification for how to update the files in
/// the repository. This can be left empty, to use the default
/// value.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationUpdate {
/// Path to the directory containing the manifests to be updated.
/// Defaults to 'None', which translates to the root path
Expand All @@ -248,7 +248,7 @@ pub enum ImageUpdateAutomationUpdateStrategy {
}

/// ImageUpdateAutomationStatus defines the observed state of ImageUpdateAutomation
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationStatus {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub conditions: Option<Vec<Condition>>,
Expand Down Expand Up @@ -284,7 +284,7 @@ pub struct ImageUpdateAutomationStatus {

/// ObservedPolicies is the list of observed ImagePolicies that were
/// considered by the ImageUpdateAutomation update process.
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ImageUpdateAutomationStatusObservedPolicies {
/// Name is the bare image's name.
#[serde(default, skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit f49652d

Please sign in to comment.