-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KRV-1678 : Enhance and test install.sh script to upgrade operator and crd via cli (without OLM) in K8s and OCP environments #31
Conversation
scripts/install.sh
Outdated
@@ -14,6 +14,8 @@ function usage() { | |||
echo | |||
echo "Usage: $PROG options..." | |||
echo "Options:" | |||
echo " Optional" | |||
echo " --upgrade Perform an upgrade of the specified driver, default is false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perform an upgrade of the specified driver.. -> Perform an upgrade of the operator...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken care
scripts/install.sh
Outdated
echo "Attempting to upgrade the Operator as --upgrade option was specified" | ||
else | ||
log step_failure | ||
log error "Operator is not found in dell-csm-operator namespace to upgrade.Install the operator without the upgrade option." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use '$NAMESPACE' instead of dell-csm-operator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken care
scripts/install.sh
Outdated
if [ "$operator_in_namespace" = true ]; then | ||
log step_failure | ||
log warning "Found existing installation of dell-csm-operator in '$NAMESPACE' namespace" | ||
log error "Remove the existing installation manually or use uninstall.sh script, and then proceed with installation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use error message like "Remove the existing installation using uninstall.sh script, or use the --upgrade option to upgrade the Operator" to let customer know they can use upgrade as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken care
main.go
Outdated
k8sPath = fmt.Sprintf("/driverconfig/common/default.yaml") | ||
} else if currentVersion > maxVersion { | ||
log.Info(fmt.Sprintf("Installed k8s version %s is greater than the maximum supported k8s version %f , hence using the latest available configurations", kubeVersion, maxVersion)) | ||
log.Info(fmt.Sprintf("Installed k8s version %s is greater than the maximum supported k8s version %s , hence using the latest available configurations", kubeVersion, K8sMaximumSupportedVersion)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use new logger log.Infof works same as Printf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
taken care
30596dc
to
f56f653
Compare
… crd via cli (without OLM) in K8s and OCP environments (#31)
Description
Enhance and test install.sh script to upgrade operator and crd via cli (without OLM) in K8s and OCP environments
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?