-
Notifications
You must be signed in to change notification settings - Fork 1
/
okteto.yaml
30 lines (26 loc) · 1.05 KB
/
okteto.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
icon: https://raw.githubusercontent.com/okteto/launchdarkly/main/icon.png
build:
launchdarkly:
context: client
deploy:
image: ${OKTETO_BUILD_LAUNCHDARKLY_IMAGE}
commands:
- name: create LaunchDarkly environment
command: |
set -e
/usr/local/bin/launchdarkly create --project $LAUNCHDARKLY_PROJECT_KEY --name $OKTETO_NAMESPACE --token $LAUNCHDARKLY_ACCESS_TOKEN --source $LAUNCHDARKLY_SOURCE
. ./ld_results.env
echo "OKTETO_EXTERNAL_LAUNCHDARKLY_ENDPOINTS_ENVIRONMENT_URL=$LAUNCHDARKLY_ENVIRONMENT_URL" >> $OKTETO_ENV
kubectl create secret generic okteto-launchdarkly --save-config --dry-run=client --from-env-file=ld_results.env -oyaml | kubectl apply -f -
destroy:
image: ghcr.io/okteto/launchdarkly:main
commands:
- name: delete LaunchDarkly environment
command: |
/usr/local/bin/launchdarkly delete --project $LAUNCHDARKLY_PROJECT_KEY --name $OKTETO_NAMESPACE --token $LAUNCHDARKLY_ACCESS_TOKEN
external:
launchdarkly:
icon: launchdarkly
notes: notes.md
endpoints:
- name: environment