createssl

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package createssl functions

Index

Constants

This section is empty.

Variables

View Source
var CreateCertificateCmd = &cobra.Command{
	Use:   "create-service-ssl-secret",
	Short: "Create secret for service SSL certificate",
	Long:  "This command adds secret with SSL certificate content",

	Run: func(cmd *cobra.Command, args []string) {
		sfNamespace, _ := cmd.Flags().GetString("sf-namespace")
		sfContext, _ := cmd.Flags().GetString("sf-context")
		sfServiceCA, _ := cmd.Flags().GetString("sf-service-ca")
		sfServiceCert, _ := cmd.Flags().GetString("sf-service-cert")
		sfServiceKey, _ := cmd.Flags().GetString("sf-service-key")
		sfEnv := utils.ENV{
			Cli: utils.CreateKubernetesClientOrDie(sfContext),
			Ctx: context.TODO(),
			Ns:  sfNamespace,
		}
		conf := config.GetSFConfigOrDie()
		CreateServiceCertSecret(&sfEnv, sfNamespace, sfServiceCA,
			sfServiceCert, sfServiceKey, conf.FQDN)

	},
}

Functions

func CreateServiceCertSecret

func CreateServiceCertSecret(sfEnv *utils.ENV, sfNamespace string,
	sfServiceCA string, sfServiceCert string,
	sfServiceKey string, serverName string,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL