diff --git a/build/charts/antrea/crds/externalippool.yaml b/build/charts/antrea/crds/externalippool.yaml index dcd69a55866..7c6fbe96db1 100644 --- a/build/charts/antrea/crds/externalippool.yaml +++ b/build/charts/antrea/crds/externalippool.yaml @@ -158,6 +158,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea-aks.yml b/build/yamls/antrea-aks.yml index a1de92ef433..ae8b29a9d79 100644 --- a/build/yamls/antrea-aks.yml +++ b/build/yamls/antrea-aks.yml @@ -1432,6 +1432,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea-crds.yml b/build/yamls/antrea-crds.yml index 78d9a438259..9457bd61e55 100644 --- a/build/yamls/antrea-crds.yml +++ b/build/yamls/antrea-crds.yml @@ -1419,6 +1419,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea-eks.yml b/build/yamls/antrea-eks.yml index 711625560c3..a2145a936dc 100644 --- a/build/yamls/antrea-eks.yml +++ b/build/yamls/antrea-eks.yml @@ -1432,6 +1432,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea-gke.yml b/build/yamls/antrea-gke.yml index 88016c79b93..0cff63fc1b3 100644 --- a/build/yamls/antrea-gke.yml +++ b/build/yamls/antrea-gke.yml @@ -1432,6 +1432,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea-ipsec.yml b/build/yamls/antrea-ipsec.yml index 56e352210e3..89e61c130a6 100644 --- a/build/yamls/antrea-ipsec.yml +++ b/build/yamls/antrea-ipsec.yml @@ -1432,6 +1432,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object diff --git a/build/yamls/antrea.yml b/build/yamls/antrea.yml index 84aa664b319..04cb57eea84 100644 --- a/build/yamls/antrea.yml +++ b/build/yamls/antrea.yml @@ -1432,6 +1432,7 @@ spec: matchLabels: additionalProperties: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" type: object status: type: object