Configuration
About 300 words
The backend plugin has one configuration key of its own and reads two of Backstage's. The frontend plugin has none.
cilium.allowedRepos
cilium:
allowedRepos:
- acme/k8s-deployment| Type | list of strings, owner/name |
| Default | unset: no repository |
| Read | at startup |
The GitHub repositories Backstage may write manifests to. A policy entity's spec.publish.repo says where its manifests go; a repository missing from this list isn't written to, and the console shows Not published: acme/k8s-deployment is not in Backstage's cilium.allowedRepos. The comparison ignores case.
The key is declared in the backend package's config.d.ts, so backstage-cli config:check knows it.
Keys from Backstage
| Key | Used for |
|---|---|
app.baseUrl | Entity links in the pull request description. Without it, the description names entities without linking them. |
integrations.github | The credentials for publishing. The backend asks the GitHub integration for credentials for https://github.com/<owner>/<name>, so an entry for host: github.com with a GitHub App or a token is needed. See Publish to GitHub for the permissions. |
The catalog
The plugin doesn't add catalog configuration, but it relies on two things you set there:
- a location that allows
kind: Cilium(see Restrict where policies come from); - the Components, APIs and Resources it reads, from whatever sources you use, the cluster's Resource included.
Fixed values
These aren't configurable:
| Value | |
|---|---|
| Publishing task ID | cilium-publish |
| Publishing frequency | every 60 minutes |
| Publishing timeout | 5 minutes |
| Delay before the first run after startup | 3 minutes |
| How long the backend reuses a catalog read for the console | 1 minute |
How long the frontend reuses /overview | 1 minute |
| GitHub API | https://api.github.com |
| Default pull request branch | backstage/cilium-<policy name> |
| Label on every rendered policy | app.kubernetes.io/managed-by: backstage |
