Operator for CronJob resources
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 520B

123456789101112131415161718192021
  1. OPERATOR_IMAGE_NAME := cron-operator
  2. VERSION=$(shell cat ./VERSION)
  3. COMMIT=$(shell git rev-parse --short HEAD)
  4. .PHONY: all clean build push
  5. all: gen build
  6. gen:
  7. operator-sdk generate k8s
  8. build:
  9. operator-sdk build $(OPERATOR_IMAGE_NAME):$(VERSION)
  10. push:
  11. docker tag $(OPERATOR_IMAGE_NAME):$(VERSION) iam21h/cron-operator:$(VERSION)
  12. docker tag $(OPERATOR_IMAGE_NAME):$(VERSION) iam21h/cron-operator:latest
  13. docker push iam21h/cron-operator:$(VERSION)
  14. docker push iam21h/cron-operator:latest
  15. clean:
  16. rm -rf bin/*