cdk8s-plus-31 2.2.7 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/.jsii +67 -32
  2. package/docs/java.md +41 -0
  3. package/docs/python.md +41 -0
  4. package/docs/typescript.md +28 -0
  5. package/lib/api-resource.js +2 -2
  6. package/lib/base.js +2 -2
  7. package/lib/config-map.js +1 -1
  8. package/lib/container.js +6 -6
  9. package/lib/cron-job.js +1 -1
  10. package/lib/daemon-set.js +1 -1
  11. package/lib/deployment.d.ts +12 -0
  12. package/lib/deployment.js +6 -4
  13. package/lib/handler.js +1 -1
  14. package/lib/horizontal-pod-autoscaler.js +4 -4
  15. package/lib/imports/k8s.js +154 -154
  16. package/lib/ingress.js +2 -2
  17. package/lib/job.js +1 -1
  18. package/lib/namespace.js +2 -2
  19. package/lib/network-policy.js +3 -3
  20. package/lib/pod.js +16 -16
  21. package/lib/probe.js +1 -1
  22. package/lib/pv.js +4 -4
  23. package/lib/pvc.js +1 -1
  24. package/lib/role-binding.js +4 -4
  25. package/lib/role.js +2 -2
  26. package/lib/secret.js +6 -6
  27. package/lib/service-account.js +1 -1
  28. package/lib/service.js +1 -1
  29. package/lib/stateful-set.js +2 -2
  30. package/lib/volume.js +1 -1
  31. package/lib/workload.js +2 -2
  32. package/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  33. package/node_modules/brace-expansion/README.md +6 -0
  34. package/node_modules/brace-expansion/index.js +86 -84
  35. package/node_modules/brace-expansion/package.json +4 -5
  36. package/node_modules/minimatch/LICENSE +1 -1
  37. package/node_modules/minimatch/README.md +289 -65
  38. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  39. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  40. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  41. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  42. package/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  43. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  44. package/node_modules/minimatch/dist/commonjs/ast.js +592 -0
  45. package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  46. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  47. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  48. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  49. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  50. package/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  51. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  52. package/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  53. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  54. package/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  55. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  56. package/node_modules/minimatch/dist/commonjs/index.js +1017 -0
  57. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  58. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  59. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  60. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  61. package/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  62. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  63. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  64. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  65. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  66. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  67. package/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  68. package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  69. package/node_modules/minimatch/dist/esm/ast.js +588 -0
  70. package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  71. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  72. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  73. package/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  74. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  75. package/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  76. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  77. package/node_modules/minimatch/dist/esm/escape.js +18 -0
  78. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  79. package/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  80. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  81. package/node_modules/minimatch/dist/esm/index.js +1001 -0
  82. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  83. package/node_modules/minimatch/dist/esm/package.json +3 -0
  84. package/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  85. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  86. package/node_modules/minimatch/dist/esm/unescape.js +20 -0
  87. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  88. package/node_modules/minimatch/package.json +62 -13
  89. package/package.json +9 -9
  90. package/node_modules/concat-map/.travis.yml +0 -4
  91. package/node_modules/concat-map/LICENSE +0 -18
  92. package/node_modules/concat-map/README.markdown +0 -62
  93. package/node_modules/concat-map/example/map.js +0 -6
  94. package/node_modules/concat-map/index.js +0 -13
  95. package/node_modules/concat-map/package.json +0 -43
  96. package/node_modules/concat-map/test/map.js +0 -39
  97. package/node_modules/minimatch/minimatch.js +0 -947
@@ -1,4 +1,3 @@
1
- var concatMap = require('concat-map');
2
1
  var balanced = require('balanced-match');
3
2
 
4
3
  module.exports = expandTop;
@@ -79,10 +78,6 @@ function expandTop(str) {
79
78
  return expand(escapeBraces(str), true).map(unescapeBraces);
80
79
  }
81
80
 
82
- function identity(e) {
83
- return e;
84
- }
85
-
86
81
  function embrace(str) {
87
82
  return '{' + str + '}';
88
83
  }
@@ -101,42 +96,7 @@ function expand(str, isTop) {
101
96
  var expansions = [];
102
97
 
103
98
  var m = balanced('{', '}', str);
104
- if (!m || /\$$/.test(m.pre)) return [str];
105
-
106
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
107
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
108
- var isSequence = isNumericSequence || isAlphaSequence;
109
- var isOptions = m.body.indexOf(',') >= 0;
110
- if (!isSequence && !isOptions) {
111
- // {a},b}
112
- if (m.post.match(/,(?!,).*\}/)) {
113
- str = m.pre + '{' + m.body + escClose + m.post;
114
- return expand(str);
115
- }
116
- return [str];
117
- }
118
-
119
- var n;
120
- if (isSequence) {
121
- n = m.body.split(/\.\./);
122
- } else {
123
- n = parseCommaParts(m.body);
124
- if (n.length === 1) {
125
- // x{{a,b}}y ==> x{a}y x{b}y
126
- n = expand(n[0], false).map(embrace);
127
- if (n.length === 1) {
128
- var post = m.post.length
129
- ? expand(m.post, false)
130
- : [''];
131
- return post.map(function(p) {
132
- return m.pre + n[0] + p;
133
- });
134
- }
135
- }
136
- }
137
-
138
- // at this point, n is the parts, and we know it's not a comma set
139
- // with a single entry.
99
+ if (!m) return [str];
140
100
 
141
101
  // no need to expand pre, since it is guaranteed to be free of brace-sets
142
102
  var pre = m.pre;
@@ -144,55 +104,97 @@ function expand(str, isTop) {
144
104
  ? expand(m.post, false)
145
105
  : [''];
146
106
 
147
- var N;
148
-
149
- if (isSequence) {
150
- var x = numeric(n[0]);
151
- var y = numeric(n[1]);
152
- var width = Math.max(n[0].length, n[1].length)
153
- var incr = n.length == 3
154
- ? Math.abs(numeric(n[2]))
155
- : 1;
156
- var test = lte;
157
- var reverse = y < x;
158
- if (reverse) {
159
- incr *= -1;
160
- test = gte;
107
+ if (/\$$/.test(m.pre)) {
108
+ for (var k = 0; k < post.length; k++) {
109
+ var expansion = pre+ '{' + m.body + '}' + post[k];
110
+ expansions.push(expansion);
111
+ }
112
+ } else {
113
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
114
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
115
+ var isSequence = isNumericSequence || isAlphaSequence;
116
+ var isOptions = m.body.indexOf(',') >= 0;
117
+ if (!isSequence && !isOptions) {
118
+ // {a},b}
119
+ if (m.post.match(/,(?!,).*\}/)) {
120
+ str = m.pre + '{' + m.body + escClose + m.post;
121
+ return expand(str);
122
+ }
123
+ return [str];
124
+ }
125
+
126
+ var n;
127
+ if (isSequence) {
128
+ n = m.body.split(/\.\./);
129
+ } else {
130
+ n = parseCommaParts(m.body);
131
+ if (n.length === 1) {
132
+ // x{{a,b}}y ==> x{a}y x{b}y
133
+ n = expand(n[0], false).map(embrace);
134
+ if (n.length === 1) {
135
+ return post.map(function(p) {
136
+ return m.pre + n[0] + p;
137
+ });
138
+ }
139
+ }
161
140
  }
162
- var pad = n.some(isPadded);
163
-
164
- N = [];
165
-
166
- for (var i = x; test(i, y); i += incr) {
167
- var c;
168
- if (isAlphaSequence) {
169
- c = String.fromCharCode(i);
170
- if (c === '\\')
171
- c = '';
172
- } else {
173
- c = String(i);
174
- if (pad) {
175
- var need = width - c.length;
176
- if (need > 0) {
177
- var z = new Array(need + 1).join('0');
178
- if (i < 0)
179
- c = '-' + z + c.slice(1);
180
- else
181
- c = z + c;
141
+
142
+ // at this point, n is the parts, and we know it's not a comma set
143
+ // with a single entry.
144
+ var N;
145
+
146
+ if (isSequence) {
147
+ var x = numeric(n[0]);
148
+ var y = numeric(n[1]);
149
+ var width = Math.max(n[0].length, n[1].length)
150
+ var incr = n.length == 3
151
+ ? Math.abs(numeric(n[2]))
152
+ : 1;
153
+ var test = lte;
154
+ var reverse = y < x;
155
+ if (reverse) {
156
+ incr *= -1;
157
+ test = gte;
158
+ }
159
+ var pad = n.some(isPadded);
160
+
161
+ N = [];
162
+
163
+ for (var i = x; test(i, y); i += incr) {
164
+ var c;
165
+ if (isAlphaSequence) {
166
+ c = String.fromCharCode(i);
167
+ if (c === '\\')
168
+ c = '';
169
+ } else {
170
+ c = String(i);
171
+ if (pad) {
172
+ var need = width - c.length;
173
+ if (need > 0) {
174
+ var z = new Array(need + 1).join('0');
175
+ if (i < 0)
176
+ c = '-' + z + c.slice(1);
177
+ else
178
+ c = z + c;
179
+ }
182
180
  }
183
181
  }
182
+ N.push(c);
183
+ }
184
+ } else {
185
+ N = [];
186
+
187
+ for (var j = 0; j < n.length; j++) {
188
+ N.push.apply(N, expand(n[j], false));
184
189
  }
185
- N.push(c);
186
190
  }
187
- } else {
188
- N = concatMap(n, function(el) { return expand(el, false) });
189
- }
190
191
 
191
- for (var j = 0; j < N.length; j++) {
192
- for (var k = 0; k < post.length; k++) {
193
- var expansion = pre + N[j] + post[k];
194
- if (!isTop || isSequence || expansion)
195
- expansions.push(expansion);
192
+ for (var j = 0; j < N.length; j++) {
193
+ for (var k = 0; k < post.length; k++) {
194
+ var expansion = pre + N[j] + post[k];
195
+ if (!isTop || isSequence || expansion)
196
+ expansions.push(expansion);
197
+ }
196
198
  }
197
199
  }
198
200
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "brace-expansion",
3
3
  "description": "Brace expansion as known from sh/bash",
4
- "version": "1.1.12",
4
+ "version": "2.0.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/juliangruber/brace-expansion.git"
@@ -14,11 +14,10 @@
14
14
  "bench": "matcha test/perf/bench.js"
15
15
  },
16
16
  "dependencies": {
17
- "balanced-match": "^1.0.0",
18
- "concat-map": "0.0.1"
17
+ "balanced-match": "^1.0.0"
19
18
  },
20
19
  "devDependencies": {
21
- "matcha": "^0.7.0",
20
+ "@c4312/matcha": "^1.3.1",
22
21
  "tape": "^4.6.0"
23
22
  },
24
23
  "keywords": [],
@@ -45,6 +44,6 @@
45
44
  ]
46
45
  },
47
46
  "publishConfig": {
48
- "tag": "1.x"
47
+ "tag": "2.x"
49
48
  }
50
49
  }
@@ -1,6 +1,6 @@
1
1
  The ISC License
2
2
 
3
- Copyright (c) Isaac Z. Schlueter and Contributors
3
+ Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above