File tree Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
"github.com/aws-controllers-k8s/code-generator/pkg/generate/templateset"
22
22
ackmetadata "github.com/aws-controllers-k8s/code-generator/pkg/metadata"
23
23
ackmodel "github.com/aws-controllers-k8s/code-generator/pkg/model"
24
+ "github.com/aws-controllers-k8s/pkg/names"
24
25
)
25
26
26
27
var (
@@ -103,16 +104,9 @@ func Release(
103
104
releaseFuncMap (m .MetaVars ().ControllerName ),
104
105
)
105
106
metaVars := m .MetaVars ()
106
-
107
- crds , err := m .GetCRDs ()
108
- if err != nil {
109
- return nil , err
110
- }
111
-
112
- reconcileResources := make ([]string , 0 )
113
-
114
- for _ , crd := range crds {
115
- reconcileResources = append (reconcileResources , crd .Names .Camel )
107
+ reconcileResources := make ([]string , len (metaVars .CRDNames ))
108
+ for i , name := range metaVars .CRDNames {
109
+ reconcileResources [i ] = names .New (name ).Camel
116
110
}
117
111
118
112
releaseVars := & templateReleaseVars {
Original file line number Diff line number Diff line change 245
245
"items" : {
246
246
"type" : " string"
247
247
},
248
- "description" : " List of resource kinds to reconcile. If empty, all resources will be reconciled."
248
+ "description" : " List of resource kinds to reconcile. If empty, all resources will be reconciled." ,
249
+ "default" : []
249
250
}
250
251
},
251
252
"type" : " object"
Original file line number Diff line number Diff line change @@ -141,10 +141,9 @@ reconcile:
141
141
# Set the value of resources to specify which resource kinds to reconcile.
142
142
# If empty, all resources will be reconciled.
143
143
# If specified, only the listed resource kinds will be reconciled.
144
- resources: []
145
- # Available resource kinds for this controller:
144
+ resources:
146
145
{ {- range $resource := .ReconcileResources } }
147
- # - { { $resource } }
146
+ - { { $resource } }
148
147
{ {- end } }
149
148
150
149
serviceAccount:
You can’t perform that action at this time.
0 commit comments