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
Split the deploy.sh script to work with both kube & openshift #432
Conversation
TestingThe gate uses |
cec9cc0
to
ae7e74c
Compare
ae7e74c
to
f736c0b
Compare
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.
My only request is this be a single file instead of three.
| ${VARS} | oc create -f - | ||
| if [[ "${KUBERNETES}" ]]; then | ||
| echo "Using Kubernetes" | ||
| "${BROKER_ROOT}/scripts/kubernetes/deploy.sh" |
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.
My recommendation is to bring in the scripts/kubernetes/deploy.sh and scripts/openshift/deploy.sh into this file.
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.
What I didn't want to do is turn these scripts into if k8s then do 100 things else openshift do these 100 things. With two separate files there's a clean separation because these are two separate scripts. So anything kubernetes related I know exists in scripts/kubernetes/.... It's not the best situation, but Bash isn't exactly the best for creating abstraction.
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.
@rthallisey +1 keep them separate. They will be easier to manage. Unless they are 100% the same, otherwise it will turn into a bunch of if kube else etc.
These two scripts are very different because one will use OpenShift templates and the other will use jinja2. I added an intermediate script that will direct to the proper location.
f736c0b
to
83fe9da
Compare
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.
LGTM
| ${VARS} | oc create -f - | ||
| if [[ "${KUBERNETES}" ]]; then | ||
| echo "Using Kubernetes" | ||
| "${BROKER_ROOT}/scripts/kubernetes/deploy.sh" |
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.
@rthallisey +1 keep them separate. They will be easier to manage. Unless they are 100% the same, otherwise it will turn into a bunch of if kube else etc.
|
@djzager -1 to merging the files into one. |
These two scripts are very different because one will use OpenShift
templates and the other will use jinja2. I added an intermediate script
that will direct to the proper location.
Changes proposed in this pull request
make deployfor both openshift and kubernetes envs