Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Jun 6, 2024
1 parent 97b2501 commit c61ae14
Show file tree
Hide file tree
Showing 8 changed files with 533 additions and 405 deletions.
1 change: 1 addition & 0 deletions apis/v1alpha1/clientsettingspolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
)

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha1/nginxgateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v1alpha1

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha1/nginxproxy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v1alpha1

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:categories=nginx-gateway-fabric,scope=Cluster
Expand Down
2 changes: 1 addition & 1 deletion apis/v1alpha1/observabilitypolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
)

// +genclient
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
Expand All @@ -27,7 +28,6 @@ type ObservabilityPolicy struct {
}

// +kubebuilder:object:root=true

// ObservabilityPolicyList contains a list of ObservabilityPolicies.
type ObservabilityPolicyList struct {
metav1.TypeMeta `json:",inline"`
Expand Down
8 changes: 3 additions & 5 deletions site/config/api/pkg.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: "API Reference"
description: "NGINX Gateway API Reference"
weight: 100
toc: true
toc: false
---

{{ with .packages}}
Expand All @@ -24,15 +24,13 @@ toc: true

{{ with (index .GoPackages 0 )}}
{{ with .DocComments }}
<div>
<p>
{{ safe (renderComments .) }}
</div>
</p>
{{ end }}
{{ end }}

{{- if (gt 0 (len (visibleTypes (sortedTypes .Types)))) -}}
Resource Types:
{{- end -}}
<ul>
{{- range (visibleTypes (sortedTypes .Types)) -}}
{{ if isExportedType . -}}
Expand Down
12 changes: 7 additions & 5 deletions site/config/api/type.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@

<h3 id="{{ anchorIDForType . }}">
{{- .Name.Name }}
{{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias){{ end -}}
{{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
<a class="headerlink" href="#{{ anchorIDForType . }}" title="Permanent link">¶</a>
</h3>
{{ with (typeReferences .) }}
<p>
(<em>Appears on: </em>
{{- $prev := "" -}}
{{- range . -}}
{{- if $prev -}}, {{ end -}}
{{- $prev = . -}}
{{- if $prev -}},{{ end -}}
{{ $prev = . }}
<a href="{{ linkForType . }}">{{ typeDisplayName . }}</a>
{{- end -}}
)
</p>
{{ end }}

<div>

<p>
{{ safe (renderComments .CommentLines) }}
</div>
</p>

{{ with (constantsOfType .) }}
<table class="table table-bordered table-striped">
Expand Down
2 changes: 2 additions & 0 deletions site/content/how-to/monitoring/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ To enable tracing, you must configure two resources:

- `ObservabilityPolicy`: This resource is a [Direct PolicyAttachment](https://gateway-api.sigs.k8s.io/reference/policy-attachment/) that targets HTTPRoutes or GRPCRoutes. It is created by the [application developer](https://gateway-api.sigs.k8s.io/concepts/roles-and-personas/) and enables tracing for a specific route or routes. It requires the `NginxProxy` resource to exist in order to complete the tracing configuration.

Foe all the possible configuration options for these resources, see the [API reference]({{< relref "reference/api.md" >}}).

### Install NGINX Gateway Fabric with global tracing configuration

{{< note >}}Ensure that you [install the Gateway API resources]({{< relref "installation/installing-ngf/helm.md#installing-the-gateway-api-resources" >}}).{{< /note >}}
Expand Down
Loading

0 comments on commit c61ae14

Please sign in to comment.