Skip to content
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

api: support release channel #2549

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/v1alpha1/securitypolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.conditions[?(@.type=="Accepted")].reason`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:metadata:annotations="gateway.envoyproxy.io/release-channel=experimental"

// SecurityPolicy allows the user to configure various security settings for a
// Gateway.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
gateway.envoyproxy.io/release-channel: experimental
name: securitypolicies.gateway.envoyproxy.io
spec:
group: gateway.envoyproxy.io
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,7 @@ _Appears in:_

#### SecurityPolicy


_Release Channel:_ experimental

SecurityPolicy allows the user to configure various security settings for a Gateway.

Expand Down
9 changes: 9 additions & 0 deletions tools/crd-ref-docs/templates/type.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

#### {{ $type.Name }}

{{ $metaList := index .Markers "kubebuilder:metadata" }}
{{- range $meta := $metaList -}}
{{- range $anno := $meta.Annotations -}}
{{- if hasPrefix "gateway.envoyproxy.io/release-channel" $anno -}}
_Release Channel:_ {{ trimPrefix "gateway.envoyproxy.io/release-channel=" $anno }}
{{- end -}}
{{- end -}}
{{- end -}}

{{ if $type.IsAlias }}_Underlying type:_ _{{ markdownRenderTypeLink $type.UnderlyingType }}_{{ end }}

{{ $type.Doc }}
Expand Down
Loading