Skip to content

Commit 76bf8a3

Browse files
committed
[patch] rearrange and fix network issues
1 parent 1f12f77 commit 76bf8a3

14 files changed

+208
-194
lines changed

cluster-applications/300-mas-provisioner/templates/00-ca_Issuer.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

cluster-applications/300-mas-provisioner/templates/01-ca_Certificate.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
apiVersion: cert-manager.io/v1
3+
kind: Issuer
4+
metadata:
5+
name: "mas-provisioner-ca-issuer"
6+
namespace: "{{ .Values.provisioner_namespace }}"
7+
annotations:
8+
argocd.argoproj.io/sync-wave: "300"
9+
{{- if .Values.custom_labels }}
10+
labels:
11+
{{ .Values.custom_labels | toYaml | indent 4 }}
12+
{{- end }}
13+
spec:
14+
selfSigned: {}
15+
16+
---
17+
apiVersion: cert-manager.io/v1
18+
kind: Certificate
19+
metadata:
20+
name: "mas-provisioner-ca-certificate"
21+
namespace: "{{ .Values.provisioner_namespace }}"
22+
annotations:
23+
argocd.argoproj.io/sync-wave: "301"
24+
{{- if .Values.custom_labels }}
25+
labels:
26+
{{ .Values.custom_labels | toYaml | indent 4 }}
27+
{{- end }}
28+
spec:
29+
secretName: "mas-provisioner-ca"
30+
duration: "175200h0m0s"
31+
renewBefore: "2160h0m0s"
32+
issuerRef:
33+
name: "mas-provisioner-ca-issuer"
34+
kind: Issuer
35+
isCA: true
36+
usages:
37+
- cert sign
38+
- digital signature
39+
- key encipherment
40+
- server auth
41+
commonName: "ca.mas-provisioner-tls"
42+
subject:
43+
countries:
44+
- US
45+
streetAddresses:
46+
- New York
47+
localities:
48+
- New York
49+
organizationalUnits:
50+
- IBM Maximo Application Suite
51+
52+
---
53+
apiVersion: cert-manager.io/v1
54+
kind: Issuer
55+
metadata:
56+
name: "mas-provisioner-issuer"
57+
namespace: "{{ .Values.provisioner_namespace }}"
58+
annotations:
59+
argocd.argoproj.io/sync-wave: "302"
60+
{{- if .Values.custom_labels }}
61+
labels:
62+
{{ .Values.custom_labels | toYaml | indent 4 }}
63+
{{- end }}
64+
spec:
65+
ca:
66+
secretName: "mas-provisioner-ca"
67+
68+
---
69+
apiVersion: cert-manager.io/v1
70+
kind: Certificate
71+
metadata:
72+
name: "mas-provisioner-certificate"
73+
namespace: "{{ .Values.provisioner_namespace }}"
74+
annotations:
75+
argocd.argoproj.io/sync-wave: "303"
76+
spec:
77+
secretName: "mas-provisioner-certificate"
78+
duration: "175200h0m0s"
79+
renewBefore: "2160h0m0s"
80+
issuerRef:
81+
name: "mas-provisioner-issuer"
82+
kind: Issuer
83+
usages:
84+
- cert sign
85+
- digital signature
86+
- key encipherment
87+
- server auth
88+
commonName: "*.{{ .Values.provisioner_domain }}"
89+
dnsNames:
90+
- "*.{{ .Values.provisioner_domain }}"
91+
- "mas-provisioner-service-{{ .Values.provisioner_namespace }}.{{ .Values.provisioner_domain }}"
92+
subject:
93+
countries:
94+
- US
95+
streetAddresses:
96+
- New York
97+
localities:
98+
- New York
99+
organizationalUnits:
100+
- IBM Maximo Application Suite

cluster-applications/300-mas-provisioner/templates/02-Issuer.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{{- if not (empty .Values.csb_client_ca) }}
2+
---
3+
apiVersion: v1
4+
kind: Secret
5+
metadata:
6+
name: csb-ca
7+
namespace: "{{ .Values.provisioner_namespace }}"
8+
annotations:
9+
argocd.argoproj.io/sync-wave: "304"
10+
{{- if .Values.custom_labels }}
11+
labels:
12+
{{ .Values.custom_labels | toYaml | indent 4 }}
13+
{{- end }}
14+
type: Opaque
15+
data:
16+
ca.crt: {{ .Values.csb_client_ca | b64enc }}
17+
{{- end }}
18+
19+
20+
{{- if not (empty .Values.github_token) }}
21+
---
22+
apiVersion: v1
23+
kind: Secret
24+
metadata:
25+
name: git-secret
26+
namespace: "{{ .Values.provisioner_namespace }}"
27+
annotations:
28+
argocd.argoproj.io/sync-wave: "304"
29+
{{- if .Values.custom_labels }}
30+
labels:
31+
{{ .Values.custom_labels | toYaml | indent 4 }}
32+
{{- end }}
33+
type: Opaque
34+
stringData:
35+
token: {{ .Values.github_token }}
36+
{{- end }}
37+
38+
39+
{{- if not (empty .Values.instana_api_token) }}
40+
---
41+
apiVersion: v1
42+
kind: Secret
43+
metadata:
44+
name: instana-api-secret
45+
namespace: "{{ .Values.provisioner_namespace }}"
46+
annotations:
47+
argocd.argoproj.io/sync-wave: "304"
48+
{{- if .Values.custom_labels }}
49+
labels:
50+
{{ .Values.custom_labels | toYaml | indent 4 }}
51+
{{- end }}
52+
type: Opaque
53+
stringData:
54+
token: {{ .Values.instana_api_token }}
55+
{{- end }}
56+
57+
58+
{{- if and .Values.enable_ocm_alert (not (empty .Values.ocm_api_key)) }}
59+
---
60+
apiVersion: v1
61+
kind: Secret
62+
metadata:
63+
name: ocm-api-secret
64+
namespace: "{{ .Values.provisioner_namespace }}"
65+
annotations:
66+
argocd.argoproj.io/sync-wave: "304"
67+
{{- if .Values.custom_labels }}
68+
labels:
69+
{{ .Values.custom_labels | toYaml | indent 4 }}
70+
{{- end }}
71+
type: Opaque
72+
stringData:
73+
key: {{ .Values.ocm_api_key }}
74+
{{- end }}
75+
76+
77+
{{- if and .Values.enable_pd_alert (.Values.pd_key) }}
78+
---
79+
apiVersion: v1
80+
kind: Secret
81+
metadata:
82+
name: pd-routing-key-secret
83+
namespace: "{{ .Values.provisioner_namespace }}"
84+
annotations:
85+
argocd.argoproj.io/sync-wave: "304"
86+
{{- if .Values.custom_labels }}
87+
labels:
88+
{{ .Values.custom_labels | toYaml | indent 4 }}
89+
{{- end }}
90+
type: Opaque
91+
stringData:
92+
key: {{ .Values.pd_key }}
93+
{{- end }}

cluster-applications/300-mas-provisioner/templates/03-Certificate.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

cluster-applications/300-mas-provisioner/templates/05-Service.yaml renamed to cluster-applications/300-mas-provisioner/templates/03-Service.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ metadata:
1212
argocd.argoproj.io/sync-wave: "305"
1313
spec:
1414
type: ClusterIP
15-
clusterIP: None
1615
ports:
17-
- name: https
18-
port: {{ .Values.service_port }}
19-
targetPort: https
16+
- name: provisioner-port
17+
port: 443
18+
protocol: TCP
19+
targetPort: {{ .Values.service_port }}
20+
selector:
21+
app: mas-provisioner
22+
component: product-service-broker

cluster-applications/300-mas-provisioner/templates/06-Deployment.yaml renamed to cluster-applications/300-mas-provisioner/templates/04-Deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
image: "docker-na-public.artifactory.swg-devops.com/wiotp-docker-local/maximoappsuite/ibm-mas-mcsp-provisioner:{{ .Values.provisioner_version }}"
3232
imagePullPolicy: Always
3333
ports:
34-
- name: https
34+
- name: provisioner-port
3535
containerPort: {{ .Values.service_port }}
3636
env:
3737
{{- if not (empty .Values.pd_key) }}

cluster-applications/300-mas-provisioner/templates/04-csb-ca_Secret.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

cluster-applications/300-mas-provisioner/templates/04-git_Secret.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

cluster-applications/300-mas-provisioner/templates/04-instana_Secret.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

cluster-applications/300-mas-provisioner/templates/04-ocm_Secret.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)