Skip to content
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

[RHBA-577] Create OpenShift templates based on RHBA LA release -- 1st draft #9

Merged
merged 1 commit into from Mar 20, 2018

Conversation

calvinzhuca
Copy link
Contributor

@calvinzhuca calvinzhuca commented Mar 14, 2018

Thanks for submitting your Pull Request!

https://issues.jboss.org/browse/RHBA-577

Please make sure your PR meets the following requirements:

  • Pull Request title is properly formatted: [CLOUD-XYA] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
  • Attached commits represent units of work and are properly formatted
  • You have read and agreed to the Developer Certificate of Origin (DCO) (see CONTRIBUTING.md)
  • Every commit contains Signed-off-by: Your Name <yourname@example.com> - use git commit -s

from: "[a-zA-Z]{6}[0-9]{1}!"
generate: expression
required: false
- displayName: Smart router controller token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This display name do not look correct. Shouln't it be Kie Server Controller token?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed the copy & paste error

selector:
deploymentConfig: "${APPLICATION_NAME}-rhbacentrmon"
metadata:
name: "${APPLICATION_NAME}-rhbacentrmonmon"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this line there is a typo "monmon"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

name: IMAGE_STREAM_NAMESPACE
value: openshift
required: true
- displayName: MySQL Image Stream Tag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This template is only for Business Central and there is no need for a DB so all environment variables for DB can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed by taking out the DB section for Business Central

annotations:
description: The Business Central web server's https port.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty lines can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed empty lines

containerPort: 8443
protocol: TCP
env:
- name: KIE_ADMIN_PWD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The KIE_ADMIN_PWD and KIE_ADMIN_USER should use the same values as the MAVEN_REPO_PASSWORD and MAVEN_REPO_USERNAME respectively or else they will have different generated values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in rhba70-full-mysql.yaml and rhba70-full-mysql-persistent.yaml
- name: MAVEN_REPO_USERNAME
value: "${KIE_ADMIN_USER}"
- name: MAVEN_REPO_PASSWORD
value: "${KIE_ADMIN_PWD}"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This configuration is not valid for case, when is connected an external maven repository. For external maven repository can be set different user and password.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakubschwan then the maven admin shouldn't have a default and the password not be generated. The original approach prevents the template from working. The description already provides enough information for the user.
@calvinzhuca given @jakubschwan's point you could leave the old values and remove the default value for the admin and password generation, leaving up to the template user to decide which values to provide

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, updated based on you two's feedback

@calvinzhuca
Copy link
Contributor Author

calvinzhuca commented Mar 16, 2018

JIRA is at https://issues.jboss.org/browse/RHBA-577

@calvinzhuca calvinzhuca changed the title Create OpenShift templates based on RHBA LA release -- 1st draft [RHBA-577] Create OpenShift templates based on RHBA LA release -- 1st draft Mar 16, 2018
deploymentConfig: "${APPLICATION_NAME}-rhbacentr"
application: "${APPLICATION_NAME}"
spec:
serviceAccountName: businesscentral-service-account
Copy link
Contributor

@ruromero ruromero Mar 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service account should be also created in the template and removed from the description. If it already exists the template will continue processing the other objects. The same for all the other service accounts in any template

Copy link
Collaborator

@errantepiphany errantepiphany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash these 7 commits into 1.

@@ -280,7 +280,6 @@ objects:
application: "${APPLICATION_NAME}"
annotations:
description: The Business Central web server's http port.
service.alpha.openshift.io/dependencies: '[{"name": "${APPLICATION_NAME}-mysql", "kind": "Service"}]'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why the removal of the dependencies (here and 3 other places)? Don't we want to make sure the mysql service is available before others that depend on it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@errantepiphany this was removed from the console which was its only purpose. See openshift/origin-web-console#2319

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I squashed the 7 commits

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruromero Okay, thanks. I thought it was an actual service dependency (not just a console UI thing), but after consulting a couple other people, that doesn't seem to be the case.

Signed-off-by: calvin zhu <calvinzhu@hotmail.com>
@errantepiphany errantepiphany merged commit bc27e48 into jboss-container-images:rhba70-dev Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants