This is an automated email from the ASF dual-hosted git repository. tsato pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 931a010c6103dcf677e990acfef164592def11a8 Author: Kuthumi Pepple <[email protected]> AuthorDate: Tue Jul 5 10:57:18 2022 +0100 migrate and improve dns example --- examples/dns/README.md | 3 --- examples/dns/dns.js | 32 -------------------------------- 2 files changed, 35 deletions(-) diff --git a/examples/dns/README.md b/examples/dns/README.md deleted file mode 100644 index 301ee949f..000000000 --- a/examples/dns/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# DNS Camel K examples - -Find useful examples about how to use DNS in a Camel K integration. \ No newline at end of file diff --git a/examples/dns/dns.js b/examples/dns/dns.js deleted file mode 100644 index 0cb622eae..000000000 --- a/examples/dns/dns.js +++ /dev/null @@ -1,32 +0,0 @@ -// camel-k: language=js -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// -// To run this integrations use: -// -// kamel run -d camel-dns examples/dns.js -// -// Or simply (since dependency auto-detection is enabled by default): -// -// kamel run examples/dns.js -// - -from('timer:dns?period=1000') - .routeId('dns') - .setHeader('dns.domain') - .constant('www.google.com') - .to('dns:ip') - .to('log:dns');
