summaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/src/exit_code.go
blob: 4fb984d3680c64aa56a94c112641b80046e24428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package app

type ExitCode struct {
	Code    int
	Message string
}

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"}
)