Skip to content

Commit

Permalink
GA: adapt to n-c Receiver API graduating to v1
Browse files Browse the repository at this point in the history
With fluxcd/notification-controller#498 we're graduating the Receiver
API group version to v1 and keeping all other kinds' version at
v1beta2. Therefore we need to publish API docs for both version.

Signed-off-by: Max Jonas Werner <[email protected]>
  • Loading branch information
Max Jonas Werner committed Mar 23, 2023
1 parent e4abe38 commit 72776eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/en/flux/components/notification/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alert.md
api.md
api/*.md
event.md
provider.md
receiver.md
Empty file.
5 changes: 4 additions & 1 deletion hack/import-flux2-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ gen_crd_doc() {
{
# notification-controller CRDs
NOTIFICATION_VER="$(controller_version notification-controller)"
gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/api/notification.md" "$COMPONENTS_DIR/notification/api.md"
# gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/api/v1/notification.md" "$COMPONENTS_DIR/notification/api/v1.md"
# gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/api/v1beta2/notification.md" "$COMPONENTS_DIR/notification/api/v1beta2.md"
gen_crd_doc "http://localhost:8000/v1/notification.md" "$COMPONENTS_DIR/notification/api/v1.md"
gen_crd_doc "http://localhost:8000/v1beta2/notification.md" "$COMPONENTS_DIR/notification/api/v1beta2.md"
gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1beta2/events.md" "$COMPONENTS_DIR/notification/event.md"
gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1beta2/alerts.md" "$COMPONENTS_DIR/notification/alert.md"
gen_crd_doc "https://raw.githubusercontent.com/fluxcd/notification-controller/$NOTIFICATION_VER/docs/spec/v1beta2/providers.md" "$COMPONENTS_DIR/notification/provider.md"
Expand Down

0 comments on commit 72776eb

Please sign in to comment.