Skip to content

Commit 2c952fc

Browse files
ldbjsonnet-libs-bot
authored andcommitted
update: source github.com/jsonnet-libs/k8s@2e2c008b
1 parent 7d51301 commit 2c952fc

File tree

97 files changed

+38043
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+38043
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
local d = import 'doc-util/main.libsonnet';
2+
3+
local patch = {
4+
local matchMixin = {
5+
local headersPatch = {
6+
'#withExact': d.fn(
7+
'`withExact` matches the header in an exact string',
8+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
9+
),
10+
withExact(header, value):
11+
{ [header]: { exact: value } },
12+
13+
'#withPrefix': d.fn(
14+
'`withPrefix` matches the header in an prefix-based',
15+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
16+
),
17+
withPrefix(header, value):
18+
{ [header]: { prefix: value } },
19+
20+
'#withRegex': d.fn(
21+
'`withRegex` matches the header in an RE2 style regex-based',
22+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
23+
),
24+
withRegex(header, value):
25+
{ [header]: { regex: value } },
26+
27+
'#withExactMixin': d.fn(
28+
'`withExact` matches the header in an exact string',
29+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
30+
),
31+
withExactMixin(header, value):
32+
{ [header]+: { exact: value } },
33+
34+
'#withPrefixMixin': d.fn(
35+
'`withPrefix` matches the header in an prefix-based',
36+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
37+
),
38+
withPrefixMixin(header, value):
39+
{ [header]+: { prefix: value } },
40+
41+
'#withRegexMixin': d.fn(
42+
'`withRegex` matches the header in an RE2 style regex-based',
43+
[d.arg('header', d.T.string), d.arg('value', d.T.string)]
44+
),
45+
withRegexMixin(header, value):
46+
{ [header]+: { regex: value } },
47+
},
48+
49+
// headers+: headersPatch,
50+
headers: headersPatch,
51+
withoutHeaders+: headersPatch,
52+
53+
queryParams+: {
54+
'#withExact': d.fn(
55+
'`withExact` matches the header in an exact string',
56+
[d.arg('key', d.T.string), d.arg('value', d.T.string)]
57+
),
58+
withExact(key, value):
59+
{ [key]: { exact: value } },
60+
61+
'#withRegex': d.fn(
62+
'`withRegex` matches the header in an RE2 style regex-based',
63+
[d.arg('key', d.T.string), d.arg('value', d.T.string)]
64+
),
65+
withRegex(key, value):
66+
{ [key]: { regex: value } },
67+
68+
'#withExactMixin': d.fn(
69+
'`withExact` matches the header in an exact string',
70+
[d.arg('key', d.T.string), d.arg('value', d.T.string)]
71+
),
72+
withExactMixin(key, value):
73+
{ [key]+: { exact: value } },
74+
75+
'#withRegexMixin': d.fn(
76+
'`withRegex` matches the header in an RE2 style regex-based',
77+
[d.arg('key', d.T.string), d.arg('value', d.T.string)]
78+
),
79+
withRegexMixin(key, value):
80+
{ [key]+: { regex: value } },
81+
},
82+
},
83+
84+
virtualService+: {
85+
spec+: {
86+
http+: {
87+
match+: matchMixin,
88+
},
89+
},
90+
},
91+
};
92+
93+
{
94+
networking+: {
95+
v1beta1+: patch,
96+
v1alpha3+: patch,
97+
},
98+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
local d = (import 'doc-util/main.libsonnet'),
3+
'#':: d.pkg(name='extensions', url='', help=''),
4+
v1alpha1: (import 'v1alpha1/main.libsonnet'),
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
local d = (import 'doc-util/main.libsonnet'),
3+
'#':: d.pkg(name='v1alpha1', url='', help=''),
4+
wasmPlugin: (import 'wasmPlugin.libsonnet'),
5+
}

1.23/_gen/extensions/v1alpha1/wasmPlugin.libsonnet

Lines changed: 146 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
local d = (import 'doc-util/main.libsonnet'),
3+
'#':: d.pkg(name='networking', url='', help=''),
4+
v1: (import 'v1/main.libsonnet'),
5+
v1alpha3: (import 'v1alpha3/main.libsonnet'),
6+
v1beta1: (import 'v1beta1/main.libsonnet'),
7+
}

1.23/_gen/networking/v1/destinationRule.libsonnet

Lines changed: 763 additions & 0 deletions
Large diffs are not rendered by default.

1.23/_gen/networking/v1/gateway.libsonnet

Lines changed: 124 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
local d = (import 'doc-util/main.libsonnet'),
3+
'#':: d.pkg(name='v1', url='', help=''),
4+
destinationRule: (import 'destinationRule.libsonnet'),
5+
gateway: (import 'gateway.libsonnet'),
6+
serviceEntry: (import 'serviceEntry.libsonnet'),
7+
sidecar: (import 'sidecar.libsonnet'),
8+
virtualService: (import 'virtualService.libsonnet'),
9+
workloadEntry: (import 'workloadEntry.libsonnet'),
10+
workloadGroup: (import 'workloadGroup.libsonnet'),
11+
}

1.23/_gen/networking/v1/serviceEntry.libsonnet

Lines changed: 122 additions & 0 deletions
Large diffs are not rendered by default.

1.23/_gen/networking/v1/sidecar.libsonnet

Lines changed: 250 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)