# Functions

BuildLabelsForWatchedResources returns labels for Kubernetes resources which operator want to watch resources with that labels should not be deleted after Jenkins CR deletion, to prevent this situation don't set any owner.
BuildResourceLabels returns labels for all Kubernetes resources created by operator.
ConvertJenkinsContainerToKubernetesContainer converts Jenkins container to Kubernetes container.
GetBaseConfigurationConfigMapName returns name of Kubernetes config map used to base configuration.
GetInitConfigurationConfigMapName returns name of Kubernetes config map used to init configuration.
GetJenkinsMasterPodName returns Jenkins pod name for given CR.
GetJenkinsHTTPServiceFQDN returns Kubernetes service FQDN used for expose Jenkins HTTP endpoint.
GetJenkinsHTTPServiceName returns Kubernetes service name used for expose Jenkins HTTP endpoint.
GetJenkinsMasterContainerBaseCommand returns default Jenkins master container command.
GetJenkinsMasterContainerBaseEnvs returns Jenkins master pod envs required by operator.
GetJenkinsMasterContainerBaseVolumeMounts returns Jenkins master pod volume mounts required by operator.
GetJenkinsMasterPodBaseVolumes returns Jenkins master pod volumes required by operator.
GetJenkinsMasterPodLabels returns Jenkins pod labels for given CR.
GetJenkinsMasterPodName returns Jenkins pod name for given CR.
GetJenkinsOpts gets JENKINS_OPTS env parameter, parses it's values and returns it as a map`.
GetJenkinsSlavesServiceFQDN returns Kubernetes service FQDN used for expose Jenkins slave endpoint.
GetJenkinsSlavesServiceName returns Kubernetes service name used for expose Jenkins slave endpoint.
GetOperatorCredentialsSecretName returns name of Kubernetes secret used to store jenkins operator credentials to allow calls to Jenkins API.
GetResourceName returns name of Kubernetes resource base on Jenkins CR.
IsRouteAPIAvailable tells if the Route API is installed and discoverable.
No description provided by the author
NewBaseConfigurationConfigMap builds Kubernetes config map used to base configuration.
NewDefaultPolicyRules sets the default policy rules.
NewInitConfigurationConfigMap builds Kubernetes config map used to init configuration.
NewJenkinsMasterPod builds Jenkins Master Kubernetes Pod resource.
NewJenkinsMasterContainer returns Jenkins master Kubernetes container.
NewJenkinsMasterPod builds Jenkins Master Kubernetes Pod resource.
NewOpenShiftPolicyRule returns a policyRule allowing verbs on resources.
NewOperatorCredentialsSecret builds the Kubernetes secret used to store jenkins operator credentials to allow calls to Jenkins API.
NewPolicyRule returns a policyRule allowing verbs on resources.
No description provided by the author
NewResourceObjectMeta builds ObjectMeta for all Kubernetes resources created by operator.
No description provided by the author
NewRole returns rbac role for jenkins master.
NewRoleBinding returns rbac role binding for jenkins master.
NewScriptsConfigMap builds Kubernetes config map used to store scripts.
NewServiceAccount return Kubernetes service account.
UpdateRoute returns new route matching the service.
UpdateService returns new service with override fields from config.
VerifyIfLabelsAreSet check is selected labels are set for specific resource.

# Constants

BuildAPIGroup the openshift api group name for builds.
ConfigurationAsCodeSecretVolumePath is a path where are CasC configs used to configure Jenkins This script is provided by user.
EmptyAPIGroup short hand for the empty API group while defining policies.
GroovyScriptsSecretVolumePath is a path where are groovy scripts used to configure Jenkins This script is provided by user.
InitScriptName is the init script name which configures init.groovy.d, scripts and install plugins.
JenkinsHomeVolumeName is the Jenkins home volume name.
JenkinsMasterContainerName is the Jenkins master container name in pod.
JenkinsScriptsVolumePath is a path where are scripts used to configure Jenkins.
OpenshiftAPIGroup the openshift api group name.
OperatorCredentialsSecretPasswordKey defines key of password in operator credentials secret.
OperatorCredentialsSecretTokenCreationKey defines key of token creation time in operator credentials secret.
OperatorCredentialsSecretTokenKey defines key of token in operator credentials secret.
OperatorCredentialsSecretUserNameKey defines key of username in operator credentials secret.
OperatorUserName defines username for Jenkins API calls.
ServiceKind the kind name for Service.