You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/06/01 05:29:03 UTC

[GitHub] [camel-k] squakez commented on a diff in pull request #3319: Enable parsing pod template as a modeline.

squakez commented on code in PR #3319:
URL: https://github.com/apache/camel-k/pull/3319#discussion_r886327092


##########
pkg/cmd/modeline_test.go:
##########
@@ -507,3 +507,24 @@ func TestModelineInspectMultipleDeps(t *testing.T) {
 
 	assert.NoError(t, err)
 }
+
+func TestModelineQuotedPodTemplate(t *testing.T) {
+	err := util.WithTempDir("camel-k-test-", func(dir string) error {
+
+		file := `
+		// camel-k: pod-template='{ "containers": [], "security": { "podSecurityContext": { "supplementalGroups": [ 553 ] }, "volumes": [] } }'
+	`
+		fileName := path.Join(dir, "simple.groovy")
+		err := ioutil.WriteFile(fileName, []byte(file), 0777)

Review Comment:
   Please follow the suggestion about file permissions



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org