Skip to content

Commit

Permalink
dataImportCronTemplates: Remove CentOS 7 & stream 8
Browse files Browse the repository at this point in the history
Both releases are now EOL with their associated containerdisks also
deprecated ahead of removal in the near future:

kubevirt/containerdisks#154
kubevirt/containerdisks#152

Conflicts:
  assets/dataImportCronTemplates/dataImportCronTemplates.yaml
  tests/func-tests/golden_image_test.go
  hack/check_golden_images.sh

NOTE: The conflict is due to commits 2e339b9, ffe5abc
and c70bb07 missing in release-1.9.

Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
Co-authored-by: Felix Matouschek <fmatouschek@redhat.com>
  • Loading branch information
lyarwood and 0xFelix committed Aug 26, 2024
1 parent c5eb9c3 commit cabd268
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
40 changes: 0 additions & 40 deletions assets/dataImportCronTemplates/dataImportCronTemplates.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
- metadata:
annotations:
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
name: centos-stream8-image-cron
labels:
instancetype.kubevirt.io/default-preference: centos.8.stream
instancetype.kubevirt.io/default-instancetype: server.medium
spec:
schedule: "0 */12 * * *"
template:
spec:
source:
registry:
url: docker://quay.io/containerdisks/centos-stream:8
storage:
resources:
requests:
storage: 10Gi
garbageCollect: Outdated
managedDataSource: centos-stream8
- metadata:
annotations:
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
Expand Down Expand Up @@ -58,23 +38,3 @@
storage: 5Gi
garbageCollect: Outdated
managedDataSource: fedora
- metadata:
annotations:
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
name: centos-7-image-cron
labels:
instancetype.kubevirt.io/default-preference: centos.7
instancetype.kubevirt.io/default-instancetype: server.medium
spec:
schedule: "0 */12 * * *"
template:
spec:
source:
registry:
url: docker://quay.io/containerdisks/centos:7-2009
storage:
resources:
requests:
storage: 10Gi
garbageCollect: Outdated
managedDataSource: centos7
4 changes: 0 additions & 4 deletions hack/check_golden_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@ if [[ $(${KUBECTL_BINARY} get ssp -n ${INSTALLED_NAMESPACE}) ]]; then
./hack/retry.sh 10 3 "[[ -z '$(${KUBECTL_BINARY} get imageStream -n ${IMAGES_NS} centos8 -o jsonpath='{.metadata.labels.test-label}')' ]]" "${KUBECTL_BINARY} get imageStream -n ${IMAGES_NS} centos8 -o yaml"

${KUBECTL_BINARY} get hco -n "${INSTALLED_NAMESPACE}" kubevirt-hyperconverged -o jsonpath='{.spec.featureGates.enableCommonBootImageImport}'
${KUBECTL_BINARY} get ssp -n "${INSTALLED_NAMESPACE}" ssp-kubevirt-hyperconverged -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="centos-stream8-image-cron")'
${KUBECTL_BINARY} get ssp -n "${INSTALLED_NAMESPACE}" ssp-kubevirt-hyperconverged -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="centos-stream9-image-cron")'
${KUBECTL_BINARY} get ssp -n "${INSTALLED_NAMESPACE}" ssp-kubevirt-hyperconverged -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="centos-7-image-cron")'
${KUBECTL_BINARY} get ssp -n "${INSTALLED_NAMESPACE}" ssp-kubevirt-hyperconverged -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="fedora-image-cron")'
${KUBECTL_BINARY} get ssp -n "${INSTALLED_NAMESPACE}" ssp-kubevirt-hyperconverged -o jsonpath='{.spec.commonTemplates.dataImportCronTemplates}' | jq -e '.[] |select(.metadata.name=="centos8-image-cron-is")'

./hack/retry.sh 10 30 "[[ \$(count_data_import_crons) -eq 5 ]]" "${KUBECTL_BINARY} get DataImportCron -A"

${KUBECTL_BINARY} get DataImportCron -n ${IMAGES_NS}

${KUBECTL_BINARY} get DataImportCron -o yaml -n ${IMAGES_NS} centos-stream8-image-cron
${KUBECTL_BINARY} get DataImportCron -o yaml -n ${IMAGES_NS} centos-stream9-image-cron
${KUBECTL_BINARY} get DataImportCron -o yaml -n ${IMAGES_NS} centos-7-image-cron
${KUBECTL_BINARY} get DataImportCron -o yaml -n ${IMAGES_NS} fedora-image-cron
${KUBECTL_BINARY} get DataImportCron -o yaml -n ${IMAGES_NS} centos8-image-cron-is || true

Expand Down

0 comments on commit cabd268

Please sign in to comment.