Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Makefile #201

Merged
merged 1 commit into from
Nov 18, 2020
Merged

Simplify Makefile #201

merged 1 commit into from
Nov 18, 2020

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Nov 11, 2020

close #109

All maintenance logic is within one Makefile now.

  • Remove dependencies on full.sh, registry.sh
  • github workflow: Move logic from terratest K8GB deployment into Makefile
  • Helm charts: new repo location from https://kubernetes-charts.storage.googleapis.com to https://charts.helm.sh/stable
  • revision all Makefile targets and fix if necessary
  • optimize publically exposed targets (see report below). Move logic from targets into UDF's
  • section highlighting for large scripts deploy-full-local-setup, deploy-full-terratest-setup
    Screenshot 2020-11-11 at 13 27 48
  • fix mistaken host-names in documentation

Report

  • bold - moved to new Makefile and accessible make <target>
  • crossed out - functionality moved to new Makefile but not accessible via targets (no reason to expose)

old

  • all (kubebuilder initial)
  • bundle REMOVED , obsolete by 1.0 migration
  • bundle-build REMOVED , obsolete by 1.0 migration
  • clean-test-apps
  • controller-gen (kubebuilder initial)
  • create-k8gb-ns
  • create-test-ns
  • debug-test-local -> debug-idea new implementation
  • debug-test-etcd
  • demo-failover
  • demo-roundrobin
  • deploy (kubebuilder initial)
  • deploy-first-k8gb
  • deploy-full-local-setup
  • deploy-gslb-cr
  • deploy-gslb-operator
  • deploy-gslb-operator-14
  • deploy-local-cluster REMOVED
  • deploy-local-ingress
  • deploy-second-k8gb
  • deploy-test-apps
  • deploy-two-local-clusters
  • destroy-full-local-setup
  • destroy-local-cluster REMOVED
  • destroy-two-local-clusters
  • dns-smoke-test
  • dns-tools
  • docker-build (kubebuilder initial)
  • docker-push (kubebuilder initial)
  • docker-test-build-push
  • fmt is part of golangci, using lint instead, REMOVED; (kubebuilder initial)
  • generate (kubebuilder initial)
  • infoblox-secret
  • init-failover
  • init-round-robin
  • install (kubebuilder initial)
  • kustomize
  • lint
  • manager (kubebuilder initial)
  • manifests (kubebuilder initial)
  • reset (NEW)
  • run (kubebuilder initial)
  • start-test-app
  • stop-test-app
  • terratest
  • test (kubebuilder initial)
  • test-failover
  • test-round-robin
  • uninstall *(kubebuilder initial)
  • use-first-context
  • use-second-context
  • version
  • vet is part of golangci, using lint instead REMOVED; (kubebuilder initial)
  • wait-for-gslb-ready
  • wait-for-nginx-ingress-ready

new

  • all (kubebuilder initial)
  • clean-test-apps
  • debug-idea
  • debug-test-etcd
  • demo-failover
  • demo-roundrobin
  • deploy-full-local-setup
  • destroy-full-local-setup
  • deploy (kubebuilder initial)
  • deploy-gslb-operator-14
  • dns-smoke-test
  • dns-tools
  • docker-build (kubebuilder initial)
  • docker-push (kubebuilder initial)
  • docker-test-build-push
  • infoblox-secret
  • init-failover
  • init-round-robin
  • install (kubebuilder initial)
  • lint
  • list (NEW)
  • manager (kubebuilder initial)
  • reset (NEW)
  • run (kubebuilder initial)
  • start-test-app
  • stop-test-app
  • terratest
  • test (kubebuilder initial)
  • test-failover
  • test-round-robin
  • uninstall (kubebuilder initial)
  • version

Copy link
Contributor

@somaritane somaritane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kuritka looks good, few minor comments

deploy-full-local-setup

fix localtargets name in documentation

local playground passed

wait

deploy-gslb-operator-14

k8gb terratest, moving to makefile

terratest-pipeline fix #1

terratest-pipeline fix #2

terratest-pipeline fix #3

terratest-pipeline fix #4

terratest-pipeline fix #5

move stable repo location from 	https://kubernetes-charts.storage.googleapis.com to https://charts.helm.sh/stable
see: https://helm.sh/blog/new-location-stable-incubator-charts/

highlight large script sections

fix version

fix version #2

fix version #3

fix version #4

simplify release pipeline, move logic to Makefile

fix terratest by adding image-repo between deploy-local-cluster args

registry.sh #1

registry.sh; installing docker registry always in deploy-full-terratest-setup; remove registry.sh

remove full.sh, remove registry.sh

test; functionality, hide generate, controller gent, manifest

remove GOPATH guardian as GO terraform-test runs clean ubuntu image, no GOLANG image

refactor generate and manifest

move kustomize

run

manager

install

infoblox-secret

retreive version from shell , deploy

fix deploy, remove  kustomize udf

bundle

build-bundle, debug-local

docker-test-build-push

change git-last-commit-hash into shell COMMIT_HASH

lowercase comments

alphabetically sort targets

remove deploy, bundle, bundle-build

remove debug-local and create debug-local-idea instead

refactor debug-local-idea to debug-idea

refactor debug-local-idea to debug-idea
@kuritka kuritka requested a review from somaritane November 13, 2020 10:07
Copy link
Contributor

@somaritane somaritane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@kuritka kuritka merged commit f5d6a09 into master Nov 18, 2020
@kuritka kuritka deleted the 109-makefile-rfctr branch November 18, 2020 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Makefile refactoring
3 participants