-
Notifications
You must be signed in to change notification settings - Fork 32
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
✨ Add transport secret for global hub manager and agent #1054
Changes from 5 commits
bc06ee9
2c085a9
d11b91c
932593b
9e9f1b4
2719aaf
0683073
8b90efe
fc0b6d9
f3ab8a4
ccebc0d
4035268
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,18 @@ kind: Secret | |
metadata: | ||
name: kafka-certs-secret | ||
namespace: {{ .AddonInstallNamespace }} | ||
annotations: | ||
transport-type: {{.TransportType}} | ||
client-cert-secret: {{.KafkaClientCertSecret}} | ||
cluster-ca-secret: kafka-cluster-ca-cert | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should not hardcode There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
labels: | ||
addon.open-cluster-management.io/hosted-manifest-location: none | ||
name: {{.KafkaAgentSecretName}} | ||
type: Opaque | ||
data: | ||
"bootstrap_server": {{.KafkaBootstrapServers}} | ||
"status_topic": {{.KafkaStatusTopic}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we have a same format? maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
"spec_topic": {{.KafkaSpecTopic}} | ||
"ca.crt": "{{.KafkaCACert}}" | ||
"client.crt": "{{.KafkaClientCert}}" | ||
"client.key": "{{.KafkaClientKey}}" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{.ManagerTransportSecret}} | ||
namespace: {{.Namespace}} | ||
labels: | ||
name: multicluster-global-hub-manager | ||
type: Opaque | ||
data: | ||
"cluster_id": {{.KafkaClusterID}} | ||
"bootstrap_server": {{.KafkaBootstrapServers}} | ||
"status_topic": {{.KafkaStatusTopic}} | ||
"spec_topic": {{.KafkaSpecTopic}} | ||
"ca.crt": {{.KafkaCACert}} | ||
"client.crt": {{.KafkaClientCert}} | ||
"client.key": {{.KafkaClientKey}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,12 @@ const ( | |
PostgresCAConfigMap = "multicluster-global-hub-postgres-ca" | ||
) | ||
|
||
// the global hub transport secret for manager and agent | ||
const ( | ||
GHManagerTransportSecret = "multicluster-global-hub-manager-transport" // #nosec G101 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the global hub agent supports standalone mode, the agent might send messages to different targets. So kafka is just an option, it might be a webhook credential. |
||
GHAgentTransportSecret = "multicluster-global-hub-agent-transport" // #nosec G101 | ||
) | ||
|
||
// global hub console secret/configmap names | ||
const ( | ||
CustomAlertName = "multicluster-global-hub-custom-alerting" | ||
|
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.
rename to
kafka-config
or something like. it is not only for certs anymore