File tree 1 file changed +5
-5
lines changed
actions/spa-setup-task/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -141,24 +141,24 @@ export function validateInputs(
141
141
) : Error | null {
142
142
if ( ! isValidAppName ( team ) ) {
143
143
return Error (
144
- `Invalid team name: ${ team } . Team name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
144
+ `SPADEPLOY-001: Invalid team name: ${ team } . Team name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
145
145
)
146
146
}
147
147
148
148
if ( ! isValidAppName ( app ) ) {
149
149
return Error (
150
- `Invalid app name: ${ app } . App name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
150
+ `SPADEPLOY-002: Invalid app name: ${ app } . App name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
151
151
)
152
152
}
153
153
154
154
if ( ! isValidAppName ( environment ) ) {
155
155
return Error (
156
- `Invalid environment name: ${ environment } . Environment name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
156
+ `SPADEPLOY-003: Invalid environment name: ${ environment } . Environment name must match regex: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
157
157
)
158
158
}
159
159
160
160
if ( ingress . length === 0 ) {
161
- return Error ( 'No ingress specified' )
161
+ return Error ( 'SPADEPLOY-004: No ingress specified' )
162
162
}
163
163
164
164
if ( hasCustomIngressClass ( ingressClass ) ) {
@@ -209,7 +209,7 @@ export function spaSetupTask(
209
209
210
210
if ( naisClusterFinal !== naisCluster ) {
211
211
throw Error (
212
- `Ingresses must be on same cluster. Found ${ naisClusterFinal } and ${ naisCluster } `
212
+ `SPADEPLOY-005: ngresses must be on same cluster. Found ${ naisClusterFinal } and ${ naisCluster } `
213
213
)
214
214
}
215
215
}
You can’t perform that action at this time.
0 commit comments