Merge pull request #1043 from btat/api-feedback

Note that not all Rancher CRDs are available through the API yet
This commit is contained in:
Billy Tat
2024-01-10 15:29:16 -08:00
committed by GitHub
4 changed files with 34 additions and 6 deletions
+6
View File
@@ -2,6 +2,12 @@
title: API Reference title: API Reference
--- ---
:::note
At this time, not all Rancher resources are available through the Rancher Kubernetes API.
:::
import ApiDocMdx from '@theme/ApiDocMdx'; import ApiDocMdx from '@theme/ApiDocMdx';
<ApiDocMdx id="rancher-api" /> <ApiDocMdx id="rancher-api" />
+8
View File
@@ -46,6 +46,14 @@ For more information on available kubeconfig options, see the [upstream document
## API kubectl Example ## API kubectl Example
In this example, we'll show how to use kubectl to create a project, followed by deleting it. For a list of other Rancher resources available, refer to the [API Reference](./api-reference.mdx) page.
:::note
At this time, not all Rancher resources are available through the Rancher Kubernetes API.
:::
1. Set your KUBECONFIG environment variable to the kubeconfig file you just created: 1. Set your KUBECONFIG environment variable to the kubeconfig file you just created:
```bash ```bash
@@ -2,6 +2,12 @@
title: API Reference title: API Reference
--- ---
:::note
At this time, not all Rancher resources are available through the Rancher Kubernetes API.
:::
import ApiDocMdx from '@theme/ApiDocMdx'; import ApiDocMdx from '@theme/ApiDocMdx';
<ApiDocMdx id="rancher-api" /> <ApiDocMdx id="rancher-api" />
@@ -46,6 +46,14 @@ For more information on available kubeconfig options, see the [upstream document
## API kubectl Example ## API kubectl Example
In this example, we'll show how to use kubectl to create a project, followed by deleting it. For a list of other Rancher resources available, refer to the [API Reference](./api-reference.mdx) page.
:::note
At this time, not all Rancher resources are available through the Rancher Kubernetes API.
:::
1. Set your KUBECONFIG environment variable to the kubeconfig file you just created: 1. Set your KUBECONFIG environment variable to the kubeconfig file you just created:
```bash ```bash