From af12e92a999cd07277a2c19a168b2d9a51ac1e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Mon, 21 Jan 2019 11:31:48 +0100 Subject: [PATCH] chore: regenerated resources.go ... and ensure that the resources are picked up in alphabetical order --- deploy/resources.go | 46 +++++++++++++++++++-------------------- script/embed_resources.sh | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/deploy/resources.go b/deploy/resources.go index aafa565eb1..29ad3ecc6e 100644 --- a/deploy/resources.go +++ b/deploy/resources.go @@ -2797,6 +2797,29 @@ artifacts: passive: false version: 2.23.1 +` + Resources["cr-example.yaml"] = + ` +apiVersion: camel.apache.org/v1alpha1 +kind: Integration +metadata: + name: example +spec: + source: + content: |- + // This is Camel K Groovy example route + + rnd = new Random() + + from('timer:groovy?period=1s') + .routeId('groovy') + .setBody() + .constant('Hello Camel K!') + .process { + it.in.headers['RandomValue'] = rnd.nextInt() + } + .to('log:info?showHeaders=true') + name: routes.groovy ` Resources["crd-integration-context.yaml"] = ` @@ -2887,29 +2910,6 @@ spec: description: The IntegrationContext to use JSONPath: .status.context -` - Resources["cr-example.yaml"] = - ` -apiVersion: camel.apache.org/v1alpha1 -kind: Integration -metadata: - name: example -spec: - source: - content: |- - // This is Camel K Groovy example route - - rnd = new Random() - - from('timer:groovy?period=1s') - .routeId('groovy') - .setBody() - .constant('Hello Camel K!') - .process { - it.in.headers['RandomValue'] = rnd.nextInt() - } - .to('log:info?showHeaders=true') - name: routes.groovy ` Resources["operator-deployment-kubernetes.yaml"] = ` diff --git a/script/embed_resources.sh b/script/embed_resources.sh index eec75c9890..95ab888675 100755 --- a/script/embed_resources.sh +++ b/script/embed_resources.sh @@ -38,7 +38,7 @@ func init() { EOM -for f in $(ls $destdir | grep ".yaml" | grep -v -e "^operator.yaml$"); do +for f in $(ls $destdir | grep ".yaml" | grep -v -e "^operator.yaml$" | sort); do printf "\tResources[\"$f\"] =\n\t\t\`\n" >> $destfile cat $destdir/$f >> $destfile printf "\n\`\n" >> $destfile