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

Add release-build make target #450

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

e0ne
Copy link
Collaborator

@e0ne e0ne commented Jan 23, 2023

New make target changes Network Operator and MOFED images data in examples, helm chart and OCP bundle.

Simple golang binary is used instead of kustomize to minimize support effort.

Signed-off-by: Ivan Kolodiazhny ikolodiazhny@nvidia.com

@adrianchiris
Copy link
Collaborator

Simple golang binary is used instead of kustomize to minimize support effort.

@e0ne what is the downside of using kustomize for it ? as its a standard tool that will work for this use-case

@e0ne
Copy link
Collaborator Author

e0ne commented Jan 24, 2023

its a standard tool that will work for this use-case

I didn't know that. If it's common-used not only for OCP I have no objections to use it. My original idea was to create simle binary just to render templates with few fields and do not introduce any 3rd-party dependency for this script

@e0ne e0ne marked this pull request as draft February 7, 2023 14:54
@e0ne e0ne marked this pull request as ready for review February 7, 2023 14:55
@e0ne
Copy link
Collaborator Author

e0ne commented Feb 7, 2023

/retest-all

Copy link
Collaborator

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

one thing that bothers me is that we are mixing the location of templates and the rendered files.
maybe split the two ?

generated files can be written to their original place but we can put templates in a separate folder WDYT ?

currently its a bit confusing to me.

hack/release.go Outdated
initWithEnvVariale("IPAM_PLUGIN", release.Ipoib)
}

func main2() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this one ?

hack/release.go Outdated
}

func readDefaults() Release {
f, err := os.ReadFile("release.yaml")
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you make this path configurable (with default value) via cmdine flag ?

hack/release.go Outdated
}

func main() {
templates := flag.String("templates", ".", "Directory with templates to render")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: templateDir ?

hack/release.go Outdated
fmt.Printf("Error: %v\n", err)
return
}
// Print out the template to std
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment is wrong here, perhaps just remove it ?

New make target changes Network Operator and MOFED images data
in examples, helm chart and OCP bundle.

Simple golang binary is used instead of kustomize to minimize
support effort.

Signed-off-by: Ivan Kolodiazhny <ikolodiazhny@nvidia.com>
Copy link
Collaborator

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

a couple of nits, otherwise LGTM.

@e0ne do you think its worth adding a GA check to ensure changes were not introduced manually ?

that is a check that will:

  1. run make release-build
  2. make sure no diffs

@e0ne
Copy link
Collaborator Author

e0ne commented Mar 6, 2023

a couple of nits, otherwise LGTM.

@e0ne do you think its worth adding a GA check to ensure changes were not introduced manually ?

that is a check that will:

  1. run make release-build
  2. make sure no diffs

Creates a ticket for it: #466. Let me know if you would like to do it in this PR

@adrianchiris
Copy link
Collaborator

Creates a ticket for it: #466. Let me know if you would like to do it in this PR

different PR is fine, thx.

@rollandf rollandf merged commit 16ce718 into Mellanox:master Mar 6, 2023
@e0ne e0ne mentioned this pull request Mar 10, 2023
27 tasks
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.

3 participants