Skip to content

Updates to Makefile#903

Merged
Zerpet merged 1 commit intomainfrom
update-makefile
Nov 5, 2024
Merged

Updates to Makefile#903
Zerpet merged 1 commit intomainfrom
update-makefile

Conversation

@Zerpet
Copy link
Member

@Zerpet Zerpet commented Nov 4, 2024

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed
Note to contributors: remember to re-generate client set if there are any API changes

Summary Of Changes

  • Use a function to verify the existence of required variables

The previous approach was always checking the existence of variables,
even for targets that did not require them e.g. make fmt would fail if
any docker/registry variable was not defined. Now only targets that
actually use those variable check for their definition state.

  • Install YTT locally

We use some YTT where doing something very simple e.g. updating a
container image, is terribly complicated in kustomize. Observe and
compare deploy-dev vs deploy-local

  • Use "local" build and deploy targets

"Local" targets that build containers locally and reference them in
manifests, without pushing them. This is particularly useful in local
environments, e.g. Docker Desktop, Rancher Desktop, where docker
context is the same for Kuberentes and Image Building.

- Use a function to verify the existence of required variables

The previous approach was always checking the existence of variables,
even for targets that did not require them e.g. `make fmt` would fail if
any docker/registry variable was not defined. Now only targets that
actually use those variable check for their definition state.

- Install YTT locally

We use some YTT where doing something very simple e.g. updating a
container image, is terribly complicated in kustomize. Observe and
compare deploy-dev vs deploy-local

- Use "local" build and deploy targets

"Local" targets that build containers locally and reference them in
manifests, without pushing them. This is particularly useful in local
environments, e.g. Docker Desktop, Rancher Desktop, where docker
context is the same for Kuberentes and Image Building.
@Zerpet Zerpet added this to the v1.16.0 milestone Nov 4, 2024
@Zerpet Zerpet self-assigned this Nov 4, 2024
@Zerpet Zerpet merged commit 34f20c5 into main Nov 5, 2024
@Zerpet Zerpet deleted the update-makefile branch November 5, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments