Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Nov 13, 2023
1 parent 7a9b181 commit 38c253b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ ct: $(BUILD_DIRS)
$(CHART_TEST_IMAGE) \
/bin/sh -c " \
set -x; \
kubectl delete crds --all; \
./hack/scripts/cleanup.sh; \
./hack/scripts/update-chart-dependencies.sh; \
ct $(CT_COMMAND) --debug --validate-maintainers=false $(CT_ARGS) \
"
Expand Down
22 changes: 22 additions & 0 deletions hack/scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Copyright AppsCode Inc. and Contributors
#
# Licensed under the AppsCode Community License 1.0.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -eou pipefail

kubectl patch crds providerconfigs.aws.kubedb.com -p '{"metadata":{"finalizers":null}}' --type=merge || true
kubectl patch crds providerconfigs.gcp.kubedb.com -p '{"metadata":{"finalizers":null}}' --type=merge || true
kubectl patch crds providerconfigs.azure.kubedb.com -p '{"metadata":{"finalizers":null}}' --type=merge || true
kubectl delete crds --all

0 comments on commit 38c253b

Please sign in to comment.