From cb4e1fa8f29cf5a8d8fe0b4d4c442826540a3981 Mon Sep 17 00:00:00 2001 From: Chris Bui <2654102+cbui@users.noreply.github.com> Date: Tue, 19 Apr 2022 20:47:18 -0500 Subject: [PATCH] breaking: Pluralize topologySpreadConstraint to match docs (#1089) Original PR: https://github.com/actions-runner-controller/actions-runner-controller/pull/814/files#diff-25283fab3c6d5fa726652c8741a122c1ba14d8486fe092774617a385e4bc1a92R145 If you're already using this feature, follow the process explained in https://github.com/actions-runner-controller/actions-runner-controller/pull/1089#issuecomment-1103354025 when upgrading. Fixes #984 --- api/v1alpha1/runner_types.go | 2 +- .../crds/actions.summerwind.dev_runnerdeployments.yaml | 2 +- .../crds/actions.summerwind.dev_runnerreplicasets.yaml | 2 +- .../crds/actions.summerwind.dev_runners.yaml | 2 +- config/crd/bases/actions.summerwind.dev_runnerdeployments.yaml | 2 +- config/crd/bases/actions.summerwind.dev_runnerreplicasets.yaml | 2 +- config/crd/bases/actions.summerwind.dev_runners.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/v1alpha1/runner_types.go b/api/v1alpha1/runner_types.go index 5ced5fcc..c6ecf2d8 100644 --- a/api/v1alpha1/runner_types.go +++ b/api/v1alpha1/runner_types.go @@ -145,7 +145,7 @@ type RunnerPodSpec struct { HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` // +optional - TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraint,omitempty"` + TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` // RuntimeClassName is the container runtime configuration that containers should run under. // More info: https://kubernetes.io/docs/concepts/containers/runtime-class diff --git a/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerdeployments.yaml b/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerdeployments.yaml index 9a693f9b..054c8844 100644 --- a/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerdeployments.yaml +++ b/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerdeployments.yaml @@ -4157,7 +4157,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: diff --git a/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerreplicasets.yaml b/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerreplicasets.yaml index 7527c088..a5c439c3 100644 --- a/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerreplicasets.yaml +++ b/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerreplicasets.yaml @@ -4154,7 +4154,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: diff --git a/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml b/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml index 01bf48e4..b882843f 100644 --- a/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml +++ b/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml @@ -4095,7 +4095,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: diff --git a/config/crd/bases/actions.summerwind.dev_runnerdeployments.yaml b/config/crd/bases/actions.summerwind.dev_runnerdeployments.yaml index 9a693f9b..054c8844 100644 --- a/config/crd/bases/actions.summerwind.dev_runnerdeployments.yaml +++ b/config/crd/bases/actions.summerwind.dev_runnerdeployments.yaml @@ -4157,7 +4157,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: diff --git a/config/crd/bases/actions.summerwind.dev_runnerreplicasets.yaml b/config/crd/bases/actions.summerwind.dev_runnerreplicasets.yaml index 7527c088..a5c439c3 100644 --- a/config/crd/bases/actions.summerwind.dev_runnerreplicasets.yaml +++ b/config/crd/bases/actions.summerwind.dev_runnerreplicasets.yaml @@ -4154,7 +4154,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: diff --git a/config/crd/bases/actions.summerwind.dev_runners.yaml b/config/crd/bases/actions.summerwind.dev_runners.yaml index 01bf48e4..b882843f 100644 --- a/config/crd/bases/actions.summerwind.dev_runners.yaml +++ b/config/crd/bases/actions.summerwind.dev_runners.yaml @@ -4095,7 +4095,7 @@ spec: type: string type: object type: array - topologySpreadConstraint: + topologySpreadConstraints: items: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. properties: