Skip to content

Commit

Permalink
add windows deployment in e2e-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
TmNguyen12 committed Dec 20, 2024
1 parent 0fa5039 commit ed40376
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
43 changes: 43 additions & 0 deletions charts/internal/e2e-resources/templates/windows-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- if .Values.windows.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-server-2019
labels:
app: windows-server-2019
spec:
replicas: 1
selector:
matchLabels:
app: windows-server-2019
template:
metadata:
labels:
app: windows-server-2019
spec:
nodeSelector:
kubernetes.io/os: windows
tolerations:
- key: "os"
operator: "Equal"
value: "windows"
effect: "NoSchedule"
containers:
- name: windows-server-2019
image: mcr.microsoft.com/windows/servercore:ltsc2019
resources:
requests:
cpu: "1"
memory: "2Gi"
limits:
cpu: "2"
memory: "4Gi"
command:
- powershell
- " -Command"
- |
while ($true) {
Write-Host "Random Text: $(Get-Random)";
Start-Sleep -Seconds 3600;
}
{{- end }}
12 changes: 7 additions & 5 deletions charts/internal/e2e-resources/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ cronjob:

failingJob:
# -- Deploy a failing job
enabled: true
enabled: false

daemonSet:
# -- Deploy a dummy daemonSet
enabled: true

statefulSet:
# -- Deploy a dummy statefulSet
enabled: true
enabled: false

deployment:
# -- Deploy a dummy deployment
enabled: true

hpa:
# -- Enable hpa resources
enabled: true
enabled: false

persistentVolume:
# -- Create PVs
enabled: true
enabled: false
# -- Changes PV type to run on multi-node clusters (e.g. GKE, OpenShift on GCP)
multiNode: false
persistentVolumeClaim:
# -- Create PVCs
enabled: true
enabled: false

loadBalancerService:
# -- Deploy a loadBalancer service
Expand Down Expand Up @@ -61,3 +61,5 @@ fileSystemTest:
openShift:
enabled: false

windows:
enabled: true

0 comments on commit ed40376

Please sign in to comment.