aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/src/exit_code.go
blob: dea56c837e18587d752aa34b0847e69d49ca9e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package app

type ExitCode struct {
	Code int
	Message string
}

func newExitCode(code int, message string) *ExitCode{
	exitCode := new (ExitCode)
	exitCode.Code = code
	exitCode.Message = message
	return exitCode
}

var (
	FAILED_TO_CREATE_CONTROLLER_MANAGER = ExitCode{1, "unable to create k8s controller manager"}
	FAILED_TO_REGISTER_CMPv2_ISSUER_CONTROLLER = ExitCode{2, "unable to register CMPv2Issuer controller"}
	FAILED_TO_REGISTER_CERT_REQUEST_CONTROLLER = ExitCode{3, "unable to register CertificateRequestController"}
	EXCEPTION_WHILE_RUNNING_CONTROLLER_MANAGER = ExitCode{4, "an exception occurs while running k8s controller manager"}
)