Skip to content

Commit 1075c29

Browse files
authored
Merge pull request #1343 from rackerlabs/nautobot-token-workflow
feat: Nautobot token workflow
2 parents 2dd4a7f + 9a9b819 commit 1075c29

24 files changed

+165
-241
lines changed

apps/site/nautobot-site.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
component: nautobot
2+
component: nautobot-site
3+
componentNamespace: nautobot
34
sources:
45
- ref: deploy
5-
path: '{{.name}}/manifests/nautobot'
6+
path: '{{.name}}/manifests/nautobot-site'

components/global-workflows/eventbus/eventbus-default.yaml

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

components/global-workflows/eventbus/poddisruptionbudget-eventbus-default-pdb.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

4-
resources:
5-
- eventbus/eventbus-default.yaml
6-
- eventbus/poddisruptionbudget-eventbus-default-pdb.yaml
4+
helmCharts:
5+
- name: nautobot-token
6+
# site-clusters superuser token are created in nautobot namespace in global cluster
7+
namespace: nautobot
8+
valuesFile: nautobot-token-values.yaml
79

8-
# nautobot secret
9-
- serviceaccounts/k8s-secret-events-nautobot.yaml
10-
- serviceaccounts/k8s-job-create.yaml
11-
- eventsources/k8s-secret-nautobot-token.yaml
12-
- sensors/k8s-nautobot-secret.yaml
10+
helmGlobals:
11+
chartHome: ../../workflows/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
eventBus:
3+
# NATS replicas for event message distribution
4+
# Minimum value: 3 (required for quorum)
5+
# Default: 3 (recommended for all deployments)
6+
replicas: 3
7+
# Authentication strategy for NATS
8+
# Options: "none" or "token"
9+
auth: "token"

components/nautobot/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44

55
resources:
6-
- cloudnative-postgres-nautobot.yaml
7-
- secretstore-nautobot.yaml
86
- external-secret-nautobot-sso.yaml
97

108
configMapGenerator:

components/nautobot/secretstore-nautobot.yaml

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

components/nova/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ resources:
77
- nova-mariadb-db.yaml # creates 'nova' database
88
- nova-api-mariadb-db.yaml # creates 'nova_api' database
99
- nova-cell0-mariadb-db.yaml # creates 'nova_cell0' database
10-
- nova-nautobot-token.yaml
1110
- secret-nova-argo-token.yaml
1211
- roles-nova-argo-token.yaml
1312
- nova-post-deployment-job.yaml

components/nova/nova-nautobot-token.yaml

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

components/site-workflows/kustomization.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ resources:
2323
- sensors/sensor-ironic-reclean.yaml
2424
- sensors/sensor-ironic-node-port.yaml
2525
- sensors/sensor-ironic-oslo-event.yaml
26-
- secrets/nautobot-token.yaml
26+
27+
helmCharts:
28+
- name: nautobot-token
29+
namespace: openstack
30+
valuesFile: nautobot-token-values.yaml
31+
32+
helmGlobals:
33+
chartHome: ../../workflows/

0 commit comments

Comments
 (0)