forked from dbca-wa/ibms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dbca-wa#103 from ropable/master
Reorganise Kustomize resources, run Docker image as numeric non-root user
- Loading branch information
Showing
18 changed files
with
69 additions
and
45 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
SECURE_REFERRER_POLICY = env('SECURE_REFERRER_POLICY', None) | ||
SECURE_HSTS_SECONDS = env('SECURE_HSTS_SECONDS', 0) | ||
if not DEBUG: | ||
ALLOWED_HOSTS = env('ALLOWED_DOMAINS', 'localhost').split(',') | ||
ALLOWED_HOSTS = env('ALLOWED_HOSTS', 'localhost').split(',') | ||
else: | ||
ALLOWED_HOSTS = ['*'] | ||
INTERNAL_IPS = ['127.0.0.1', '::1'] | ||
|
@@ -80,7 +80,7 @@ | |
] | ||
SITE_TITLE = 'Integrated Business Management System' | ||
SITE_ACRONYM = 'IBMS' | ||
APPLICATION_VERSION_NO = '2.8.0' | ||
APPLICATION_VERSION_NO = '2.8.1' | ||
MANAGERS = ( | ||
('Zen Wee', '[email protected]', '9219 9928'), | ||
('Graham Holmes', '[email protected]', '9881 9212'), | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
namespace: ibms | ||
resources: | ||
- deployment.yaml | ||
- namespace.yaml | ||
- service.yaml |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,3 @@ spec: | |
port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: ibms-uat | ||
variant: uat |
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
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: ibms | ||
nameSuffix: -prod | ||
secretGenerator: | ||
- envs: | ||
- name: ibms-env | ||
type: Opaque | ||
envs: | ||
- .env | ||
name: ibms-env | ||
resources: | ||
- ../../base | ||
- service.yaml | ||
- ingress.yaml | ||
- pdb.yaml | ||
labels: | ||
- includeSelectors: true | ||
pairs: | ||
variant: prod | ||
patches: | ||
- path: deployment_prod_patch.yaml | ||
- path: deployment_patch.yaml | ||
- path: service_patch.yaml |
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,10 @@ | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: ibms-pdb | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: ibms-prod | ||
variant: prod |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: ibms | ||
nameSuffix: -uat | ||
secretGenerator: | ||
- envs: | ||
- name: ibms-env | ||
type: Opaque | ||
envs: | ||
- .env | ||
name: ibms-env | ||
resources: | ||
- ../../base | ||
- service.yaml | ||
- ingress.yaml | ||
- pdb.yaml | ||
labels: | ||
- includeSelectors: true | ||
pairs: | ||
variant: uat | ||
patches: | ||
- path: deployment_uat_patch.yaml | ||
- path: deployment_patch.yaml | ||
- path: service_patch.yaml |
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,10 @@ | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: ibms-pdb | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: ibms-uat | ||
variant: uat |
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,9 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ibms-clusterip | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: ibms-uat | ||
variant: uat |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ibms" | ||
version = "2.8.0" | ||
version = "2.8.1" | ||
description = "Integrated Business Management System corporate application" | ||
authors = ["Ashley Felton <[email protected]>"] | ||
license = "Apache-2.0" | ||
|