Skip to content

Commit 62bf7d6

Browse files
author
Morven Cao
committed
add certificate rotation e2e test.
Signed-off-by: Morven Cao <lcao@redhat.com>
1 parent 95e4f7f commit 62bf7d6

8 files changed

Lines changed: 397 additions & 65 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ maestro-grpc NodePort 10.96.114.161 <none> 8090:30090/TCP
354354
maestro-healthcheck ClusterIP 10.96.67.145 <none> 8083/TCP 7m42s
355355
maestro-metrics ClusterIP 10.96.201.253 <none> 8080/TCP 7m42s
356356
maestro-mqtt ClusterIP 10.96.241.85 <none> 1883/TCP 7m59s
357-
maestro-mqtt-agent ClusterIP 10.96.215.21 <none> 1883/TCP 7m59s
358-
maestro-mqtt-server ClusterIP 10.96.72.129 <none> 1883/TCP 7m59s
359357
$ kubectl get pods -n maestro
360358
NAME READY STATUS RESTARTS AGE
361359
maestro-85c847764-4xdt6 1/1 Running 0 5m

templates/agent-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ parameters:
6363
- name: MQTT_ROOT_CERT
6464
description: Root Certificate for the mqtt broker.
6565

66-
- name: MQTT_CLENT_CERT
66+
- name: MQTT_CLIENT_CERT
6767
description: Client certificate to access the mqtt broker.
6868

69-
- name: MQTT_CLENT_KEY
69+
- name: MQTT_CLIENT_KEY
7070
description: Client private key to access the mqtt broker.
7171

7272
objects:
@@ -337,8 +337,8 @@ objects:
337337
username: ${MQTT_USER}
338338
password: ${MQTT_PASSWORD}
339339
caFile: ${MQTT_ROOT_CERT}
340-
clientCertFile: ${MQTT_CLENT_CERT}
341-
clientKeyFile: ${MQTT_CLENT_KEY}
340+
clientCertFile: ${MQTT_CLIENT_CERT}
341+
clientKeyFile: ${MQTT_CLIENT_KEY}
342342
topics:
343343
sourceEvents: sources/maestro/consumers/${CONSUMER_NAME}/sourceevents
344344
agentEvents: sources/maestro/consumers/${CONSUMER_NAME}/agentevents

templates/agent-tls-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ parameters:
6363
- name: MQTT_ROOT_CERT
6464
description: Root Certificate for the mqtt broker.
6565

66-
- name: MQTT_CLENT_CERT
66+
- name: MQTT_CLIENT_CERT
6767
description: Client certificate to access the mqtt broker.
6868

69-
- name: MQTT_CLENT_KEY
69+
- name: MQTT_CLIENT_KEY
7070
description: Client private key to access the mqtt broker.
7171

7272
objects:
@@ -353,8 +353,8 @@ objects:
353353
username: ${MQTT_USER}
354354
password: ${MQTT_PASSWORD}
355355
caFile: ${MQTT_ROOT_CERT}
356-
clientCertFile: ${MQTT_CLENT_CERT}
357-
clientKeyFile: ${MQTT_CLENT_KEY}
356+
clientCertFile: ${MQTT_CLIENT_CERT}
357+
clientKeyFile: ${MQTT_CLIENT_KEY}
358358
topics:
359359
sourceEvents: sources/maestro/consumers/${CONSUMER_NAME}/sourceevents
360360
agentEvents: sources/maestro/consumers/${CONSUMER_NAME}/agentevents

templates/mqtt-tls-template.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -72,34 +72,6 @@ objects:
7272
status:
7373
loadBalancer: {}
7474

75-
- apiVersion: v1
76-
kind: Service
77-
metadata:
78-
name: ${MQTT_BROKER_NAME}-server
79-
spec:
80-
ports:
81-
- name: mosquitto
82-
port: 1883
83-
protocol: TCP
84-
targetPort: 1883
85-
selector:
86-
name: ${MQTT_BROKER_NAME}
87-
type: ClusterIP
88-
89-
- apiVersion: v1
90-
kind: Service
91-
metadata:
92-
name: ${MQTT_BROKER_NAME}-agent
93-
spec:
94-
ports:
95-
- name: mosquitto
96-
port: 1883
97-
protocol: TCP
98-
targetPort: 1883
99-
selector:
100-
name: ${MQTT_BROKER_NAME}
101-
type: ClusterIP
102-
10375
- kind: Deployment
10476
apiVersion: apps/v1
10577
metadata:

0 commit comments

Comments
 (0)