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: {