-
Notifications
You must be signed in to change notification settings - Fork 0
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
First version of module #3
Conversation
Co-authored-by: Rajat Agrawal <[email protected]>
…form-ibm-websphere-liberty-operator into add_liberty_operator_support
/run pipeline |
/run pipeline |
/run pipeline |
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.
@vbontempi You should take same approach as we do in https://github.com/terraform-ibm-modules/terraform-ibm-observability-agents/blob/main/main.tf for handling image versions. The module should have a local variable for each image sha, and should be set up with renovate to be updated. Please reach out to me if you have any questions around this approach.
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.
I left some comments but this is a huge PR. I will re-review after the code is updated to handle image versions.
/run pipeline |
/run pipeline |
Can you please update the "about" section of the repo in ".github/settings.yml"? |
/run pipeline |
/run pipeline |
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.
@SirSpidey We are going to merge as is (if pipeline passes) and follow up with a cleanup for other changes, as we need a release for a demo
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.
Approving for initial release. Follow up comments can be addressed in #8
@@ -22,7 +22,7 @@ repository: | |||
|
|||
# Uncomment this description property | |||
# and update the description to the current repo description. | |||
# description: "" | |||
description: "This module installs a WebSphere® Liberty operator and create an instance of WebSphere Liberty operator on IBM Cloud Red Hat OpenShift cluster on VPC Gen2." | |||
|
|||
# Use a comma-separated list of topics to set on the repo (ensure not to use any caps in the topic string). | |||
topics: terraform, ibm-cloud, terraform-module |
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.
Action for follow up PR:
Add these topics: websphere-liberty-operator, core-team
(NOTE: core-team should only be added if our team own this, which may not be the case)
@@ -1,27 +1,27 @@ | |||
<!-- Update the title --> | |||
# Terraform Modules Template Project | |||
# WebSphere Liberty operator on Red Hat OpenShift VPC cluster module |
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.
^ Action for follow up PR
[![latest release](https://img.shields.io/github/v/release/terraform-ibm-modules/terraform-ibm-websphere-liberty-operator?logo=GitHub&sort=semver)](https://github.com/terraform-ibm-modules/terraform-ibm-websphere-liberty-operator/releases/latest) | ||
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) | ||
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
|
||
<!-- Add a description of module(s) in this repo --> | ||
TODO: Replace me with description of the module(s) in this repo | ||
Use this module to install a WebSphere® Liberty operator and create an instance of WebSphere Liberty operator on IBM Cloud Red Hat OpenShift cluster on VPC Gen2. |
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.
^ Action for follow up PR
@@ -0,0 +1,4 @@ | |||
{ | |||
"ibmcloud_api_key": $VALIDATION_APIKEY, | |||
"cluster_id": $CLUSTER_ID |
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.
Action for follow up PR:
this line needs to be removed, as cluster_id is being added in tests/scripts/pre-validation-slz-roks.sh
|
||
data "ibm_container_cluster_config" "cluster_config" { | ||
cluster_name_id = var.cluster_id | ||
# config_dir = "../../kubeconfig" |
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.
Action for follow up PR:
remove comment
variable "region" { | ||
type = string | ||
description = "Region to provision all resources created by this solution" | ||
default = "au-syd" |
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.
Action for follow up PR:
I would not have any region here, instead make it required input
create_namespace = false | ||
timeout = 300 | ||
# dependency_update = true | ||
# force_update = 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.
Action for follow up PR:
remove comments
"tests/resources/**" | ||
] | ||
} | ||
] |
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.
Action for follow up PR:
Add a rule to bump ICR image versions (see https://github.com/terraform-ibm-modules/terraform-ibm-observability-agents/blob/main/renovate.json)
|
||
# jq reads from stdin | ||
function parse_input() { | ||
eval "$(jq -r '@sh "export KUBECONFIG=\(.KUBECONFIG) APPNAMESPACE=\(.APPNAMESPACE) APPNAME=\(.APPNAME)"')" |
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.
Action for follow up PR:
Clearly document that jq
is required in main readme
# shellcheck disable=SC2129 | ||
echo "[INFO] using APPNAME ${APPNAME}" >> "${DEBUGFILE}" | ||
|
||
SAMPLEAPPROUTE="$(oc get routes "${APPNAME}" -n "${APPNAMESPACE}" --no-headers | awk '{print $2}')" |
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.
leave it for now, but lets revisit
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
The apply completed successfully on the cluster, but there seemed to be an issue with the subsequent plan:
It may have been a network or backend glitch, but since apply completed, we are going to force merge this in order to continue progress. We will be following this up with a cleanup PR anyway where we can address any issues we find. |
🎉 This PR is included in version 1.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
This PR allows the module to deploy the IBM WebSphere Liberty operator into an IBM Cloud Openshift cluster.
It is possible to deploy the operator in all the configurations supported by the operator: OwnNamespace, SingleNamespace, and AllNamespaces (more information available at https://www.ibm.com/docs/en/was-liberty/core?topic=operator-installing-red-hat-openshift-cli)
The module supports also to deploy the Liberty sample app to verify its deployment.
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Enable the module to deploy the IBM WebSphere Liberty operator into an IBM Cloud Openshift cluster in all the configurations supported by the operator: OwnNamespace, SingleNamespace, and AllNamespaces (more information available at https://www.ibm.com/docs/en/was-liberty/core?topic=operator-installing-red-hat-openshift-cli)
Support for deploy the Liberty sample app.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers