-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add structs for vcluster configuration defaults & validation
- Loading branch information
1 parent
87dac6b
commit 56a1d92
Showing
4,412 changed files
with
99,838 additions
and
19 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,17 @@ | ||
|
||
import PartialAccessreference from "./access_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
## `access` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialAccessreference /> | ||
|
||
|
||
</details> |
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,17 @@ | ||
|
||
import PartialAuditreference from "./audit_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
### `audit` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialAuditreference /> | ||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/access/audit/enabled.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
#### `enabled` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">boolean</span> <span className="config-field-default">false</span> <span className="config-field-enum"></span> {#access-audit-enabled} | ||
|
||
|
||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
#### `level` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">integer</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-level} | ||
|
||
TODO validate log levels | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/access/audit/policy.mdx
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,17 @@ | ||
|
||
import PartialPolicyreference from "./policy_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
#### `policy` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialPolicyreference /> | ||
|
||
|
||
</details> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/access/audit/policy/rules.mdx
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,17 @@ | ||
|
||
import PartialRulesreference from "./rules_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
##### `rules` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">object[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialRulesreference /> | ||
|
||
|
||
</details> |
14 changes: 14 additions & 0 deletions
14
docs/pages/configuration/_partials/access/audit/policy/rules/apiGroups.mdx
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,14 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
###### `apiGroups` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules-apiGroups} | ||
|
||
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of | ||
the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
15 changes: 15 additions & 0 deletions
15
docs/pages/configuration/_partials/access/audit/policy/rules/nonResourceURLs.mdx
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,15 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
###### `nonResourceURLs` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules-nonResourceURLs} | ||
|
||
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path | ||
Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. | ||
Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/access/audit/policy/rules/resourceNames.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
###### `resourceNames` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules-resourceNames} | ||
|
||
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/access/audit/policy/rules/resources.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
###### `resources` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules-resources} | ||
|
||
Resources is a list of resources this rule applies to. '*' represents all resources. | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/access/audit/policy/rules/verbs.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
###### `verbs` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules-verbs} | ||
|
||
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. | ||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
20 changes: 20 additions & 0 deletions
20
docs/pages/configuration/_partials/access/audit/policy/rules_reference.mdx
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,20 @@ | ||
|
||
import PartialVerbs from "./rules/verbs.mdx" | ||
import PartialApigroups from "./rules/apiGroups.mdx" | ||
import PartialResources from "./rules/resources.mdx" | ||
import PartialResourcenames from "./rules/resourceNames.mdx" | ||
import PartialNonresourceurls from "./rules/nonResourceURLs.mdx" | ||
|
||
<PartialVerbs /> | ||
|
||
|
||
<PartialApigroups /> | ||
|
||
|
||
<PartialResources /> | ||
|
||
|
||
<PartialResourcenames /> | ||
|
||
|
||
<PartialNonresourceurls /> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/access/audit/policy_reference.mdx
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,17 @@ | ||
|
||
import PartialRulesreference from "./policy/rules_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true"> | ||
<summary> | ||
|
||
##### `rules` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">object[]</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy-rules} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialRulesreference /> | ||
|
||
|
||
</details> |
25 changes: 25 additions & 0 deletions
25
docs/pages/configuration/_partials/access/audit_reference.mdx
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,25 @@ | ||
|
||
import PartialEnabled from "./audit/enabled.mdx" | ||
import PartialLevel from "./audit/level.mdx" | ||
import PartialPolicyreference from "./audit/policy_reference.mdx" | ||
|
||
<PartialEnabled /> | ||
|
||
|
||
<PartialLevel /> | ||
|
||
|
||
|
||
<details className="config-field" data-expandable="true"> | ||
<summary> | ||
|
||
#### `policy` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit-policy} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialPolicyreference /> | ||
|
||
|
||
</details> |
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,17 @@ | ||
|
||
import PartialAuditreference from "./access/audit_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true"> | ||
<summary> | ||
|
||
### `audit` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#access-audit} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialAuditreference /> | ||
|
||
|
||
</details> |
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,17 @@ | ||
|
||
import PartialControlplanereference from "./controlPlane_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
## `controlPlane` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#controlPlane} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialControlplanereference /> | ||
|
||
|
||
</details> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/controlPlane/advanced.mdx
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,17 @@ | ||
|
||
import PartialAdvancedreference from "./advanced_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
### `advanced` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#controlPlane-advanced} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialAdvancedreference /> | ||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/controlPlane/advanced/defaultImageRegistry.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
#### `defaultImageRegistry` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">string</span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#controlPlane-advanced-defaultImageRegistry} | ||
|
||
|
||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
13 changes: 13 additions & 0 deletions
13
docs/pages/configuration/_partials/controlPlane/advanced/headless.mdx
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,13 @@ | ||
|
||
<details className="config-field" data-expandable="false" open> | ||
<summary> | ||
|
||
#### `headless` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type">boolean</span> <span className="config-field-default">false</span> <span className="config-field-enum"></span> {#controlPlane-advanced-headless} | ||
|
||
|
||
|
||
</summary> | ||
|
||
|
||
|
||
</details> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/controlPlane/advanced/metadata.mdx
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,17 @@ | ||
|
||
import PartialMetadatareference from "./metadata_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
#### `metadata` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#controlPlane-advanced-metadata} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialMetadatareference /> | ||
|
||
|
||
</details> |
17 changes: 17 additions & 0 deletions
17
docs/pages/configuration/_partials/controlPlane/advanced/metadata/allResources.mdx
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,17 @@ | ||
|
||
import PartialAllresourcesreference from "./allResources_reference.mdx" | ||
|
||
|
||
<details className="config-field" data-expandable="true" open> | ||
<summary> | ||
|
||
##### `allResources` <span className="config-field-required" data-required="false">required</span> <span className="config-field-type"></span> <span className="config-field-default"></span> <span className="config-field-enum"></span> {#controlPlane-advanced-metadata-allResources} | ||
|
||
|
||
|
||
</summary> | ||
|
||
<PartialAllresourcesreference /> | ||
|
||
|
||
</details> |
Oops, something went wrong.