@@ -88,7 +88,7 @@ func (c cfg) GetProjectName() string {
88
88
89
89
// SetProjectName implements config.Config
90
90
func (c * cfg ) SetProjectName (string ) error {
91
- return config.UnsupportedField {
91
+ return config.UnsupportedFieldError {
92
92
Version : Version ,
93
93
Field : "project name" ,
94
94
}
@@ -101,7 +101,7 @@ func (c cfg) GetLayout() string {
101
101
102
102
// SetLayout implements config.Config
103
103
func (c * cfg ) SetLayout (string ) error {
104
- return config.UnsupportedField {
104
+ return config.UnsupportedFieldError {
105
105
Version : Version ,
106
106
Field : "layout" ,
107
107
}
@@ -131,15 +131,15 @@ func (c cfg) IsComponentConfig() bool {
131
131
132
132
// SetComponentConfig implements config.Config
133
133
func (c * cfg ) SetComponentConfig () error {
134
- return config.UnsupportedField {
134
+ return config.UnsupportedFieldError {
135
135
Version : Version ,
136
136
Field : "component config" ,
137
137
}
138
138
}
139
139
140
140
// ClearComponentConfig implements config.Config
141
141
func (c * cfg ) ClearComponentConfig () error {
142
- return config.UnsupportedField {
142
+ return config.UnsupportedFieldError {
143
143
Version : Version ,
144
144
Field : "component config" ,
145
145
}
@@ -175,7 +175,7 @@ func (c cfg) GetResource(gvk resource.GVK) (resource.Resource, error) {
175
175
}
176
176
}
177
177
178
- return resource.Resource {}, config.UnknownResource {GVK : gvk }
178
+ return resource.Resource {}, config.ResourceNotFoundError {GVK : gvk }
179
179
}
180
180
181
181
// GetResources implements config.Config
@@ -234,15 +234,15 @@ func (c cfg) IsWebhookVersionCompatible(webhookVersion string) bool {
234
234
235
235
// DecodePluginConfig implements config.Config
236
236
func (c cfg ) DecodePluginConfig (string , interface {}) error {
237
- return config.UnsupportedField {
237
+ return config.UnsupportedFieldError {
238
238
Version : Version ,
239
239
Field : "plugins" ,
240
240
}
241
241
}
242
242
243
243
// EncodePluginConfig implements config.Config
244
244
func (c cfg ) EncodePluginConfig (string , interface {}) error {
245
- return config.UnsupportedField {
245
+ return config.UnsupportedFieldError {
246
246
Version : Version ,
247
247
Field : "plugins" ,
248
248
}
0 commit comments