Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbc699b

Browse files
chore: set default requests/limits in helm chart (#16844)
closes#16825 - my first commit from across the pond 😄---------Co-authored-by: Claude <noreply@anthropic.com>
1 parentd566008 commitcbc699b

File tree

82 files changed

+1900
-74
lines changed

Some content is hidden

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

82 files changed

+1900
-74
lines changed

‎helm/coder/tests/chart_test.go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ var testCases = []testCase{
117117
name:"securitycontext",
118118
expectedError:"",
119119
},
120+
{
121+
name:"custom_resources",
122+
expectedError:"",
123+
},
124+
{
125+
name:"partial_resources",
126+
expectedError:"",
127+
},
120128
}
121129

122130
typetestCasestruct {

‎helm/coder/tests/testdata/auto_access_url_1.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,13 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184-
resources: {}
184+
resources:
185+
limits:
186+
cpu: 2000m
187+
memory: 4096Mi
188+
requests:
189+
cpu: 2000m
190+
memory: 4096Mi
185191
securityContext:
186192
allowPrivilegeEscalation: false
187193
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/auto_access_url_1_coder.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,13 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184-
resources: {}
184+
resources:
185+
limits:
186+
cpu: 2000m
187+
memory: 4096Mi
188+
requests:
189+
cpu: 2000m
190+
memory: 4096Mi
185191
securityContext:
186192
allowPrivilegeEscalation: false
187193
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/auto_access_url_2.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,13 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184-
resources: {}
184+
resources:
185+
limits:
186+
cpu: 2000m
187+
memory: 4096Mi
188+
requests:
189+
cpu: 2000m
190+
memory: 4096Mi
185191
securityContext:
186192
allowPrivilegeEscalation: false
187193
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/auto_access_url_2_coder.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,13 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184-
resources: {}
184+
resources:
185+
limits:
186+
cpu: 2000m
187+
memory: 4096Mi
188+
requests:
189+
cpu: 2000m
190+
memory: 4096Mi
185191
securityContext:
186192
allowPrivilegeEscalation: false
187193
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/auto_access_url_3.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ spec:
179179
path: /healthz
180180
port: http
181181
scheme: HTTP
182-
resources: {}
182+
resources:
183+
limits:
184+
cpu: 2000m
185+
memory: 4096Mi
186+
requests:
187+
cpu: 2000m
188+
memory: 4096Mi
183189
securityContext:
184190
allowPrivilegeEscalation: false
185191
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/auto_access_url_3_coder.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ spec:
179179
path: /healthz
180180
port: http
181181
scheme: HTTP
182-
resources: {}
182+
resources:
183+
limits:
184+
cpu: 2000m
185+
memory: 4096Mi
186+
requests:
187+
cpu: 2000m
188+
memory: 4096Mi
183189
securityContext:
184190
allowPrivilegeEscalation: false
185191
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/command.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ spec:
179179
path: /healthz
180180
port: http
181181
scheme: HTTP
182-
resources: {}
182+
resources:
183+
limits:
184+
cpu: 2000m
185+
memory: 4096Mi
186+
requests:
187+
cpu: 2000m
188+
memory: 4096Mi
183189
securityContext:
184190
allowPrivilegeEscalation: false
185191
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/command_args.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ spec:
180180
path: /healthz
181181
port: http
182182
scheme: HTTP
183-
resources: {}
183+
resources:
184+
limits:
185+
cpu: 2000m
186+
memory: 4096Mi
187+
requests:
188+
cpu: 2000m
189+
memory: 4096Mi
184190
securityContext:
185191
allowPrivilegeEscalation: false
186192
readOnlyRootFilesystem: null

‎helm/coder/tests/testdata/command_args_coder.golden‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ spec:
180180
path: /healthz
181181
port: http
182182
scheme: HTTP
183-
resources: {}
183+
resources:
184+
limits:
185+
cpu: 2000m
186+
memory: 4096Mi
187+
requests:
188+
cpu: 2000m
189+
memory: 4096Mi
184190
securityContext:
185191
allowPrivilegeEscalation: false
186192
readOnlyRootFilesystem: null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp