We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9569a9d commit 521bae0Copy full SHA for 521bae0
scripts/upgrade-operator-sdk.py
@@ -105,9 +105,10 @@
105
106
# Dockerfile patterns
107
_PAT_DOCKERFILE_FROM_GOLANG: Final = r"FROM golang:\d+\.\d+"
108
-_PAT_DOCKERFILE_LAST_SCAFFOLD_COPY: Final = (
109
- r"(COPY internal/controller/ internal/controller/\n)"
110
-)
+# Last COPY before the "# Build" section; used as insertion anchor for extra dirs.
+# Matches any COPY line whose target starts with "internal" (the scaffold's last
+# source COPY, regardless of whether it copies internal/ or internal/controller/).
111
+_PAT_DOCKERFILE_LAST_SCAFFOLD_COPY: Final = r"(COPY internal\S* internal\S*\n)"
112
113
# operator-sdk PROJECT file ((?m) embedded because used in file_regex_replace)
114
_PAT_PROJECT_GROUP_LINE: Final = r"(?m)^ group: metalk8s\n"
0 commit comments