mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

- Add script/fpga-plugin-prepare-for-kustomization.sh, creates contents for the secret needed by the fpga plugin webhook. - Single-command fpga plugin + webhook deployment for both modes: - `kubectl create -k deployments/fpga_plugin/overlays/af` - `kubectl create -k deployments/fpga_plugin/overlays/region` - Change intel-fpga-plugin image CMD to ENTRYPOINT.
27 lines
720 B
Bash
Executable File
27 lines
720 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script prepares fpga_plugin ready for full deployment by
|
|
#
|
|
# kubectl apply -k deployments/fpga_plugin/overlays/af
|
|
#
|
|
# or
|
|
#
|
|
# kubectl apply -k deployments/fpga_plugin/overlays/region
|
|
|
|
service="intel-fpga-webhook-svc"
|
|
secret="intel-fpga-webhook-certs"
|
|
|
|
script_dir="$(realpath $(dirname $0))"
|
|
srcroot="$(realpath ${script_dir}/..)"
|
|
|
|
kustomize_secret_dir="${srcroot}/deployments/fpga_admissionwebhook/base/${secret}-secret"
|
|
|
|
mkdir -p "${kustomize_secret_dir}"
|
|
|
|
# Create signed cert files to kustomize_secret_dir
|
|
${script_dir}/webhook-create-signed-cert.sh --output-dir ${kustomize_secret_dir} --service=$service && {
|
|
echo ""
|
|
echo created for kustomization:
|
|
echo - "${kustomize_secret_dir}"
|
|
}
|