-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #765 from fao89/mergedataplane
Bringing dataplane APIs and controllers
- Loading branch information
Showing
210 changed files
with
41,479 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build Docs | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/docs* | ||
- apis/client/v1beta1/** | ||
- apis/core/v1beta1/** | ||
- apis/dataplane/v1beta1/** | ||
- docs/** | ||
- Gemfile | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
- uses: actions/checkout@v4 | ||
with: | ||
# this fetches all branches. Needed because we need gh-pages branch for deploy to work | ||
fetch-depth: 0 | ||
- uses: ruby/[email protected] | ||
with: | ||
ruby-version: '3.2' | ||
|
||
- name: Install Asciidoc | ||
run: make docs-dependencies | ||
- name: Build docs | ||
run: | | ||
make docs | ||
- name: Prepare gh-pages branch | ||
run: | | ||
git restore docs/assemblies/custom_resources.adoc | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git branch -D gh-pages &>/dev/null || true | ||
git checkout -b gh-pages 4cd0193fc6c5bc7e76f3a0148d0447fb0d7fbe6a | ||
- name: Commit asciidoc docs | ||
run: | | ||
mkdir user dev | ||
mv docs_build/ctlplane/index-upstream.html index.html | ||
git add index.html | ||
git commit -m "Rendered docs" | ||
- name: Push rendered docs to gh-pages | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
run: | | ||
git push --force origin gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Kustomize Build | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- config/samples/** | ||
jobs: | ||
kustomize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
- uses: actions/checkout@v4 | ||
with: | ||
# this fetches all branches. Needed because we need gh-pages branch for deploy to work | ||
fetch-depth: 0 | ||
- name: download kustomize | ||
run: | | ||
mkdir bin | ||
LINK=https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh | ||
curl -Ss $LINK | bash -s -- 5.0.1 ./bin | ||
- name: kustomize build | ||
run: | | ||
cd config/samples/dataplane | ||
for d in */ ; do | ||
echo "=============== $d ===============" | ||
../../../bin/kustomize build --load-restrictor LoadRestrictionsNone "$d" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,9 @@ CI_TOOLS_REPO | |
# generated workspace file | ||
go.work | ||
go.work.sum | ||
|
||
# docs | ||
.bundle/ | ||
docs_build/ | ||
Gemfile.lock | ||
local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'asciidoctor', '~> 2.0', '>= 2.0.20' | ||
|
||
# Uncomment for ability to render pdf: | ||
# gem 'asciidoctor-pdf', '~> 2.0', '>= 2.0.20' | ||
|
||
# Uncomment for ability to convert Markdown to AsciiDoc | ||
gem 'kramdown-asciidoc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.