Skip to content

Commit

Permalink
Merge pull request kubernetes#49338 from tengqm/fix-fg-2
Browse files Browse the repository at this point in the history
Fix feature gate name conflicts (2/2)
  • Loading branch information
k8s-ci-robot authored Jan 8, 2025
2 parents 0a218ec + 3782732 commit d506ce0
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/en/docs/concepts/overview/kubernetes-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ checks).

### OpenAPI V3

{{< feature-state feature_gate_name="OpenAPIV3" >}}

Kubernetes supports publishing a description of its APIs as OpenAPI v3.

A discovery endpoint `/openapi/v3` is provided to see a list of all
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Accelerators
content_type: feature_gate

_build:
list: never
render: false

stages:
- stage: alpha
defaultValue: false
fromVersion: "1.6"
toVersion: "1.10"
- stage: deprecated
fromVersion: "1.11"
toVersion: "1.11"

removed: true
---
Provided an early form of plugin to enable Nvidia GPU support when using
Docker Engine; no longer available. See
[Device Plugins](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/) for
an alternative.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: AppArmor
content_type: feature_gate
_build:
list: never
render: false

stages:
- stage: beta
defaultValue: true
fromVersion: "1.4"
toVersion: "1.30"
- stage: stable
defaultValue: true
fromVersion: "1.31"
---
Enable use of AppArmor mandatory access control for Pods running on Linux nodes.
See [AppArmor Tutorial](/docs/tutorials/security/apparmor/) for more details.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Initializers
content_type: feature_gate

_build:
list: never
render: false

stages:
- stage: alpha
defaultValue: false
fromVersion: "1.7"
toVersion: "1.13"
- stage: deprecated
fromVersion: "1.14"
toVersion: "1.14"

removed: true
---
Allow asynchronous coordination of object creation using the
Initializers admission plugin.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: KMSv1
content_type: feature_gate
_build:
list: never
render: false

stages:
- stage: deprecated
defaultValue: true
fromVersion: "1.28"
toVersion: "1.28"
- stage: deprecated
defaultValue: false
fromVersion: "1.29"

---
Enables KMS v1 API for encryption at rest. See
[Using a KMS Provider for data encryption](/docs/tasks/administer-cluster/kms-provider)
for more details.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: KMSv2
content_type: feature_gate
_build:
list: never
render: false

stages:
- stage: alpha
defaultValue: false
fromVersion: "1.25"
toVersion: "1.26"
- stage: beta
defaultValue: true
fromVersion: "1.27"
toVersion: "1.28"
- stage: stable
defaultValue: true
fromVersion: "1.29"
toVersion: "1.31"

removed: true
---
Enables KMS v2 API for encryption at rest. See
[Using a KMS Provider for data encryption](/docs/tasks/administer-cluster/kms-provider)
for more details.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: OpenAPIV3
content_type: feature_gate
_build:
list: never
render: false

stages:
- stage: alpha
defaultValue: false
fromVersion: "1.23"
toVersion: "1.23"
- stage: beta
defaultValue: true
fromVersion: "1.24"
toVersion: "1.26"
- stage: stable
defaultValue: true
fromVersion: "1.27"
toVersion: "1.28"
removed: true
---
Enables the API server to publish OpenAPI v3.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Sysctls
content_type: feature_gate

_build:
list: never
render: false

stages:
- stage: beta
defaultValue: true
fromVersion: "1.11"
toVersion: "1.20"
- stage: stable
defaultValue: true
fromVersion: "1.21"
toVersion: "1.22"

removed: true
---
Enable support for namespaced kernel parameters (sysctls) that can be set for each pod.
See [sysctls](/docs/tasks/administer-cluster/sysctl-cluster/) for more details.

2 changes: 2 additions & 0 deletions content/en/docs/tutorials/security/apparmor.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ weight: 30

<!-- overview -->

{{< feature-state feature_gate_name="AppArmor" >}}

This page shows you how to load AppArmor profiles on your nodes and enforce
those profiles in Pods. To learn more about how Kubernetes can confine Pods using
AppArmor, see
Expand Down
4 changes: 4 additions & 0 deletions layouts/shortcodes/feature-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
{{- end -}}
{{- end -}}

{{- if not $featureGateFound -}}
{{- errorf "Invalid feature gate: '%s' is not recognized or lacks a matching description file in '%s'" $feature_gate_name (print "en" $featureGateDescriptionFilesPath) -}}
{{- end -}}

{{- end -}}
{{- end -}}
{{ end }}

0 comments on commit d506ce0

Please sign in to comment.