-
Notifications
You must be signed in to change notification settings - Fork 56
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
chore: generate docs versions var #994
Conversation
Pull Request Test Coverage Report for Build 10090377988Details
💛 - Coveralls |
b2dcccd
to
4e621f8
Compare
@@ -136,6 +138,10 @@ func main() { | |||
if *retrieveSha { | |||
resolveImagesSha(&release) | |||
} | |||
parts := strings.Split(release.NetworkOperator.Version, ".") | |||
release.OcpDefaulChannel = fmt.Sprintf("%s.%s", parts[0], parts[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to generate OCP channels list (e.g. stable,v24.4.1
) too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant we always specify default here ? then install specific operator version ?
.PHONY: generate-docs-versions-var | ||
generate-docs-versions-var: | ||
cd hack && $(GO) run release.go --templateDir ./templates/docs-versions-var/ --outputDir . | ||
mv hack/vars.yaml hack/vars.rst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to add hack/vars.rst
to .gitignore
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
4e621f8
to
be5e1c4
Compare
/retest-image_scan |
.gitignore
Outdated
@@ -30,3 +30,5 @@ testbin | |||
test | |||
build | |||
hack/manifests | |||
|
|||
hack/vars.rst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
hack/release.yaml
Outdated
@@ -77,3 +78,5 @@ rdmaCni: | |||
image: rdma-cni | |||
repository: ghcr.io/k8snetworkplumbingwg | |||
version: v1.2.0 | |||
Nfd: | |||
version: v0.13.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: its v0.15.6 now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Generate documentation var files to be used in network-operator-docs repo. Signed-off-by: Fred Rolland <[email protected]>
be5e1c4
to
2bc1d82
Compare
at some point, i think we would need to carve out docs related scripts/logic and put them in doc repo if we see we get too much of those, relying on release.yaml file from this repo. |
Generate documentation var files to be used
in network-operator-docs repo.