blob: 6c811c8eb8e0dd5bebd90d575941132b3908c6d0 [file] [log] [blame]
# 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.
version: "3"
env:
KUBECONFIG:
sh: |
if test -e $($OPS -opspath "$OPS_TMP/kubeconfig")
then echo $($OPS -opspath "$OPS_TMP/kubeconfig")
else echo ~/.kube/config
fi
APIHOST:
sh: |
if test -e ~/.wskprops
then source ~/.wskprops; echo $APIHOST
fi
AUTHB64:
sh: |
if test -e ~/.wskprops
then source ~/.wskprops; echo $(base64 -e $AUTH)
fi
REDIS_PREFIX:
sh: wsk property get | awk '/whisk namespace/{print $3":"}'
tasks:
prefix:
desc: get user defined redis key prefix to be used to interact with REDIS
silent: true
cmds:
- echo "Redis prefix is $REDIS_PREFIX"
command:
desc: execute a redis command
silent: true
cmds:
- bun redis.js "{{._command_}}"