From 1081521be8d3111e3651caf01aeaf3f450f13367 Mon Sep 17 00:00:00 2001 From: Predrag Knezevic Date: Fri, 31 Oct 2025 18:47:18 +0100 Subject: [PATCH] Remove `creationTimestamp` and status fields from webhook-operator test resources It presence has forced the BoxCutter applier to believe that resources differ from those existing on the cluster and thus new revisions are created indefinitely on each reconcile when trying to install webhook-operator package. --- ...ader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml | 1 - .../manifests/webhook-operator.clusterserviceversion.yaml | 2 -- .../webhook.operators.coreos.io_webhooktests.yaml | 7 ------- 3 files changed, 10 deletions(-) diff --git a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator-metrics-reader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator-metrics-reader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml index 2394392b6..e03be0c0e 100644 --- a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator-metrics-reader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml +++ b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator-metrics-reader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml @@ -1,7 +1,6 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - creationTimestamp: null name: webhook-operator-metrics-reader rules: - nonResourceURLs: diff --git a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator.clusterserviceversion.yaml b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator.clusterserviceversion.yaml index 902ce0ca9..25b6d6d64 100644 --- a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator.clusterserviceversion.yaml +++ b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook-operator.clusterserviceversion.yaml @@ -14,7 +14,6 @@ metadata: }, "name": "webhooktest-sample" }, - "spec": null }, { "apiVersion": "webhook.operators.coreos.io/v2", @@ -26,7 +25,6 @@ metadata: }, "name": "webhooktest-sample" }, - "spec": null } ] capabilities: Basic Install diff --git a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook.operators.coreos.io_webhooktests.yaml b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook.operators.coreos.io_webhooktests.yaml index 6d82f2c96..7f36de35e 100644 --- a/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook.operators.coreos.io_webhooktests.yaml +++ b/testdata/images/bundles/webhook-operator/v0.0.1/manifests/webhook.operators.coreos.io_webhooktests.yaml @@ -3,7 +3,6 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.18.0 - creationTimestamp: null name: webhooktests.webhook.operators.coreos.io spec: conversion: @@ -256,9 +255,3 @@ spec: storage: false subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: null - storedVersions: null