Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: mcp-server
namespace: ship-status
annotations:
serviceaccounts.openshift.io/oauth-redirecturi.callback: https://protected-mcp.ship-status.ci.openshift.org/oauth/callback
labels:
app: dashboard
8 changes: 8 additions & 0 deletions core-services/ci-secret-bootstrap/_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3350,6 +3350,14 @@ secret_configs:
- cluster: app.ci
name: component-monitor-kubeconfigs
namespace: ship-status
- from:
token:
field: sa.mcp-server.app.ci.token.txt
item: ship-status-dash-mcp-server
to:
- cluster: app.ci
name: mcp-server-token
namespace: ship-status
- from:
kubeconfig:
field: sa.ci-operator.app.ci.config
Expand Down
9 changes: 9 additions & 0 deletions core-services/ci-secret-generator/_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@
- core-ci
service_account:
- component-monitor
- fields:
- cmd: oc --kubeconfig /tmp/build-farm-credentials/sa.config-updater.$(cluster).config
create token -n ship-status mcp-server --duration=2419200s --bound-object-kind=Secret
--bound-object-name=token-bound-object-1
name: sa.mcp-server.$(cluster).token.txt
item_name: ship-status-dash-mcp-server
params:
cluster:
- app.ci
- fields:
- cmd: oc --kubeconfig /tmp/build-farm-credentials/sa.config-updater.$(cluster).config
create token -n ci $(service_account) --duration=2419200s --bound-object-kind=Secret
Expand Down