1
0
mirror of https://github.com/alexellis/arkade.git synced 2022-05-07 18:22:49 +03:00

Update thanks message to support message

Adds a message to downloads and K8s apps to show how to
support arkade.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2022-04-11 09:24:12 +01:00
parent f986323e1c
commit be5a8cc594
85 changed files with 163 additions and 139 deletions

View File

@@ -8,10 +8,10 @@
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
## Are you a GitHub Sponsor (Yes/No?)
## Are you a GitHub Sponsor yet (Yes/No?)
Check at https://github.com/sponsors/alexellis
<!--- Sponsors get priority because they support the project -->
<!-- Requests from sponsors take priority -->
<!--- Check at https://github.com/sponsors/alexellis -->
- [ ] Yes
- [ ] No

View File

@@ -14,10 +14,10 @@
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
## Are you a GitHub Sponsor (Yes/No?)
## Are you a GitHub Sponsor yet (Yes/No?)
<!-- Requests from sponsors take priority -->
<!--- Check at https://github.com/sponsors/alexellis -->
<!--- Sponsors get priority because they support the project -->
- [ ] Yes
- [ ] No

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -86,4 +86,4 @@ https://127.0.0.1:8443
const ArgoCDInfoMsgInstallMsg = `=======================================================================
= ArgoCD has been installed =
=======================================================================` +
"\n\n" + ArgoCDInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + ArgoCDInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -138,4 +138,4 @@ const CassandraInfoMsg = `
var cassandraInstallMsg = `=======================================================================
= cassandra has been installed =
=======================================================================` +
"\n\n" + CassandraInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + CassandraInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -80,4 +80,4 @@ const CertManagerInfoMsg = `# Get started with cert-manager here:
const certManagerInstallMsg = `=======================================================================
= cert-manager has been installed. =
=======================================================================` +
"\n\n" + CertManagerInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + CertManagerInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -134,7 +134,7 @@ before using the generic helm chart installer command.`,
chart ` + chartRepoName + ` installed.
=======================================================================
` + pkg.ThanksForUsing)
` + pkg.SupportMessageShort)
return nil
}

View File

@@ -108,4 +108,4 @@ kubectl port-forward service/cockroachdb 8080:8080`
const cockroachdbInstallMsg = `=======================================================================
= CockroachDB has been installed =
=======================================================================
` + pkg.ThanksForUsing + CockroachdbInfoMsg
` + pkg.SupportMessageShort + CockroachdbInfoMsg

View File

@@ -139,4 +139,4 @@ https://github.com/confluentinc/cp-helm-charts
const kafkaPostInstallMsg = `=======================================================================
= Kafka has been installed. =
=======================================================================` +
"\n\n" + KafkaInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KafkaInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -140,4 +140,4 @@ const ConsulInfoMsg = `# Find out more at:
const consulInstallMsg = `=======================================================================
= Consul has been installed. =
=======================================================================` +
"\n\n" + ConsulInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + ConsulInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -83,4 +83,4 @@ kubectl logs deploy/cron-connector -n openfaas -f
const cronConnectorInstallMsg = `=======================================================================
= cron-connector has been installed. =
=======================================================================` +
"\n\n" + CronConnectorInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + CronConnectorInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -119,4 +119,4 @@ Learn more about Crossplane: https://crossplaneio.github.io/docs/`
const crossplaneInstallMsg = `=======================================================================
= Crossplane has been installed. =
=======================================================================` +
"\n\n" + CrossplaneInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + CrossplaneInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -115,4 +115,4 @@ https://falco.org/docs/
var falcoInstallMsg = `=======================================================================
= Falco has been installed. =
=======================================================================` +
"\n\n" + FalcoInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + FalcoInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -117,4 +117,4 @@ kubectl --namespace {{ namespace }} port-forward svc/gitea-http 3000:3000
var giteaInstallMsg = `=======================================================================
= Gitea has been installed. =
=======================================================================` +
"\n\n" + GiteaInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + GiteaInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -104,4 +104,4 @@ kubectl get secret gitlab-gitlab-initial-root-password -o jsonpath='{.data.passw
const gitlabInstallMsg = `=======================================================================
= GitLab has been installed. =
=======================================================================` +
"\n\n" + GitlabInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + GitlabInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -132,4 +132,4 @@ arkade install grafana --persistence
var grafanaInstallMsg = `=======================================================================
= grafana has been installed =
=======================================================================` +
"\n\n" + GrafanaInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + GrafanaInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -82,4 +82,4 @@ To view the logs for the InfluxDB pod, run the following:
const influxdbInstallMsg = `=======================================================================
= influxdb has been installed. =
=======================================================================` +
"\n\n" + InfluxdbInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + InfluxdbInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -357,7 +357,7 @@ kubectl logs deploy/inlets-operator -f
const inletsOperatorPostInstallMsg = `=======================================================================
= inlets-operator has been installed. =
=======================================================================` +
"\n\n" + InletsOperatorInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + InletsOperatorInfoMsg + "\n\n" + pkg.SupportMessageShort
type Secret struct {
Namespace string

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -177,4 +177,4 @@ const InletsTcpClientInfoMsg = `# Find out more at:
const inletsTcpClientInstallMsg = `=======================================================================
= inlets PRO TCP client has been installed. =
=======================================================================` +
"\n\n" + InletsTcpClientInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + InletsTcpClientInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -175,7 +175,7 @@ const IstioInfoMsg = `# Find out more at:
const istioPostInstallMsg = `=======================================================================
= Istio has been installed. =
=======================================================================` +
"\n\n" + IstioInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + IstioInfoMsg + "\n\n" + pkg.SupportMessageShort
func downloadIstio(userPath, arch, clientOS, version string) error {

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -130,4 +130,4 @@ echo http://127.0.0.1:8080
var jenkinsInstallMsg = `=======================================================================
= Jenkins has been installed. =
=======================================================================` +
"\n\n" + JenkinsInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + JenkinsInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -122,4 +122,4 @@ kubectl logs deploy/kafka-connector -n openfaas -f
const kafkaConnectorInstallMsg = `=======================================================================
= kafka-connector has been installed. =
=======================================================================` +
"\n\n" + KafkaConnectorInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KafkaConnectorInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -92,4 +92,4 @@ kanctl create profile s3compliant --bucket $S3_BUCKET \
const KanisterInstallMsg = `=======================================================================
= kanister has been installed. =
=======================================================================` +
"\n\n" + KanisterInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KanisterInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -75,4 +75,4 @@ const KongIngressInfoMsg = `# If you're using a local environment such as "minik
const kongIngressInstallMsg = `=======================================================================
= kong-ingress has been installed. =
=======================================================================` +
"\n\n" + KongIngressInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KongIngressInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -39,7 +39,7 @@ func MakeInstallKubeImagePrefetch() *cobra.Command {
fmt.Println(`=======================================================================
= kube-image-prefetch has been installed. =
=======================================================================` +
"\n\n" + KubeImagePrefetchInfoMsg + "\n\n" + pkg.ThanksForUsing)
"\n\n" + KubeImagePrefetchInfoMsg + "\n\n" + pkg.SupportMessageShort)
return nil
}

View File

@@ -1,10 +1,11 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
import (
"fmt"
"github.com/alexellis/arkade/pkg/apps"
"github.com/alexellis/arkade/pkg/k8s"
"github.com/alexellis/arkade/pkg/types"
@@ -79,7 +80,7 @@ kubectl port-forward -n ` + namespace + ` service/kube-state-metrics 9000:8080 &
# Then access via:
http://localhost:9000/metrics
` + KubeStateMetricsInfoMsg + `
` + pkg.ThanksForUsing)
` + pkg.SupportMessageShort)
return nil
}

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -84,4 +84,4 @@ http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kube
const KubernetesDashboardInstallMsg = `=======================================================================
= Kubernetes Dashboard has been installed. =
=======================================================================` +
"\n\n" + KubernetesDashboardInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KubernetesDashboardInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -2,6 +2,7 @@ package apps
import (
"fmt"
"github.com/alexellis/arkade/pkg"
"github.com/alexellis/arkade/pkg/apps"
"github.com/alexellis/arkade/pkg/config"
@@ -147,4 +148,4 @@ kubectl port-forward svc/kuma-control-plane -n kuma-system 5681:5681
const kumaInstallMsg = `=======================================================================
= Kuma has been installed =
=======================================================================
` + pkg.ThanksForUsing + KumaInfoMsg
` + pkg.SupportMessageShort + KumaInfoMsg

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -100,4 +100,4 @@ Access the complete user documentation and guides at: https://kyverno.io/
var kyvernoInstallMsg = `=======================================================================
= Kyverno has been installed. =
=======================================================================` +
"\n\n" + KyvernoInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + KyvernoInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -117,7 +117,7 @@ func MakeInstallLinkerd() *cobra.Command {
export PATH=$PATH:` + path.Join(userPath, "bin/") + `
linkerd2 --help
` + pkg.ThanksForUsing)
` + pkg.SupportMessageShort)
return nil
}

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -95,4 +95,4 @@ kubectl logs svc/loki-stack-headless
const lokiInstallMsg = `=======================================================================
= loki has been installed. =
=======================================================================` +
"\n\n" + LokiInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + LokiInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -127,7 +127,7 @@ kubectl get configmap -n metallb-system config --template={{.data.config}}
const MetalLBInstallMsg = `=======================================================================
= MetalLB has been installed. =
=======================================================================` +
"\n\n" + MetalLBInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + MetalLBInfoMsg + "\n\n" + pkg.SupportMessageShort
const metalLBConfigMap = `
apiVersion: v1

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -171,4 +171,4 @@ mc ls minio
var minioInstallMsg = `=======================================================================
= Minio has been installed. =
=======================================================================` +
"\n\n" + MinioInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + MinioInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -108,7 +108,7 @@ func MakeInstallMongoDB() *cobra.Command {
const mongoDBPostInstallMsg = `=======================================================================
= MongoDB has been installed. =
=======================================================================` +
"\n\n" + pkg.ThanksForUsing
"\n\n" + pkg.SupportMessageShort
var MongoDBInfoMsg = `
# MongoDB can be accessed via port 27017 on the following DNS name from within your cluster:

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -110,4 +110,4 @@ kubectl logs deploy/mqtt-connector -n openfaas -f
const mqttConnectorInstallMsg = `=======================================================================
= mqtt-connector has been installed. =
=======================================================================` +
"\n\n" + MQTTConnectorInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + MQTTConnectorInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -67,4 +67,4 @@ https://github.com/openfaas/faas-netes/tree/master/chart/nats-connector
const NATSConnectorInstallMsg = `=======================================================================
= nats-connector has been installed. =
=======================================================================` +
"\n\n" + NATSConnectorInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + NATSConnectorInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -137,4 +137,4 @@ kubectl delete -f deploy/test-pod.yaml -f deploy/test-claim.yaml
const nfsClientInstallMsg = `=======================================================================
= nfs-client-provisioner has been installed. =
=======================================================================` +
"\n\n" + NfsClientProvisioneriInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + NfsClientProvisioneriInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -97,4 +97,4 @@ kubectl get svc ingress-nginx-controller
const nginxIngressInstallMsg = `=======================================================================
= ingress-nginx has been installed. =
=======================================================================` +
"\n\n" + NginxIngressInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + NginxIngressInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -127,4 +127,4 @@ const NginxIncIngressInfoMsg = `# If you're using a local environment such as "m
const NginxIncIngressInstallMsg = `=======================================================================
= nginx-inc has been installed. =
=======================================================================` +
"\n\n" + NginxIncIngressInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + NginxIncIngressInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -89,4 +89,4 @@ faas-cli logs
const lokiOFInstallMsg = `=======================================================================
= OpenFaaS loki has been installed. =
=======================================================================` +
"\n\n" + LokiOFInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + LokiOFInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -106,4 +106,4 @@ https://github.com/open-policy-agent/gatekeeper#how-to-use-gatekeeper
var opaGatekeeperInstallMsg = `=======================================================================
= Open Policy Agent Gatekeeper has been installed. =
=======================================================================` +
"\n\n" + OPAGatekeeperInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + OPAGatekeeperInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -265,4 +265,4 @@ faas-cli store deploy figlet \
const openfaasPostInstallMsg = `=======================================================================
= OpenFaaS has been installed. =
=======================================================================` +
"\n\n" + OpenFaaSInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + OpenFaaSInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -292,7 +292,7 @@ kubectl describe -n openfaas Certificate openfaas-gateway
const openfaasIngressInstallMsg = `=======================================================================
= OpenFaaS Ingress and cert-manager ClusterIssuer have been installed =
=======================================================================` +
"\n\n" + OpenfaasIngressInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + OpenfaasIngressInfoMsg + "\n\n" + pkg.SupportMessageShort
// Ingress in extensions/v1beta1 are removed in k8s 1.22+, July 2021
var openfaasIngressExtensionTemplate = `

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -81,7 +81,7 @@ service mesh created by Microsoft Azure.`,
= OSM has been installed. =
=======================================================================
` +
OSMInfoMsg + pkg.ThanksForUsing)
OSMInfoMsg + pkg.SupportMessageShort)
return nil
}
@@ -163,4 +163,4 @@ osm --help
var osmInstallMsg = `=======================================================================
= Open Service Mesh (OSM) has been installed. =
=======================================================================` +
"\n\n" + OSMInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + OSMInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -105,4 +105,4 @@ Find out more at https://www.portainer.io/
const portainerInstallMsg = `=======================================================================
= Portainer has been installed =
=======================================================================` +
"\n\n" + PortainerInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + PortainerInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -107,4 +107,4 @@ To connect to your database from outside the cluster execute the following comma
const postgresqlInstallMsg = `=======================================================================
= PostgreSQL has been installed. =
=======================================================================` +
"\n\n" + PostgresqlInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + PostgresqlInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -100,4 +100,4 @@ const PrometheusInfoMsg = `# Get started with Prometheus here:
const PrometheusInstallMsg = `=======================================================================
= prometheus has been installed. =
=======================================================================` +
"\n\n" + PrometheusInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + PrometheusInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -131,4 +131,4 @@ const RabbitmqInfoMsg = `
var rabbitmqInstallMsg = `=======================================================================
= rabbitmq has been installed =
=======================================================================` +
"\n\n" + RabbitmqInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + RabbitmqInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -81,7 +81,7 @@ func MakeInstallRedis() *cobra.Command {
const redisInstallMsg = `=======================================================================
= redis has been installed =
=======================================================================
` + RedisInfoMsg + pkg.ThanksForUsing
` + RedisInfoMsg + pkg.SupportMessageShort
const RedisInfoMsg = `
# Redis can be accessed via port 6379 on the following DNS names from within your cluster:

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -177,4 +177,4 @@ docker push $IP:5000/alpine:3.11
const registryInstallMsg = `=======================================================================
= docker-registry has been installed. =
=======================================================================` +
"\n\n" + RegistryInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + RegistryInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -150,7 +150,7 @@ kubectl get serviceaccount default -o yaml
fmt.Println(`=======================================================================
= registry-creds has been installed. =
=======================================================================` +
"\n\n" + RegistryCredsOperatorInfoMsg + "\n\n" + pkg.ThanksForUsing)
"\n\n" + RegistryCredsOperatorInfoMsg + "\n\n" + pkg.SupportMessageShort)
return nil
}

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -174,7 +174,7 @@ kubectl describe -n <installed-namespace> Certificate docker-registry
const RegistryIngressInstallMsg = `=======================================================================
= Docker Registry Ingress and cert-manager Issuer have been installed =
=======================================================================` +
"\n\n" + RegistryIngressInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + RegistryIngressInfoMsg + "\n\n" + pkg.SupportMessageShort
// Ingress in extensions/v1beta1 are removed in k8s 1.22+, July 2021
var registryIngressExtensionsYamlTemplate = `

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -69,7 +69,7 @@ func MakeInstallSealedSecrets() *cobra.Command {
const SealedSecretsPostInstallMsg = `=======================================================================
= The SealedSecrets app has been installed. =
=======================================================================` +
"\n\n" + pkg.ThanksForUsing
"\n\n" + pkg.SupportMessageShort
var SealedSecretsInfoMsg = `# Find out more on the project homepage:
# https://github.com/bitnami-labs/sealed-secrets#usage

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -68,4 +68,4 @@ For more information...
const TektonInstallMsg = `=======================================================================
= Tekton pipelines and dashboard have been installed. =
=======================================================================` +
"\n\n" + TektonInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + TektonInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -124,4 +124,4 @@ kubectl get svc -n kube-system traefik`
const traefikInstallMsg = `=======================================================================
= traefik2 has been installed =
=======================================================================
` + pkg.ThanksForUsing + Traefik2InfoMsg
` + pkg.SupportMessageShort + Traefik2InfoMsg

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package apps
@@ -76,4 +76,4 @@ const WaypointInfoMsg = `# Find out more at:
const waypointInstallMsg = `=======================================================================
= Waypoint has been installed. =
=======================================================================` +
"\n\n" + WaypointInfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + WaypointInfoMsg + "\n\n" + pkg.SupportMessageShort

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd
@@ -11,8 +11,11 @@ import (
"strconv"
"syscall"
units "github.com/docker/go-units"
"github.com/morikuni/aec"
"github.com/spf13/cobra"
"github.com/alexellis/arkade/pkg"
"github.com/alexellis/arkade/pkg/env"
"github.com/alexellis/arkade/pkg/get"
)
@@ -39,8 +42,8 @@ and provides a fast and easy alternative to a package manager.`,
arkade get kubectl --progress=false
# Override the version
arkade get terraform --version=0.12.0
arkade get kubectl@v1.19.3
arkade get terraform --version=0.12.0
# Override the OS
arkade get helm --os darwin --arch aarch64
@@ -98,7 +101,7 @@ and provides a fast and easy alternative to a package manager.`,
progress, _ := command.Flags().GetBool("progress")
quiet, _ := command.Flags().GetBool("quiet")
if quiet && command.Flags().Changed("progress") == false {
if quiet && !command.Flags().Changed("progress") {
progress = false
}
@@ -153,11 +156,19 @@ and provides a fast and easy alternative to a package manager.`,
localToolsStore = append(localToolsStore, get.ToolLocal{Name: tool.Name, Path: outFilePath})
if !quiet {
fmt.Printf("\nTool written to: %s\n\n", outFilePath)
size := ""
stat, err := os.Stat(outFilePath)
if err == nil {
size = "(" + units.HumanSize(float64(stat.Size())) + ")"
}
fmt.Printf("\nWrote: %s %s\n\n", outFilePath, size)
}
}
nl := ""
if !quiet {
nl = "\n"
msg, err := get.PostInstallationMsg(dlMode, localToolsStore)
if err != nil {
return err
@@ -165,6 +176,8 @@ and provides a fast and easy alternative to a package manager.`,
fmt.Printf("%s\n", msg)
}
fmt.Printf("%s%s\n", nl, aec.Bold.Apply(pkg.SupportMessageShort))
return err
}
return command

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// kasten contains a suite of Sponsored Apps for arkade

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// kasten contains a suite of Sponsored Apps for arkade
@@ -9,7 +9,6 @@ import (
"strconv"
"strings"
"github.com/alexellis/arkade/pkg"
"github.com/alexellis/arkade/pkg/apps"
"github.com/alexellis/arkade/pkg/config"
"github.com/alexellis/arkade/pkg/types"
@@ -147,7 +146,7 @@ https://docs.kasten.io/latest/install/install.html`
const k10InstallCmd = `=======================================================================
= k10 has been installed. =
=======================================================================` +
"\n\n" + k10InfoMsg + "\n\n" + pkg.ThanksForUsing
"\n\n" + k10InfoMsg + "\n\n"
func mergeFlags(existingMap map[string]string, setOverrides []string) error {
for _, setOverride := range setOverrides {

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// kasten contains a suite of Sponsored Apps for arkade

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd
@@ -6,6 +6,8 @@ package cmd
import (
"fmt"
"github.com/alexellis/arkade/pkg"
"github.com/morikuni/aec"
"github.com/spf13/cobra"
)
@@ -19,6 +21,8 @@ func MakeUpdate() *cobra.Command {
}
command.Run = func(cmd *cobra.Command, args []string) {
fmt.Println(arkadeUpdate)
fmt.Println("\n", aec.Bold.Apply(pkg.SupportMessageShort))
}
return command
}

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// venafi contains a suite of Sponsored Apps for arkade

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package venafi

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package cmd
@@ -6,6 +6,7 @@ package cmd
import (
"fmt"
"github.com/alexellis/arkade/pkg"
"github.com/morikuni/aec"
"github.com/spf13/cobra"
)
@@ -36,6 +37,8 @@ func MakeVersion() *cobra.Command {
fmt.Println("Version:", Version)
}
fmt.Println("Git Commit:", GitCommit)
fmt.Println("\n", aec.Bold.Apply(pkg.SupportMessageShort))
}
return command
}
@@ -46,6 +49,6 @@ const arkadeFigletStr = ` _ _
| (_| | | | < (_| | (_| | __/
\__,_|_| |_|\_\__,_|\__,_|\___|
Get Kubernetes apps the easy way
Open Source Marketplace For Developer Tools
`

1
go.mod
View File

@@ -6,6 +6,7 @@ require (
github.com/Masterminds/semver v1.5.0
github.com/alexellis/go-execute v0.5.0
github.com/cheggaaa/pb/v3 v3.0.8
github.com/docker/go-units v0.4.0
github.com/fatih/color v1.13.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/morikuni/aec v1.0.0

2
go.sum
View File

@@ -7,6 +7,8 @@ github.com/alexellis/go-execute v0.5.0/go.mod h1:AgHTcsCF9wrP0mMVTO8N+lFw1Biy71N
github.com/cheggaaa/pb/v3 v3.0.8 h1:bC8oemdChbke2FHIIGy9mn4DPJ2caZYQnfbRqwmdCoA=
github.com/cheggaaa/pb/v3 v3.0.8/go.mod h1:UICbiLec/XO6Hw6k+BHEtHeQFzzBH4i2/qk/ow1EJTA=
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package main

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package archive

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package config

2
pkg/env/env.go vendored
View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package env

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package helm

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package helm

View File

@@ -1,4 +1,4 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package k8s

View File

@@ -1,7 +1,7 @@
// Copyright (c) arkade author(s) 2020. All rights reserved.
// Copyright (c) arkade author(s) 2022. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package pkg
// ThanksForUsing message is printed after installing apps
const ThanksForUsing = `Thanks for using arkade!`
// SupportMessageShort shows how to support arkade
const SupportMessageShort = `🐳 arkade needs your support, learn more: https://my.arkade.dev`