Add fn install & fn uninstall command - #5
Merged
Merged
Conversation
Signed-off-by: laminar <[email protected]> Signed-off-by: laminar <[email protected]>
tpiperatgod
marked this pull request as ready for review
November 30, 2021 07:04
Signed-off-by: laminar <[email protected]>
Member
Author
|
Here are two examples of fn install# fn install --all --upgrade
Start installing OpenFunction and its dependencies.
Here are the components and corresponding versions to be installed for this installation:
+------------------+---------+
| COMPONENT | VERSION |
+------------------+---------+
| Keda | 2.4.0 |
| Knative Serving | 0.26.0 |
| Cert Manager | v1.5.4 |
| Ingress Nginx | 1.1.0 |
| Tekton Pipelines | v0.28.1 |
| Shipwright | 0.6.0 |
| OpenFunction | v0.4.0 |
| Dapr | 1.4.3 |
+------------------+---------+
The following components already exist in the current cluster:
+------------------+---------+
| COMPONENT | VERSION |
+------------------+---------+
| Keda | |
| Knative Serving | |
| Ingress Nginx | |
| Cert Manager | |
| Tekton Pipelines | |
| Dapr | |
+------------------+---------+
You can see the list of components to be installed and the list of components already exist in the cluster.
You have used the `--upgrade` parameter, which means that the installation process will overwrite the components that already exist in the cluster.
Make sure you know what happens when you do this.
Enter 'y' to continue and 'n' to abort:
-> y
🔄 -> INGRESS <- Installing Ingress...
🔄 -> KNATIVE <- Installing Knative Serving...
🔄 -> DAPR <- Installing Dapr...
🔄 -> DAPR <- Downloading Dapr Cli binary...
🔄 -> KEDA <- Installing Keda...
🔄 -> CERTMANAGER <- Installing Cert Manager...
🔄 -> SHIPWRIGHT <- Installing Shipwright...
🔄 -> INGRESS <- Checking if Ingress is ready...
🔄 -> KEDA <- Checking if Keda is ready...
🔄 -> CERTMANAGER <- Checking if Cert Manager is ready...
🔄 -> SHIPWRIGHT <- Checking if Shipwright is ready...
🔄 -> KNATIVE <- Installing Kourier as Knative's gateway...
🔄 -> KNATIVE <- Configuring Knative Serving's DNS...
🔄 -> KNATIVE <- Checking if Knative Serving is ready...
✅ -> CERTMANAGER <- Done!
🔄 -> DAPR <- Initializing Dapr with Kubernetes mode...
✅ -> SHIPWRIGHT <- Done!
✅ -> KNATIVE <- Done!
✅ -> INGRESS <- Done!
✅ -> DAPR <- Done!
✅ -> KEDA <- Done!
🔄 -> OPENFUNCTION <- Installing OpenFunction...
🔄 -> OPENFUNCTION <- Checking if OpenFunction is ready...
✅ -> OPENFUNCTION <- Done!
🚀 Completed in 2m3.638035129s.fn uninstall~# fn uninstall --all
Start uninstalling OpenFunction and its dependencies.
Here are the components and corresponding versions to be uninstalled for this installation:
+------------------+---------+
| COMPONENT | VERSION |
+------------------+---------+
| Cert Manager | v1.5.4 |
| Ingress Nginx | 1.1.0 |
| Tekton Pipelines | v0.28.1 |
| Shipwright | 0.6.0 |
| OpenFunction | v0.4.0 |
| Dapr | 1.4.3 |
| Keda | 2.4.0 |
| Knative Serving | 0.26.0 |
+------------------+---------+
You can see the list of components to be installed and the list of components already exist in the cluster.
You have used the `--upgrade` parameter, which means that the installation process will overwrite the components that already exist in the cluster.
Make sure you know what happens when you do this.
Enter 'y' to continue and 'n' to abort:
-> y
🔄 -> OPENFUNCTION <- Uninstalling OpenFunction...
🔄 -> KNATIVE <- Uninstalling Knative Serving...
🔄 -> DAPR <- Uninstalling Dapr with Kubernetes mode...
🔄 -> KEDA <- Uninstalling Keda...
🔄 -> SHIPWRIGHT <- Uninstalling Tekton Pipeline & Shipwright...
🔄 -> INGRESS <- Uninstalling Ingress...
🔄 -> CERTMANAGER <- Uninstalling Cert Manager...
✅ -> OPENFUNCTION <- Done!
✅ -> DAPR <- Done!
🔄 -> KNATIVE <- Uninstalling Kourier...
✅ -> KEDA <- Done!
✅ -> CERTMANAGER <- Done!
✅ -> KNATIVE <- Done!
✅ -> INGRESS <- Done!
✅ -> SHIPWRIGHT <- Done!
🚀 Completed in 1m21.683329262s. |
Member
Author
|
And provide ~# make build
go fmt ./...
/opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
go vet ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
-o ./dist/fn_linux_amd64 cmd/main.go; |
wanjunlei
requested changes
Nov 30, 2021
Signed-off-by: laminar <[email protected]>
wanjunlei
approved these changes
Dec 1, 2021
benjaminhuo
reviewed
Dec 1, 2021
benjaminhuo
reviewed
Dec 1, 2021
benjaminhuo
reviewed
Dec 1, 2021
Signed-off-by: laminar <[email protected]>
benjaminhuo
approved these changes
Dec 1, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add fn install & fn uninstall command
Signed-off-by: laminar [email protected]