diff --git a/examples/v1beta1/pipelineruns/no-ci/windows-node-affinity.yaml b/examples/v1beta1/pipelineruns/no-ci/windows-node-affinity.yaml new file mode 100644 index 00000000000..3d36bbc2761 --- /dev/null +++ b/examples/v1beta1/pipelineruns/no-ci/windows-node-affinity.yaml @@ -0,0 +1,43 @@ +apiVersion: tekton.dev/v1beta1 +kind: Task +metadata: + name: windows-task-na +spec: + steps: + - name: ping-localhost + image: mcr.microsoft.com/windows/nanoserver:1809 + command: ["cmd.exe"] + args: + - "/S" + - "/C" + - "echo Hello from Windows" +--- +apiVersion: tekton.dev/v1beta1 +kind: Pipeline +metadata: + name: windows-pipeline-na +spec: + tasks: + - name: windows-task-na + taskRef: + name: windows-task-na +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + name: windows-pipeline-na-run +spec: + pipelineRef: + name: windows-pipeline-na + taskRunSpecs: + - pipelineTaskName: windows-task-na + taskPodTemplate: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/os + operator: In + values: + - windows diff --git a/examples/v1beta1/pipelineruns/no-ci/windows-node-selectors.yaml b/examples/v1beta1/pipelineruns/no-ci/windows-node-selectors.yaml new file mode 100644 index 00000000000..590d85a6780 --- /dev/null +++ b/examples/v1beta1/pipelineruns/no-ci/windows-node-selectors.yaml @@ -0,0 +1,36 @@ +apiVersion: tekton.dev/v1beta1 +kind: Task +metadata: + name: windows-task-ns +spec: + steps: + - name: ping-localhost + image: mcr.microsoft.com/windows/nanoserver:1809 + command: ["cmd.exe"] + args: + - "/S" + - "/C" + - "echo Hello from Windows" +--- +apiVersion: tekton.dev/v1beta1 +kind: Pipeline +metadata: + name: windows-pipeline-ns +spec: + tasks: + - name: windows-task-ns + taskRef: + name: windows-task-ns +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + name: windows-pipeline-ns-run +spec: + pipelineRef: + name: windows-pipeline-ns + taskRunSpecs: + - pipelineTaskName: windows-task-ns + taskPodTemplate: + nodeSelector: + kubernetes.io/os: windows diff --git a/examples/v1beta1/taskruns/no-ci/windows-node-affinity.yaml b/examples/v1beta1/taskruns/no-ci/windows-node-affinity.yaml new file mode 100644 index 00000000000..b316620d733 --- /dev/null +++ b/examples/v1beta1/taskruns/no-ci/windows-node-affinity.yaml @@ -0,0 +1,31 @@ +apiVersion: tekton.dev/v1beta1 +kind: Task +metadata: + name: windows-task-na +spec: + steps: + - name: ping-localhost + image: mcr.microsoft.com/windows/nanoserver:1809 + command: ["cmd.exe"] + args: + - "/S" + - "/C" + - "echo Hello from Windows" +--- +apiVersion: tekton.dev/v1beta1 +kind: TaskRun +metadata: + name: windows-task-na-run +spec: + taskRef: + name: windows-task-na + podTemplate: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/os + operator: In + values: + - windows diff --git a/examples/v1beta1/taskruns/no-ci/windows-node-selectors.yaml b/examples/v1beta1/taskruns/no-ci/windows-node-selectors.yaml new file mode 100644 index 00000000000..2845f05ec03 --- /dev/null +++ b/examples/v1beta1/taskruns/no-ci/windows-node-selectors.yaml @@ -0,0 +1,24 @@ +apiVersion: tekton.dev/v1beta1 +kind: Task +metadata: + name: windows-task-ns +spec: + steps: + - name: ping-localhost + image: mcr.microsoft.com/windows/nanoserver:1809 + command: ["cmd.exe"] + args: + - "/S" + - "/C" + - "echo Hello from Windows" +--- +apiVersion: tekton.dev/v1beta1 +kind: TaskRun +metadata: + name: windows-task-ns-run +spec: + taskRef: + name: windows-task-ns + podTemplate: + nodeSelector: + kubernetes.io/os: windows