You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(manifest): move platform validation and container dependencies (#2869)
<!-- Provide summary of changes -->
part of #2818
<!-- Issue number, if available. E.g. "Fixes#31", "Addresses #42, 77" -->
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
Copy file name to clipboardExpand all lines: internal/pkg/deploy/cloudformation/stack/validate.go
+14-26Lines changed: 14 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -32,28 +32,25 @@ var (
32
32
33
33
// Conditional errors.
34
34
var (
35
-
errAccessPointWithRootDirectory=errors.New("`root_directory` must be empty or \"/\" when `access_point` is specified")
36
-
errAccessPointWithoutIAM=errors.New("`iam` must be true when `access_point` is specified")
37
-
errUIDWithNonManagedFS=errors.New("UID and GID cannot be specified with non-managed EFS")
38
-
errInvalidUIDGIDConfig=errors.New("must specify both UID and GID, or neither")
39
-
errInvalidEFSConfig=errors.New("bad EFS configuration: cannot specify both bool and config")
40
-
errReservedUID=errors.New("UID must not be 0")
41
-
errInvalidContainer=errors.New("container dependency does not exist")
42
-
errInvalidDependsOnStatus=fmt.Errorf("container dependency status must be one of < %s | %s | %s | %s >", dependsOnStart, dependsOnComplete, dependsOnSuccess, dependsOnHealthy)
43
-
errInvalidSidecarDependsOnStatus=fmt.Errorf("sidecar container dependency status must be one of < %s | %s | %s >", dependsOnStart, dependsOnComplete, dependsOnSuccess)
44
-
errEssentialContainerStatus=fmt.Errorf("essential container dependencies can only have status < %s | %s >", dependsOnStart, dependsOnHealthy)
45
-
errEssentialSidecarStatus=fmt.Errorf("essential sidecar container dependencies can only have status < %s >", dependsOnStart)
46
-
errInvalidPubSubTopicName=errors.New("topic names can only contain letters, numbers, underscores, and hypthens")
47
-
errInvalidSvcName=errors.New("service names cannot be empty")
48
-
errSvcNameTooLong=errors.New("service names must not exceed 255 characters")
49
-
errSvcNameBadFormat=errors.New("service names must start with a letter, contain only lower-case letters, numbers, and hyphens, and have no consecutive or trailing hyphen")
35
+
errAccessPointWithRootDirectory=errors.New("`root_directory` must be empty or \"/\" when `access_point` is specified")
36
+
errAccessPointWithoutIAM=errors.New("`iam` must be true when `access_point` is specified")
37
+
errUIDWithNonManagedFS=errors.New("UID and GID cannot be specified with non-managed EFS")
38
+
errInvalidUIDGIDConfig=errors.New("must specify both UID and GID, or neither")
39
+
errInvalidEFSConfig=errors.New("bad EFS configuration: cannot specify both bool and config")
40
+
errReservedUID=errors.New("UID must not be 0")
41
+
errInvalidContainer=errors.New("container dependency does not exist")
42
+
errInvalidDependsOnStatus=fmt.Errorf("container dependency status must be one of < %s | %s | %s | %s >", dependsOnStart, dependsOnComplete, dependsOnSuccess, dependsOnHealthy)
43
+
errEssentialContainerStatus=fmt.Errorf("essential container dependencies can only have status < %s | %s >", dependsOnStart, dependsOnHealthy)
44
+
errInvalidPubSubTopicName=errors.New("topic names can only contain letters, numbers, underscores, and hypthens")
45
+
errInvalidSvcName=errors.New("service names cannot be empty")
46
+
errSvcNameTooLong=errors.New("service names must not exceed 255 characters")
47
+
errSvcNameBadFormat=errors.New("service names must start with a letter, contain only lower-case letters, numbers, and hyphens, and have no consecutive or trailing hyphen")
0 commit comments