* fix: add tls when get repository index. Signed-off-by: joyceliu <joyceliu@yunify.com> * Update staging/src/kubesphere.io/utils/helm/repo_index.go Signed-off-by: hongming <coder.scala@gmail.com> * fix: add tls when get repository index. Signed-off-by: joyceliu <joyceliu@yunify.com> --------- Signed-off-by: joyceliu <joyceliu@yunify.com> Signed-off-by: hongming <coder.scala@gmail.com> Co-authored-by: joyceliu <joyceliu@yunify.com> Co-authored-by: hongming <coder.scala@gmail.com>
23 lines
817 B
Bash
Executable File
23 lines
817 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
CRD_OPTIONS="$1"
|
|
PKGS="$2"
|
|
GENS="$3"
|
|
IFS=" " read -r -a PKGS <<< "${PKGS}"
|
|
export GOFLAGS=-mod=readonly
|
|
|
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|
cd "${KUBE_ROOT}" || exit
|
|
|
|
for PKG in "${PKGS[@]}"; do
|
|
if grep -qw "deepcopy" <<<"${GENS}"; then
|
|
echo "Generating deepcopy for ${PKG}"
|
|
go run ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go object:headerFile=./hack/boilerplate.go.txt paths=./staging/src/kubesphere.io/api/"${PKG}"
|
|
else
|
|
echo "Generating manifests for ${PKG}"
|
|
go run ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go object:headerFile=./hack/boilerplate.go.txt paths=./staging/src/kubesphere.io/api/"${PKG}" rbac:roleName=controller-perms "${CRD_OPTIONS}" output:crd:artifacts:config=config/ks-core/charts/ks-crds/crds
|
|
fi
|
|
done
|