-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate access control example to documentation website #6572
base: main
Are you sure you want to change the base?
Conversation
This commit migrates the access control example to the documentation website, converting the existing README into a page formatted for the production website. It also cleans up the frontmatter of the surrounding documents so that pages can be more easily re-arranged in the future. The converted page make use of single source embedded code blocks using files in the GitHub repository, as well as a highlighting feature of code blocks that has not been used in previous documentation.
✅ Deploy Preview will be available once build job completes!
|
for more information, see https://pre-commit.ci
…es-ingress into docs/example-migration
@@ -1,96 +1,3 @@ | |||
# Access Control | |||
# Deploy an Access Control policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Access Control is a feature and policy is one of the steps so the original title is apt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original title does not describe the intent of the document, and the new one is matched to the website document, which is written as an instruction.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6572 +/- ##
==========================================
- Coverage 53.08% 53.00% -0.08%
==========================================
Files 87 87
Lines 16200 16223 +23
==========================================
Hits 8599 8599
- Misses 7194 7217 +23
Partials 407 407 ☔ View full report in Codecov by Sentry. |
IC_IP=<ip-address> | ||
``` | ||
|
||
2. The HTTP port of the same instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. The HTTP port of the same instance | |
2. The HTTP port of the same instance. |
|
||
{{< ghcode "https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/refs/heads/main/examples/custom-resources/access-control/webapp.yaml" >}} | ||
|
||
Apply it using *kubectl*: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should 'kubectl' be formatted as code instead?
|
||
## Configure load balancing | ||
|
||
Create a file named *virtual-server.yaml* for the VirtualServer resource. The *policies* field references the example application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a file named *virtual-server.yaml* for the VirtualServer resource. The *policies* field references the example application. | |
Create a file named *virtual-server.yaml* for the VirtualServer resource. The *policies* field references the access control Policy created in the previous section. |
|
||
--- | ||
|
||
## Deploy an Access Control policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Deploy an Access Control policy | |
## Deploy a Policy to deny access to your app |
|
||
--- | ||
|
||
## Update the policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Update the policy | |
## Deploy a Policy to allow access to your app |
Proposed changes
This pull request migrates the access control example to the documentation website, converting the existing README into a page formatted for the production website. It also cleans up the frontmatter of the surrounding documents so that pages can be more easily re-arranged in the future.
The converted page makes use of single source embedded code blocks using files in the GitHub repository, as well as a highlighting feature of code blocks that has not been used in previous documentation.
Checklist
Before creating a PR, run through this checklist and mark each as complete.