-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a common helm deploy script to use Signed-off-by: Sebastian Sch <sebassch@gmail.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -xeo pipefail | ||
|
||
HOME="/root" | ||
here="$(dirname "$(readlink --canonicalize "${BASH_SOURCE[0]}")")" | ||
root="$(readlink --canonicalize "$here/..")" | ||
domain_name=lab | ||
|
||
source hack/env.sh | ||
|
||
export ADMISSION_CONTROLLERS_ENABLED=true | ||
export ADMISSION_CONTROLLERS_CERTIFICATES_CERT_MANAGER_ENABLED=true | ||
export OPERATOR_LEADER_ELECTION_ENABLE=true | ||
export SKIP_VAR_SET="" | ||
export NAMESPACE="sriov-network-operator" | ||
export OPERATOR_NAMESPACE="sriov-network-operator" | ||
export CNI_BIN_PATH=/opt/cni/bin | ||
export OPERATOR_EXEC=kubectl | ||
export CLUSTER_HAS_EMULATED_PF=TRUE | ||
|
||
HELM_VALUES_OPTS="\ | ||
--set images.operator=${SRIOV_NETWORK_OPERATOR_IMAGE} \ | ||
--set images.sriovConfigDaemon=${SRIOV_NETWORK_CONFIG_DAEMON_IMAGE} \ | ||
--set images.sriovCni=${SRIOV_CNI_IMAGE} \ | ||
--set images.sriovDevicePlugin=${SRIOV_DEVICE_PLUGIN_IMAGE} \ | ||
--set images.resourcesInjector=${NETWORK_RESOURCES_INJECTOR_IMAGE} \ | ||
--set images.webhook=${SRIOV_NETWORK_WEBHOOK_IMAGE} \ | ||
--set operator.admissionControllers.enabled=${ADMISSION_CONTROLLERS_ENABLED} \ | ||
--set operator.admissionControllers.certificates.certManager.enabled=${ADMISSION_CONTROLLERS_CERTIFICATES_CERT_MANAGER_ENABLED} \ | ||
--set sriovOperatorConfig.deploy=true" | ||
|
||
PATH=$PATH:${root}/bin | ||
make helm | ||
helm upgrade -n ${NAMESPACE} --create-namespace \ | ||
$HELM_VALUES_OPTS \ | ||
--wait sriov-network-operator ./deployment/sriov-network-operator-chart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters