Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix various compilation issues & warnings #133

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD

folder=$(dirname "${0}")
crd=$(basename "${0}" .fixup)
yaml=$(<"${folder}/${crd}.yaml")

properties='.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties'

echo "${yaml}" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"replace\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"keep\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"drop\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"hashmod\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"labelmap\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"labeldrop\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"labelkeep\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"lowercase\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"uppercase\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"keepequal\"))" |
yq "del(${properties}.monitoring.properties.podMonitorMetricRelabelings.items.properties.action.enum[] | select(. == \"dropequal\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"replace\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"keep\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"drop\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"hashmod\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"labelmap\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"labeldrop\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"labelkeep\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"lowercase\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"uppercase\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"keepequal\"))" |
yq "del(${properties}.monitoring.properties.podMonitorRelabelings.items.properties.action.enum[] | select(. == \"dropequal\"))"
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
@@ -0,0 +1 @@
--derive=PartialEq
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
@@ -0,0 +1 @@
--derive=PartialEq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--derive=PartialEq
1 change: 1 addition & 0 deletions crd-catalog/l7mp/stunner/stunner.l7mp.io/v1/udproutes.args
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
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/redhat-developer/service-binding-operator/binding.operators.coreos.com/v1alpha1/bindablekinds.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// BindableKindsStatus defines the observed state of BindableKinds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/volcano-sh/volcano/bus.volcano.sh/v1alpha1/commands.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// TargetObject defines the target object of this command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/cilium/cilium/cilium.io/v2/ciliumendpoints.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};
use std::collections::BTreeMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/cilium/cilium/cilium.io/v2alpha1/ciliumendpointslices.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// CoreCiliumEndpoint is slim version of status of CiliumEndpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/grafana/loki/config.grafana.com/v1/projectconfigs.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};
use std::collections::BTreeMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/karmada-io/karmada/config.karmada.io/v1alpha1/resourceinterpreterwebhookconfigurations.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// ResourceInterpreterWebhook describes the webhook as well as the resources and operations it applies to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/kubewharf/kubeadmiral/core.kubeadmiral.io/v1alpha1/clustercollectedstatuses.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};
use std::collections::HashMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/kubewharf/kubeadmiral/core.kubeadmiral.io/v1alpha1/clusterpropagatedversions.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// PropagatedVersionStatus defines the observed state of PropagatedVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/kubewharf/kubeadmiral/core.kubeadmiral.io/v1alpha1/collectedstatuses.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};
use std::collections::HashMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// kopium command: kopium --docs --filename=./crd-catalog/kubewharf/kubeadmiral/core.kubeadmiral.io/v1alpha1/propagatedversions.yaml --derive=Default --derive=PartialEq
// kopium version: 0.16.5

use kube::CustomResource;

use serde::{Serialize, Deserialize};

/// PropagatedVersionStatus defines the observed state of PropagatedVersion
Expand Down
Loading