Skip to content

Commit 89523a8

Browse files
committed
fix lint
1 parent b396eb8 commit 89523a8

File tree

8 files changed

+216
-0
lines changed

8 files changed

+216
-0
lines changed

docs/api/config.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"hideMemberFields": [
3+
"TypeMeta"
4+
],
5+
"hideTypePatterns": [
6+
"ParseError$",
7+
"List$"
8+
],
9+
"externalPackages": [
10+
{
11+
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$",
12+
"docsURLTemplate": "https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"
13+
},
14+
{
15+
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
16+
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
17+
},
18+
{
19+
"typeMatchPrefix": "^github\\.com/knative/pkg/apis/duck/",
20+
"docsURLTemplate": "https://pkg.go.dev/github.com/knative/pkg/apis/duck/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}"
21+
}
22+
],
23+
"typeDisplayNamePrefixOverrides": {
24+
"k8s.io/api/": "Kubernetes ",
25+
"k8s.io/apimachinery/pkg/apis/": "Kubernetes "
26+
},
27+
"markdownDisabled": false
28+
}

docs/api/members.tpl

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{{ define "members" }}
2+
3+
{{ range .Members }}
4+
{{ if not (hiddenMember .)}}
5+
<tr>
6+
<td>
7+
<code>{{ fieldName . }}</code><br/>
8+
<em>
9+
{{ if linkForType .Type }}
10+
<a href="{{ linkForType .Type}}">
11+
{{ typeDisplayName .Type }}
12+
</a>
13+
{{ else }}
14+
{{ typeDisplayName .Type }}
15+
{{ end }}
16+
</em>
17+
</td>
18+
<td>
19+
{{ if fieldEmbedded . }}
20+
<p>
21+
(Members of <code>{{ fieldName . }}</code> are embedded into this type.)
22+
</p>
23+
{{ end}}
24+
25+
{{ if isOptionalMember .}}
26+
<em>(Optional)</em>
27+
{{ end }}
28+
29+
{{ safe (renderComments .CommentLines) }}
30+
31+
{{ if and (eq (.Type.Name.Name) "ObjectMeta") }}
32+
Refer to the Kubernetes API documentation for the fields of the
33+
<code>metadata</code> field.
34+
{{ end }}
35+
36+
{{ if or (eq (fieldName .) "spec") }}
37+
<br/>
38+
<br/>
39+
<table class="table table-bordered table-striped">
40+
{{ template "members" .Type }}
41+
</table>
42+
{{ end }}
43+
</td>
44+
</tr>
45+
{{ end }}
46+
{{ end }}
47+
48+
{{ end }}

docs/api/pkg.tpl

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{{ define "type" }}
2+
3+
<h3 id="{{ anchorIDForType . }}">
4+
{{- .Name.Name }}
5+
{{ if eq .Kind "Alias" }}(<code>{{.Underlying}}</code> alias)</p>{{ end -}}
6+
<a class="headerlink" href="#{{ anchorIDForType . }}" title="Permanent link">¶</a>
7+
</h3>
8+
{{ with (typeReferences .) }}
9+
<p>
10+
(<em>Appears on: </em>
11+
{{- $prev := "" -}}
12+
{{- range . -}}
13+
{{- if $prev -}},{{ end -}}
14+
{{ $prev = . }}
15+
<a href="{{ linkForType . }}">{{ typeDisplayName . }}</a>
16+
{{- end -}}
17+
)
18+
</p>
19+
{{ end }}
20+
21+
22+
<p>
23+
{{ safe (renderComments .CommentLines) }}
24+
</p>
25+
26+
{{ with (constantsOfType .) }}
27+
<table class="table table-bordered table-striped">
28+
<thead>
29+
<tr>
30+
<th>Value</th>
31+
<th>Description</th>
32+
</tr>
33+
</thead>
34+
<tbody>
35+
{{- range . -}}
36+
<tr>
37+
{{- /*
38+
renderComments implicitly creates a <p> element, so we
39+
add one to the display name as well to make the contents
40+
of the two cells align evenly.
41+
*/ -}}
42+
<td><p>{{ typeDisplayName . }}</p></td>
43+
<td>{{ safe (renderComments .CommentLines) }}</td>
44+
</tr>
45+
{{- end -}}
46+
</tbody>
47+
</table>
48+
{{ end }}
49+
50+
{{ if .Members }}
51+
<table class="table table-bordered table-striped">
52+
<thead>
53+
<tr>
54+
<th>Field</th>
55+
<th>Description</th>
56+
</tr>
57+
</thead>
58+
<tbody>
59+
{{ if isExportedType . }}
60+
<tr>
61+
<td>
62+
<code>apiVersion</code><br/>
63+
string</td>
64+
<td>
65+
<code>
66+
{{apiGroup .}}
67+
</code>
68+
</td>
69+
</tr>
70+
<tr>
71+
<td>
72+
<code>kind</code><br/>
73+
string
74+
</td>
75+
<td><code>{{.Name.Name}}</code></td>
76+
</tr>
77+
{{ end }}
78+
{{ template "members" .}}
79+
</tbody>
80+
</table>
81+
{{ end }}
82+
83+
{{ end }}

docs/api/type.tpl

Whitespace-only changes.

docs/crd/api.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ _Appears in:_
201201
_Appears in:_
202202
- [Consumer](#consumer)
203203

204+
205+
204206
#### ControlPlaneAuth
205207

206208

@@ -227,6 +229,7 @@ ControlPlaneProvider defines the configuration for control plane provider.
227229
| Field | Description |
228230
| --- | --- |
229231
| `endpoints` _string array_ | Endpoints specifies the list of control plane endpoints. |
232+
| `service` _[ProviderService](#providerservice)_ | |
230233
| `tlsVerify` _boolean_ | TlsVerify specifies whether to verify the TLS certificate of the control plane. |
231234
| `auth` _[ControlPlaneAuth](#controlplaneauth)_ | Auth specifies the authentication configurations. |
232235

@@ -402,6 +405,22 @@ _Appears in:_
402405

403406

404407

408+
#### ProviderService
409+
410+
411+
412+
413+
414+
415+
| Field | Description |
416+
| --- | --- |
417+
| `name` _string_ | |
418+
| `port` _integer_ | |
419+
420+
421+
_Appears in:_
422+
- [ControlPlaneProvider](#controlplaneprovider)
423+
405424
#### ProviderType
406425
_Base type:_ `string`
407426

@@ -446,8 +465,21 @@ _Appears in:_
446465
_Appears in:_
447466
- [Credential](#credential)
448467

468+
#### Status
469+
470+
471+
472+
449473

450474

475+
| Field | Description |
476+
| --- | --- |
477+
| `conditions` _[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#condition-v1-meta) array_ | |
478+
479+
480+
_Appears in:_
481+
- [ConsumerStatus](#consumerstatus)
482+
451483
#### Timeout
452484

453485

internal/provider/adc/executor.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
4+
//
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
// See the License for the specific language governing permissions and
11+
// limitations under the License.
12+
113
package adc
214

315
import (

internal/types/types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
4+
//
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
// See the License for the specific language governing permissions and
11+
// limitations under the License.
12+
113
package types
214

315
type NamespacedNameKind struct {

test/e2e/gatewayapi/gatewayproxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ spec:
193193
),
194194
fmt.Sprintf("checking %s condition status", resourceType),
195195
)
196+
time.Sleep(3 * time.Second)
196197
}
197198

198199
var (

0 commit comments

Comments
 (0)