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

kie-issues#808: kn-plugin cli version 10.0.0 #2136

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

ederign
Copy link
Member

@ederign ederign commented Jan 30, 2024

Guys, I think we are ready to merge it. There are some pending tasks yet (moving to new artifacts also Tiago comment related to images), but those can be addressed on later PRs.

@ederign
Copy link
Member Author

ederign commented Jan 30, 2024

@tiagobento tiagobento changed the title kie-issue#808 kn-plugin cli version 10.0.0 kie-issues#808: kn-plugin cli version 10.0.0 Jan 30, 2024
@@ -42,6 +43,9 @@ func NewGenManifest() *cobra.Command {
# Persist the generated Operator manifests on a default path (default ./manifests)
{{.Name}} gen-manifest

# Specify a custom target namespace. (default: kubeclt current namespace; --namespace "" to don't set namespace on your manifest)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if it'd be better to provide a --skip-namespace arg or something like that.
It might avoid confusion since it's self-explanatory.
I understand this adds extra work, so it's just an idea.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll do that. Actually, I was also considering this extra option. So it would be --namespace {name} or --skip-namespace. That is what you mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly!

@masayag
Copy link
Contributor

masayag commented Feb 11, 2024

Can we add two more flags to gen-manifests:

--image - Specify an image  to be used as the workflow's container image ( sets a value for .spec.podTemplate.container.image)

and an option to specify the value for the sonataflow.org/profile annotation (any of prod/dev/nil or future gitops when/if be added).

@masayag
Copy link
Contributor

masayag commented Feb 11, 2024

Can the generated configmaps use the | to allow a multi-line string to improve readability both for the -props and -resources configmaps?
cc @dmartinol

@ederign
Copy link
Member Author

ederign commented Feb 12, 2024

@masayag, we can accommodate both on the next releases. https://issues.redhat.com/browse/KOGITO-10052

description: "Quarkus version to be used when creating the SonataFlow project",
},
KN_PLUGIN_WORKFLOW__devModeImage: {
name: "KN_PLUGIN_WORKFLOW__devModeImage",
default: "quay.io/kiegroup/kogito-swf-devmode:1.44",
default: "quay.io/kiegroup/kogito-swf-devmode:latest",
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use the 999-20240218-SNAPSHOT tag here too, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, so there is no timestamped snapshot for this particular image, and we would need to use the kogito-swf-devmode-nightly version of it. However, with apache/incubator-kie-issues#1001, we won't need to deal with it anymore, just pointing to the local image built on kie-tools directly.

@@ -22,7 +22,7 @@
"build:darwin:arm": "pnpm setup:env make build-darwin-arm64",
"build:dev": "rimraf dist && pnpm build",
"build:linux": "pnpm setup:env make build-linux-amd64",
"build:prod": "rimraf dist && run-script-os && pnpm test",
"build:prod": "rimraf dist && run-script-os && pnpm test && pnpm test:e2e",
Copy link
Member Author

Choose a reason for hiding this comment

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

@tiagobento tiagobento merged commit 34c6856 into apache:main Mar 11, 2024
8 checks passed
paulovmr pushed a commit to kiegroup/kie-tools that referenced this pull request Mar 28, 2024
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.

5 participants