Pattern matching characters used in file names
willzhang opened this issue · 0 comments
willzhang commented
Description:
README:Installing HCO using kustomize (Openshift OLM Only) not work
root@ecs01:/tmp# curl -L https://api.github.com/repos/kubevirt/hyperconverged-cluster-operator/tarball/main | \
tar --strip-components=1 -xvzf - kubevirt-hyperconverged-cluster-operator-*/deploy/kustomize
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 15.1M 100 15.1M 0 0 2797k 0 0:00:05 0:00:05 --:--:-- 3222k
tar: Pattern matching characters used in file names
tar: Use --wildcards to enable pattern matching, or --no-wildcards to suppress this warning
tar: kubevirt-hyperconverged-cluster-operator-*/deploy/kustomize: Not found in archive
tar: Exiting with failure status due to previous errors
environment
root@ecs01:/tmp# tar --version
tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
root@ecs01:/tmp# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
root@ecs01:/tmp#
What you expected:
Install without error
Additional context:
This is work with --wildcards
root@ecs01:/tmp# curl -L https://api.github.com/repos/kubevirt/hyperconverged-cluster-operator/tarball/main | \
tar --wildcards --strip-components=1 -xvzf - 'kubevirt-hyperconverged-cluster-operator-*/deploy/kustomize'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 15.1M 0 40979 0 0 38657 0 0:06:50 0:00:01 0:06:49 38657kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/README.md
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/base/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/base/hco_cr.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/base/kustomization.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/base/operator_group.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/base/subscription.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/deploy_kustomize.sh
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/image_registry/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/image_registry/catalog_source.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/image_registry/kustomization.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/kvm_emulation/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/kvm_emulation/kustomization.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/kvm_emulation/subscription.patch.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/marketplace/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/marketplace/kustomization.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/marketplace/operator_source.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/namespace.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/private_repo/
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/private_repo/kustomization.yaml
kubevirt-hyperconverged-cluster-operator-15d4514/deploy/kustomize/private_repo/operator_source.patch.yaml
100 15.1M 100 15.1M 0 0 5932k 0 0:00:02 0:00:02 --:--:-- 9955k
root@ecs01:/tmp# ls
deploy
root@ecs01:/tmp# ls deploy/kustomize/
base/ deploy_kustomize.sh image_registry/ kvm_emulation/ marketplace/ namespace.yaml private_repo/ README.md