diff --git a/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/fixup.sh b/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/fixup.sh index 2b42b1563..0a30afc9b 100755 --- a/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/fixup.sh +++ b/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/fixup.sh @@ -33,8 +33,29 @@ yq --inplace "del(${properties}.remoteWrite.items.properties.writeRelabelConfigs yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"node\"))" \ "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"service\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"pod\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"endpoints\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"endpointslice\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.role.enum[] | select(. == \"ingress\"))" \ + "${project}/scrapeconfigs.yaml" + yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"node\"))" \ "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"service\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"pod\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"endpoints\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"endpointslice\"))" \ + "${project}/scrapeconfigs.yaml" +yq --inplace "del(${properties}.kubernetesSDConfigs.items.properties.selectors.items.properties.role.enum[] | select(. == \"ingress\"))" \ + "${project}/scrapeconfigs.yaml" yq --inplace "del(${properties}.metricRelabelings.items.properties.action.enum[] | select(. == \"replace\"))" \ "${project}/scrapeconfigs.yaml" diff --git a/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/scrapeconfigs.yaml b/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/scrapeconfigs.yaml index abb511307..4cd791570 100644 --- a/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/scrapeconfigs.yaml +++ b/crd-catalog/prometheus-operator/prometheus-operator/monitoring.coreos.com/v1alpha1/scrapeconfigs.yaml @@ -829,15 +829,10 @@ spec: enum: - Node - Service - - service - Pod - - pod - Endpoints - - endpoints - EndpointSlice - - endpointslice - Ingress - - ingress type: string selectors: description: Selector to select objects. @@ -853,15 +848,10 @@ spec: enum: - Node - Service - - service - Pod - - pod - Endpoints - - endpoints - EndpointSlice - - endpointslice - Ingress - - ingress type: string required: - role diff --git a/kube-custom-resources-rs/src/monitoring_coreos_com_v1alpha1/scrapeconfigs.rs b/kube-custom-resources-rs/src/monitoring_coreos_com_v1alpha1/scrapeconfigs.rs index 957ef8815..b412104c8 100644 --- a/kube-custom-resources-rs/src/monitoring_coreos_com_v1alpha1/scrapeconfigs.rs +++ b/kube-custom-resources-rs/src/monitoring_coreos_com_v1alpha1/scrapeconfigs.rs @@ -881,19 +881,9 @@ pub struct ScrapeConfigKubernetesSdConfigs { pub enum ScrapeConfigKubernetesSdConfigsRole { Node, Service, - #[serde(rename = "service")] - Service, - Pod, - #[serde(rename = "pod")] Pod, Endpoints, - #[serde(rename = "endpoints")] - Endpoints, EndpointSlice, - #[serde(rename = "endpointslice")] - Endpointslice, - Ingress, - #[serde(rename = "ingress")] Ingress, } @@ -913,19 +903,9 @@ pub struct ScrapeConfigKubernetesSdConfigsSelectors { pub enum ScrapeConfigKubernetesSdConfigsSelectorsRole { Node, Service, - #[serde(rename = "service")] - Service, - Pod, - #[serde(rename = "pod")] Pod, Endpoints, - #[serde(rename = "endpoints")] - Endpoints, EndpointSlice, - #[serde(rename = "endpointslice")] - Endpointslice, - Ingress, - #[serde(rename = "ingress")] Ingress, }