From 57cd4ceb7e7b77f7d281aa5c37e90e7694f80f3d Mon Sep 17 00:00:00 2001 From: qiaozp <47812250+chivalryq@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:35:10 +0800 Subject: [PATCH] Fix: read-only definition in cue spec (#5498) --- charts/vela-core/templates/defwithtemplate/read-only.yaml | 2 +- charts/vela-minimal/templates/defwithtemplate/read-only.yaml | 2 +- vela-templates/definitions/internal/policy/read-only.cue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/vela-core/templates/defwithtemplate/read-only.yaml b/charts/vela-core/templates/defwithtemplate/read-only.yaml index 5a70f727c..6b455af0e 100644 --- a/charts/vela-core/templates/defwithtemplate/read-only.yaml +++ b/charts/vela-core/templates/defwithtemplate/read-only.yaml @@ -13,7 +13,7 @@ spec: template: | #PolicyRule: { // +usage=Specify how to select the targets of the rule - selector: [...#RuleSelector] + selector: #RuleSelector } #RuleSelector: { // +usage=Select resources by component names diff --git a/charts/vela-minimal/templates/defwithtemplate/read-only.yaml b/charts/vela-minimal/templates/defwithtemplate/read-only.yaml index 5a70f727c..6b455af0e 100644 --- a/charts/vela-minimal/templates/defwithtemplate/read-only.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/read-only.yaml @@ -13,7 +13,7 @@ spec: template: | #PolicyRule: { // +usage=Specify how to select the targets of the rule - selector: [...#RuleSelector] + selector: #RuleSelector } #RuleSelector: { // +usage=Select resources by component names diff --git a/vela-templates/definitions/internal/policy/read-only.cue b/vela-templates/definitions/internal/policy/read-only.cue index cd0ec1daa..d97c15def 100644 --- a/vela-templates/definitions/internal/policy/read-only.cue +++ b/vela-templates/definitions/internal/policy/read-only.cue @@ -9,7 +9,7 @@ template: { #PolicyRule: { // +usage=Specify how to select the targets of the rule - selector: [...#RuleSelector] + selector: #RuleSelector } #RuleSelector: {