Makefile 1005 B

123456789101112131415161718192021
  1. default: test
  2. include ../../../helpers/examples.mk
  3. RELEASE := helm-es-config
  4. TIMEOUT := 1200s
  5. install:
  6. helm upgrade --wait --timeout=$(TIMEOUT) --install --values values.yaml $(RELEASE) ../../
  7. secrets:
  8. kubectl delete secret elastic-config-credentials elastic-config-secret elastic-config-slack elastic-config-custom-path || true
  9. kubectl create secret generic elastic-config-credentials --from-literal=password=changeme --from-literal=username=elastic
  10. kubectl create secret generic elastic-config-slack --from-literal=xpack.notification.slack.account.monitoring.secure_url='https://hooks.slack.com/services/asdasdasd/asdasdas/asdasd'
  11. kubectl create secret generic elastic-config-secret --from-file=xpack.watcher.encryption_key=./watcher_encryption_key
  12. kubectl create secret generic elastic-config-custom-path --from-literal=slack_url='https://hooks.slack.com/services/asdasdasd/asdasdas/asdasd' --from-literal=thing_i_don_tcare_about=test
  13. test: secrets install goss
  14. purge:
  15. helm del $(RELEASE)