apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: dev-tools bases: # Nexus - https://github.com/redhat-cop/gitops-catalog/nexus2/base # Sonarqube - sonarqube-admin-secret.yaml - https://github.com/redhat-cop/gitops-catalog/sonarqube8/base - configure-sonarqube-job.yaml resources: - namespace.yaml patches: - patch: |- - op: replace path: /spec/template/spec/containers/0/image value: sonarqube:lts-community target: kind: Deployment name: sonarqube - patch: |- - op: add path: /spec/template/spec/containers/0/env value: - name: SONAR_JDBC_PASSWORD value: kHPdpIYtdtGXeStv - name: SONAR_JDBC_URL value: 'jdbc:postgresql://postgresql-sonarqube/sonar' - name: SONAR_JDBC_USERNAME value: sonar - name: SONAR_TELEMETRY_ENABLE value: 'false' - name: SONAR_PLUGINS_RISK_CONSENT value: ACCEPTED target: kind: Deployment name: sonarqube - patch: |- - op: add path: /spec/tls value: termination: edge target: kind: Route