Skip to content

Commit

Permalink
[Misc] Values.yaml schema update(#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprasad-sap authored Sep 30, 2024
1 parent e9916b9 commit c5e4fc4
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 20 deletions.
96 changes: 96 additions & 0 deletions files/chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,21 @@
],
"type": "object"
},
"DeletionRules": {
"additionalProperties": false,
"properties": {
"expression": {
"type": "string"
},
"metrics": {
"items": {
"$ref": "#/$defs/MetricRule"
},
"type": "array"
}
},
"type": "object"
},
"DeploymentDetails": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -483,6 +498,9 @@
"livenessProbe": {
"$ref": "#/$defs/Probe"
},
"monitoring": {
"$ref": "#/$defs/WorkloadMonitoring"
},
"nodeName": {
"type": "string"
},
Expand Down Expand Up @@ -960,6 +978,18 @@
],
"type": "object"
},
"ImageVolumeSource": {
"additionalProperties": false,
"properties": {
"pullPolicy": {
"type": "string"
},
"reference": {
"type": "string"
}
},
"type": "object"
},
"IntOrString": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -1199,6 +1229,51 @@
},
"type": "object"
},
"MetricRule": {
"additionalProperties": false,
"properties": {
"calculationPeriod": {
"type": "string"
},
"name": {
"type": "string"
},
"thresholdValue": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"type",
"calculationPeriod",
"thresholdValue"
],
"type": "object"
},
"MonitoringConfig": {
"additionalProperties": false,
"properties": {
"interval": {
"type": "string"
},
"path": {
"type": "string"
},
"port": {
"type": "string"
},
"scrapeTimeout": {
"type": "string"
}
},
"required": [
"port"
],
"type": "object"
},
"NFSVolumeSource": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -1594,6 +1669,9 @@
},
"type": "array"
},
"supplementalGroupsPolicy": {
"type": "string"
},
"sysctls": {
"items": {
"$ref": "#/$defs/Sysctl"
Expand Down Expand Up @@ -1798,6 +1876,9 @@
"properties": {
"name": {
"type": "string"
},
"request": {
"type": "string"
}
},
"required": [
Expand Down Expand Up @@ -2354,6 +2435,9 @@
"hostPath": {
"$ref": "#/$defs/HostPathVolumeSource"
},
"image": {
"$ref": "#/$defs/ImageVolumeSource"
},
"iscsi": {
"$ref": "#/$defs/ISCSIVolumeSource"
},
Expand Down Expand Up @@ -2571,6 +2655,18 @@
],
"type": "object"
},
"WorkloadMonitoring": {
"additionalProperties": false,
"properties": {
"deletionRules": {
"$ref": "#/$defs/DeletionRules"
},
"scrapeConfig": {
"$ref": "#/$defs/MonitoringConfig"
}
},
"type": "object"
},
"app": {
"additionalProperties": false,
"properties": {
Expand Down
43 changes: 23 additions & 20 deletions hack/go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
module github.tools.sap/erp4sme/cap-operator-tools/hack

go 1.22.5
go 1.23.1

require github.com/SAP/sap-btp-service-operator v0.6.5
require github.com/SAP/sap-btp-service-operator v0.6.8

require (
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/klauspost/compress v1.17.10 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
)

require (
Expand Down Expand Up @@ -40,33 +43,33 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.19.1 // indirect
github.com/prometheus/client_golang v1.20.4 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/common v0.59.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/sap/cap-operator v0.6.0
github.com/sap/cap-operator v0.10.0
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/time v0.6.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.30.2 // indirect
k8s.io/apiextensions-apiserver v0.30.2 // indirect
k8s.io/apimachinery v0.30.2 // indirect
k8s.io/client-go v0.30.2 // indirect
k8s.io/component-base v0.30.2 // indirect
k8s.io/api v0.31.1 // indirect
k8s.io/apiextensions-apiserver v0.31.1 // indirect
k8s.io/apimachinery v0.31.1 // indirect
k8s.io/client-go v0.31.1 // indirect
k8s.io/component-base v0.31.1 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20240709000822-3c01b740850f // indirect
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
sigs.k8s.io/controller-runtime v0.18.4 // indirect
k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect
k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect
sigs.k8s.io/controller-runtime v0.19.0 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
Expand Down
Loading

0 comments on commit c5e4fc4

Please sign in to comment.