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
3 changes: 3 additions & 0 deletions .github/workflows/update-catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: ./scripts/gen-crd-schemas.sh -r kubernetes-sigs/gateway-api -d ./catalog/latest
- name: Update Flux schemas
run: ./scripts/gen-flux-schemas.sh -d ./catalog/latest
- name: Update Flagger schemas
run: ./scripts/gen-crd-schemas.sh -r fluxcd/flagger -p kustomize/kubernetes -d ./catalog/latest
- name: Update Flux Operator schemas
run: ./scripts/gen-crd-schemas.sh -r controlplaneio-fluxcd/flux-operator -d ./catalog/latest
- name: Update README versions
Expand All @@ -51,6 +53,7 @@ jobs:
- Kubernetes: ${{ env.K8S_VERSION }}
- Gateway API: ${{ env.GATEWAY_API_VERSION }}
- Flux: ${{ env.FLUX_VERSION }}
- Flagger: ${{ env.FLAGGER_VERSION }}
- Flux Operator: ${{ env.FLUX_OPERATOR_VERSION }}
labels: |
area/catalog
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ and validates each document against a JSON Schema resolved from its `apiVersion`

When no `--schema-location` is given, validate uses the [flux-schema catalog](catalog/README.md),
which covers the latest Kubernetes APIs, the stable channel of Gateway API,
and the Flux CRDs (controllers and operator):
and the Flux ecosystem CRDs:

```shell
flux-schema validate ./manifests
Expand Down
4 changes: 3 additions & 1 deletion catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ used by the `flux schema validation` tool.
| [kubernetes/kubernetes](https://github.com/kubernetes/kubernetes) | v1.35.4 |
| [kubernetes-sigs/gateway-api](https://github.com/kubernetes-sigs/gateway-api) | v1.5.1 |
| [fluxcd/flux2](https://github.com/fluxcd/flux2) | v2.8.6 |
| [fluxcd/flagger](https://github.com/fluxcd/flagger) | v1.43.0 |
| [controlplaneio-fluxcd/flux-operator](https://github.com/controlplaneio-fluxcd/flux-operator) | v0.48.0 |
<!-- versions:end -->

## Flux APIs

Extracted from the CRDs shipped by the latest stable Flux distribution and Flux Operator.
Extracted from the CRDs shipped by the latest stable Flux distribution, Flagger and Flux Operator.

- `helm.toolkit.fluxcd.io` — `HelmRelease`
- `image.toolkit.fluxcd.io` — `ImagePolicy`, `ImageRepository`, `ImageUpdateAutomation`
- `kustomize.toolkit.fluxcd.io` — `Kustomization`
- `notification.toolkit.fluxcd.io` — `Alert`, `Provider`, `Receiver`
- `source.toolkit.fluxcd.io` — `Bucket`, `ExternalArtifact`, `GitRepository`, `HelmChart`, `HelmRepository`, `OCIRepository`
- `source.extensions.fluxcd.io` — `ArtifactGenerator`
- `flagger.app` — `Canary`, `MetricTemplate`, `AlertProvider`
- `fluxcd.controlplane.io` — `FluxInstance`, `FluxReport`, `ResourceSet`, `ResourceSetInputProvider`

## Kubernetes APIs
Expand Down
68 changes: 68 additions & 0 deletions catalog/latest/flagger.app/alertprovider_v1beta1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"additionalProperties": false,
"oneOf": [
{
"required": [
"type",
"address"
]
},
{
"required": [
"type",
"secretRef"
]
}
],
"properties": {
"address": {
"type": "string"
},
"channel": {
"type": "string"
},
"proxy": {
"type": "string"
},
"secretRef": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": {
"enum": [
"slack",
"msteams",
"discord",
"rocket",
"gchat"
],
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
Loading
Loading