Skip to main content
Version: 3.9.0

SonarQube Operator API

Packages:

edp.epam.com/v1alpha1

Resource Types:

SonarGroup​

↩ Parent

SonarGroup is the Schema for the sonar group API.

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonarGrouptrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarGroupSpec defines the desired state of SonarGroup.

false
statusobject

SonarGroupStatus defines the observed state of SonarGroup.

false

SonarGroup.spec​

↩ Parent

SonarGroupSpec defines the desired state of SonarGroup.

NameTypeDescriptionRequired
namestring

Name is a group name. Name should be unique across all groups. Do not edit this field after creation. Otherwise, the group will be recreated.

true
sonarRefobject

SonarRef is a reference to Sonar custom resource.

true
descriptionstring

Description of sonar group.

false
permissions[]string

Permissions is a list of permissions assigned to group.

false

SonarGroup.spec.sonarRef​

↩ Parent

SonarRef is a reference to Sonar custom resource.

NameTypeDescriptionRequired
namestring

Name specifies the name of the Sonar resource.

true
kindstring

Kind specifies the kind of the Sonar resource.


Default: Sonar

false

SonarGroup.status​

↩ Parent

SonarGroupStatus defines the observed state of SonarGroup.

NameTypeDescriptionRequired
errorstring

Error is an error message if something went wrong.

false
valuestring

Value is a status of the group.

false

SonarPermissionTemplate​

↩ Parent

SonarPermissionTemplate is the Schema for the sonar permission template API.

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonarPermissionTemplatetrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarPermissionTemplateSpec defines the desired state of SonarPermissionTemplate.

false
statusobject

SonarPermissionTemplateStatus defines the observed state of SonarPermissionTemplate.

false

SonarPermissionTemplate.spec​

↩ Parent

SonarPermissionTemplateSpec defines the desired state of SonarPermissionTemplate.

NameTypeDescriptionRequired
namestring

Name is a name of permission template. Name should be unique across all permission templates. Do not edit this field after creation. Otherwise, the permission template will be recreated.

true
sonarRefobject

SonarRef is a reference to Sonar custom resource.

true
defaultboolean

Default is a flag to set permission template as default. Only one permission template can be default. If several permission templates have default flag, the random one will be chosen. Default permission template can't be deleted. You need to set another permission template as default before.

false
descriptionstring

Description of sonar permission template.

false
groupsPermissionsmap[string][]string

GroupsPermissions is a map of groups and permissions assigned to them.

false
projectKeyPatternstring

ProjectKeyPattern is key pattern. Must be a valid Java regular expression.

false

SonarPermissionTemplate.spec.sonarRef​

↩ Parent

SonarRef is a reference to Sonar custom resource.

NameTypeDescriptionRequired
namestring

Name specifies the name of the Sonar resource.

true
kindstring

Kind specifies the kind of the Sonar resource.


Default: Sonar

false

SonarPermissionTemplate.status​

↩ Parent

SonarPermissionTemplateStatus defines the observed state of SonarPermissionTemplate.

NameTypeDescriptionRequired
errorstring

Error is an error message if something went wrong.

false
valuestring

Value is a status of the permission template.

false

SonarQualityGate​

↩ Parent

SonarQualityGate is the Schema for the sonarqualitygates API

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonarQualityGatetrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarQualityGateSpec defines the desired state of SonarQualityGate

false
statusobject

SonarQualityGateStatus defines the observed state of SonarQualityGate

false

SonarQualityGate.spec​

↩ Parent

SonarQualityGateSpec defines the desired state of SonarQualityGate

NameTypeDescriptionRequired
namestring

Name is a name of quality gate. Name should be unique across all quality gates. Don't change this field after creation otherwise quality gate will be recreated.

true
sonarRefobject

SonarRef is a reference to Sonar custom resource.

true
conditionsmap[string]object

Conditions is a list of conditions for quality gate. Key is a metric name, value is a condition.

false
defaultboolean

Default is a flag to set quality gate as default. Only one quality gate can be default. If several quality gates have default flag, the random one will be chosen. Default quality gate can't be deleted. You need to set another quality gate as default before.

false

SonarQualityGate.spec.sonarRef​

↩ Parent

SonarRef is a reference to Sonar custom resource.

NameTypeDescriptionRequired
namestring

Name specifies the name of the Sonar resource.

true
kindstring

Kind specifies the kind of the Sonar resource.


Default: Sonar

false

SonarQualityGate.spec.conditions[key]​

↩ Parent

Condition defines the condition for quality gate.

NameTypeDescriptionRequired
errorstring

Error is condition error threshold.

true
openum

Op is condition operator. LT = is lower than GT = is greater than


Enum: LT, GT

false

SonarQualityGate.status​

↩ Parent

SonarQualityGateStatus defines the observed state of SonarQualityGate

NameTypeDescriptionRequired
errorstring

Error is an error message if something went wrong.

false
valuestring

Value is a status of the quality gate.

false

SonarQualityProfile​

↩ Parent

SonarQualityProfile is the Schema for the sonarqualityprofiles API

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonarQualityProfiletrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarQualityProfileSpec defines the desired state of SonarQualityProfile

false
statusobject

SonarQualityProfileStatus defines the observed state of SonarQualityProfile

false

SonarQualityProfile.spec​

↩ Parent

SonarQualityProfileSpec defines the desired state of SonarQualityProfile

NameTypeDescriptionRequired
languagestring

Language is a language of quality profile.

true
namestring

Name is a name of quality profile. Name should be unique across all quality profiles. Don't change this field after creation otherwise quality profile will be recreated.

true
sonarRefobject

SonarRef is a reference to Sonar custom resource.

true
defaultboolean

Default is a flag to set quality profile as default. Only one quality profile can be default. If several quality profiles have default flag, the random one will be chosen. Default quality profile can't be deleted. You need to set another quality profile as default before.

false
rulesmap[string]object

Rules is a list of rules for quality profile. Key is a rule key, value is a rule.

false

SonarQualityProfile.spec.sonarRef​

↩ Parent

SonarRef is a reference to Sonar custom resource.

NameTypeDescriptionRequired
namestring

Name specifies the name of the Sonar resource.

true
kindstring

Kind specifies the kind of the Sonar resource.


Default: Sonar

false

SonarQualityProfile.spec.rules[key]​

↩ Parent

Rule defines a rule of quality profile.

NameTypeDescriptionRequired
paramsstring

Params is as semicolon list of key=value.

false
severityenum

Severity is a severity of rule.


Enum: INFO, MINOR, MAJOR, CRITICAL, BLOCKER

false

SonarQualityProfile.status​

↩ Parent

SonarQualityProfileStatus defines the observed state of SonarQualityProfile

NameTypeDescriptionRequired
errorstring

Error is an error message if something went wrong.

false
valuestring

Value is a status of the quality profile.

false

Sonar​

↩ Parent

Sonar is the Schema for the sonars API.

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonartrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarSpec defines the desired state of Sonar.

false
statusobject

SonarStatus defines the observed state of Sonar.

false

Sonar.spec​

↩ Parent

SonarSpec defines the desired state of Sonar.

NameTypeDescriptionRequired
secretstring

Secret is the name of the k8s object Secret related to sonar. Secret should contain a user field with a sonar username and a password field with a sonar password. Pass the token in the user field and leave the password field empty for token authentication.

true
urlstring

Url is the url of sonar instance.

true
defaultPermissionTemplatestring

DefaultPermissionTemplate is the name of the default permission template.

false
settings[]object

Settings specify which settings should be configured.

false

Sonar.spec.settings[index]​

↩ Parent

SonarSetting defines the setting of sonar.

NameTypeDescriptionRequired
keystring

Key is the key of the setting.

true
fieldValuesmap[string]string

Setting field values. To set several values, the parameter must be called once for each value.

false
valuestring

Value is the value of the setting.

false
values[]string

Setting multi value. To set several values, the parameter must be called once for each value.

false

Sonar.status​

↩ Parent

SonarStatus defines the observed state of Sonar.

NameTypeDescriptionRequired
connectedboolean

Connected shows if operator is connected to sonar.

false
errorstring

Error represents error message if something went wrong.

false
processedSettingsstring

ProcessedSettings shows which settings were processed. It is used to compare the current settings with the settings that were processed to unset the settings that are not in the current settings.

false
valuestring

Value is status of sonar instance. Possible values: GREEN: SonarQube is fully operational YELLOW: SonarQube is usable, but it needs attention in order to be fully operational RED: SonarQube is not operational

false

SonarUser​

↩ Parent

SonarUser is the Schema for the sonarusers API

NameTypeDescriptionRequired
apiVersionstringedp.epam.com/v1alpha1true
kindstringSonarUsertrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the metadata field.true
specobject

SonarUserSpec defines the desired state of SonarUser

false
statusobject

SonarUserStatus defines the observed state of SonarUser

false

SonarUser.spec​

↩ Parent

SonarUserSpec defines the desired state of SonarUser

NameTypeDescriptionRequired
loginstring

Login is a user login. Do not edit this field after creation. Otherwise, the user will be recreated.

true
namestring

Name is a username.

true
secretstring

Secret is the name of the secret with the user password. It should contain a password field with a user password. User password can't be updated.

true
sonarRefobject

SonarRef is a reference to Sonar custom resource.

true
emailstring

Email is a user email.

false
groups[]string

Groups is a list of groups assigned to user.

false
permissions[]string

Permissions is a list of permissions assigned to user.

false

SonarUser.spec.sonarRef​

↩ Parent

SonarRef is a reference to Sonar custom resource.

NameTypeDescriptionRequired
namestring

Name specifies the name of the Sonar resource.

true
kindstring

Kind specifies the kind of the Sonar resource.


Default: Sonar

false

SonarUser.status​

↩ Parent

SonarUserStatus defines the observed state of SonarUser

NameTypeDescriptionRequired
errorstring

Error is an error message if something went wrong.

false
valuestring

Value is a status of the user.

false