Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.0 #331

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

V4.0 #331

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3f3c922
Updating the overrideurl for saml
saitejaopsmx May 27, 2022
2861ab9
Correcting the clouddriver-rw url in gate secret
saitejaopsmx May 30, 2022
f6593e1
Added alerts
sharief212 May 30, 2022
8bab645
Enabled the pvc for openldap for adding users and groups in pipeline
saitejaopsmx May 30, 2022
2ce2ce3
Enabled the flags for saml and changed all the protocol to http
saitejaopsmx May 30, 2022
56c96f8
Added the nightly helmoverridevalues
saitejaopsmx May 30, 2022
8e0ff38
Added the nightly helmoverridevalues
saitejaopsmx May 30, 2022
94b4e96
Added the flag for commongate
saitejaopsmx May 31, 2022
7178d86
Reverted the Alerts commit
saitejaopsmx May 31, 2022
3ce60d0
Merge branch 'oes3.12' of https://github.com/saitejaopsmx/enterprise-…
saitejaopsmx May 31, 2022
61692e8
Reverting the ALert definition changes
saitejaopsmx May 31, 2022
fc1bab8
Merge pull request #311 from saitejaopsmx/oes3.12
ksrinimba May 31, 2022
7de1b4b
Removed the global section in values file
saitejaopsmx May 31, 2022
d821137
Using the existing values in helm nightly so removed the unnecessary …
saitejaopsmx May 31, 2022
aa08005
Corrected the sapor and autopilot image names
saitejaopsmx May 31, 2022
0429217
Updated help text and standard error code for v3.12.5
saitejaopsmx Jun 1, 2022
1e79fe4
modified alert definitions
sharief212 Jun 1, 2022
31b9137
Merge pull request #312 from sharief212/oes3.12
ksrinimba Jun 2, 2022
f4c1daf
Merge branch 'OpsMx:oes3.12' into oes3.12
saitejaopsmx Jun 3, 2022
91144bf
Updated the help text and standard as per v3.12.5
saitejaopsmx Jun 6, 2022
3783666
Modified the autoconfiguration for gitlab as a source Provider
saitejaopsmx Jun 6, 2022
e3ab1bd
Added the config changes in audit service and platform
saitejaopsmx Jun 7, 2022
e1e2441
Updated the correct path
saitejaopsmx Jun 7, 2022
f34b77d
ISD 4.0 Release
saitejaopsmx Jun 7, 2022
6cfb7ab
Updated the branch for auto repo creation
saitejaopsmx Jun 7, 2022
500ddc6
Updated the correct path
saitejaopsmx Jun 7, 2022
365e877
Removed admin user config from the system for v3.12.5
saitejaopsmx Jun 7, 2022
8968407
Merge pull request #313 from saitejaopsmx/oes3.12
lakkireddys-opsmx Jun 8, 2022
2deb490
ISD v3.12.5 Release
saitejaopsmx Jun 8, 2022
f7cbbdc
Merge pull request #315 from saitejaopsmx/oes3.12
ksrinimba Jun 8, 2022
08b7a9c
Merge branch 'v4.0' into v4.0
saitejaopsmx Jun 9, 2022
d1c7e8d
Merge pull request #1 from OpsMx/v4.0
saitejaopsmx Jun 9, 2022
e03c4d0
Merge pull request #316 from saitejaopsmx/v4.0
lakkireddys-opsmx Jun 9, 2022
b2db3c4
Updated the branch name for auto repo creation
saitejaopsmx Jun 10, 2022
1b4e3c5
Updated the help text json
saitejaopsmx Jun 15, 2022
f724ca8
Merge pull request #319 from saitejaopsmx/v4.0
lakkireddys-opsmx Jun 15, 2022
01c38eb
OP-15942:v4.0:enterprise repo:Added and modified migration scripts fo…
SheetalAtre Jun 15, 2022
e11ed3a
Merge pull request #321 from OpsMx/bugfix/OP-15942-verification-delet…
arunkumaropsmx Jun 15, 2022
9f07f76
Updated the RefId in script
arunkumaropsmx Jun 15, 2022
ecf5804
Merge pull request #323 from OpsMx/OP-15796-v4.0
ramyaravi-opsmx Jun 15, 2022
122aac3
Updated the changes in visibility and standad errors code
saitejaopsmx Jun 16, 2022
fc3aa3d
Merge pull request #326 from saitejaopsmx/v4.0
ksrinimba Jun 16, 2022
6b3df76
OP-16310- migration script v3.12.5 to v3.12.6 (#330)
ramyaravi-opsmx Jun 23, 2022
f88d108
Integrated Grafana helm chart
sharief212 Jun 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions charts/oes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: oes
version: 3.12.6
appVersion: 3.12.4
description: "ISD-3.12.4 - Improvements in loading Application dashboard in ISD UI"
version: 3.12.7
appVersion: 3.12.5
description: "ISD-3.12.5 - Enhanced the connection authentication messages fotr Integrators in ISD UI"
icon: https://raw.githubusercontent.com/OpsMx/enterprise-spinnaker/master/img/opsmx.png
maintainers:
- email: [email protected]
Expand Down Expand Up @@ -37,6 +37,9 @@ dependencies:
- name: prometheus
version: 11.16.2
condition: global.enableCentralMonitoring
- name: grafana
version: 6.31.0
condition: global.enableCentralMonitoring
- name: gitea
version: 5.0.1
condition: global.gitea.enabled
23 changes: 23 additions & 0 deletions charts/oes/charts/grafana/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.vscode
.project
.idea/
*.tmproj
OWNERS
22 changes: 22 additions & 0 deletions charts/oes/charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v2
appVersion: 9.0.1
description: The leading tool for querying and visualizing time series and metrics.
home: https://grafana.net
icon: https://raw.githubusercontent.com/grafana/grafana/master/public/img/logo_transparent_400x.png
kubeVersion: ^1.8.0-0
maintainers:
- email: [email protected]
name: zanhsieh
- email: [email protected]
name: rtluckie
- email: [email protected]
name: maorfr
- email: [email protected]
name: Xtigyro
- email: [email protected]
name: torstenwalter
name: grafana
sources:
- https://github.com/grafana/grafana
type: application
version: 6.31.0
570 changes: 570 additions & 0 deletions charts/oes/charts/grafana/README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions charts/oes/charts/grafana/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Leave this file empty to ensure that CI runs builds against the default configuration in values.yaml.
16 changes: 16 additions & 0 deletions charts/oes/charts/grafana/ci/with-affinity-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: grafana-test
app.kubernetes.io/name: grafana
topologyKey: failure-domain.beta.kubernetes.io/zone
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/instance: grafana-test
app.kubernetes.io/name: grafana
topologyKey: kubernetes.io/hostname
53 changes: 53 additions & 0 deletions charts/oes/charts/grafana/ci/with-dashboard-json-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
dashboards:
my-provider:
my-awesome-dashboard:
# An empty but valid dashboard
json: |
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.3.5"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [],
"schemaVersion": 19,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": ["5s"]
},
"timezone": "",
"title": "Dummy Dashboard",
"uid": "IdcYQooWk",
"version": 1
}
datasource: Prometheus
19 changes: 19 additions & 0 deletions charts/oes/charts/grafana/ci/with-dashboard-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
dashboards:
my-provider:
my-awesome-dashboard:
gnetId: 10000
revision: 1
datasource: Prometheus
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'my-provider'
orgId: 1
folder: ''
type: file
updateIntervalSeconds: 10
disableDeletion: true
editable: true
options:
path: /var/lib/grafana/dashboards/my-provider
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extraConfigmapMounts:
- name: '{{ template "grafana.fullname" . }}'
configMap: '{{ template "grafana.fullname" . }}'
mountPath: /var/lib/grafana/dashboards/test-dashboard.json
# This is not a realistic test, but for this we only care about extraConfigmapMounts not being empty and pointing to an existing ConfigMap
subPath: grafana.ini
readOnly: true
19 changes: 19 additions & 0 deletions charts/oes/charts/grafana/ci/with-image-renderer-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
podLabels:
customLableA: Aaaaa
imageRenderer:
enabled: true
env:
RENDERING_ARGS: --disable-gpu,--window-size=1280x758
RENDERING_MODE: clustered
podLabels:
customLableB: Bbbbb
networkPolicy:
limitIngress: true
limitEgress: true
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 500m
memory: 50Mi
3 changes: 3 additions & 0 deletions charts/oes/charts/grafana/ci/with-persistence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
persistence:
type: pvc
enabled: true
1 change: 1 addition & 0 deletions charts/oes/charts/grafana/dashboards/custom-dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
54 changes: 54 additions & 0 deletions charts/oes/charts/grafana/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
1. Get your '{{ .Values.adminUser }}' user password by running:

kubectl get secret --namespace {{ template "grafana.namespace" . }} {{ template "grafana.fullname" . }} -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

2. The Grafana server can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster:

{{ template "grafana.fullname" . }}.{{ template "grafana.namespace" . }}.svc.cluster.local
{{ if .Values.ingress.enabled }}
If you bind grafana to 80, please update values in values.yaml and reinstall:
```
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0

command:
- "setcap"
- "'cap_net_bind_service=+ep'"
- "/usr/sbin/grafana-server &&"
- "sh"
- "/run.sh"
```
Details refer to https://grafana.com/docs/installation/configuration/#http-port.
Or grafana would always crash.

From outside the cluster, the server URL(s) are:
{{- range .Values.ingress.hosts }}
http://{{ . }}
{{- end }}
{{ else }}
Get the Grafana URL to visit by running these commands in the same shell:
{{ if contains "NodePort" .Values.service.type -}}
export NODE_PORT=$(kubectl get --namespace {{ template "grafana.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "grafana.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ template "grafana.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{ else if contains "LoadBalancer" .Values.service.type -}}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get svc --namespace {{ template "grafana.namespace" . }} -w {{ template "grafana.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ template "grafana.namespace" . }} {{ template "grafana.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
http://$SERVICE_IP:{{ .Values.service.port -}}
{{ else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ template "grafana.namespace" . }} -l "app.kubernetes.io/name={{ template "grafana.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace {{ template "grafana.namespace" . }} port-forward $POD_NAME 3000
{{- end }}
{{- end }}

3. Login with the password from step 1 and the username: {{ .Values.adminUser }}

{{- if not .Values.persistence.enabled }}
#################################################################################
###### WARNING: Persistence is disabled!!! You will lose your data when #####
###### the Grafana pod is terminated. #####
#################################################################################
{{- end }}
Loading