Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
df0a623
Adds MSSQL collector based on Postgres collector
crdant Jan 30, 2023
a38f223
Adds tests for MSSQL based on the tests for Postgres
crdant Dec 20, 2022
65fba58
Adds analyzer
crdant Dec 21, 2022
3cb41f3
Adds MS SQL Server example
crdant Dec 21, 2022
ae93c9a
Assures MS SQL tests pass
crdant Dec 21, 2022
0183690
Aligns naming and adds to API
crdant Jan 3, 2023
e5be946
Corrects names that weren't updated
crdant Jan 3, 2023
ffd1d11
Updates text on sample
crdant Jan 4, 2023
70ded47
Corrects typo
crdant Jan 4, 2023
0d33634
Makes troubleshoot aware of mssql
crdant Jan 4, 2023
715f28f
Uses Hashicorp version library for SQL Server versions
crdant Jan 30, 2023
dbc7e5d
Resyncs generated file
crdant Jan 30, 2023
8fd8a54
Cleaning up the workspace.
Jan 31, 2023
fcdb895
Updates schemas per PR feedback
crdant Jan 31, 2023
699c314
Merge branch 'feature-mssql' of github.com:crdant/troubleshoot into f…
crdant Jan 31, 2023
50771e1
Merge branch 'main' into feature-mssql
chasehainey Jan 31, 2023
91030bf
Unit Tests.
Mar 17, 2023
f51f4b2
fix: address runtime error of nil pointer when concatenating prefligh…
Feb 1, 2023
dd04684
chore: chore: update binaries used to build manifests and k8s (#997)
camilamacedo86 Feb 1, 2023
11cf3e9
Deduplication for In-Cluster Collectors (#972)
diamonwiggins Feb 1, 2023
4680cd8
refactor: keep support bundle concat logic to be consistent with Pref…
Feb 3, 2023
6a0807b
chore: Refactor in cluster analysers (#999)
Mar 20, 2023
7c3b5d0
feat: Record summary of execution times of support bundle operations …
Mar 20, 2023
c8f883c
chore(deps): bump sigs.k8s.io/controller-runtime from 0.14.2 to 0.14.…
dependabot[bot] Feb 7, 2023
8087953
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.12 to 3.23.…
dependabot[bot] Feb 7, 2023
5946e2f
chore: Don't hardcode /bin/bash (#1011)
twz123 Feb 10, 2023
4a05b23
chore: Don't print which error in Makefile (#1012)
twz123 Feb 10, 2023
ed70320
chore: remove unused code (#1013)
twz123 Feb 10, 2023
83c61ba
remove PR label enforcement workflow (#1015)
e3b0c442 Feb 13, 2023
8b3c73c
chore(deps): bump go.opentelemetry.io/otel/sdk from 1.11.2 to 1.13.0 …
dependabot[bot] Feb 14, 2023
ac53a21
chore(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 (#1017)
dependabot[bot] Feb 14, 2023
b135f20
chore(deps): bump github.com/jackc/pgx/v5 from 5.2.0 to 5.3.0 (#1018)
Mar 20, 2023
7e3054e
chore(deps): bump github.com/hashicorp/go-getter from 1.6.2 to 1.7.0 …
Mar 20, 2023
aea2fd6
feat(support-bundle): print progress in debug non-interactive mode (#…
twz123 Feb 15, 2023
41e9601
chore(deps): bump github.com/containerd/containerd from 1.6.12 to 1.6…
dependabot[bot] Feb 17, 2023
86dd407
chore(deps): bump golang.org/x/net from 0.6.0 to 0.7.0 (#1025)
dependabot[bot] Feb 20, 2023
33f3060
chore(deps): bump github.com/containers/image/v5 from 5.24.0 to 5.24.…
dependabot[bot] Feb 21, 2023
70e2b10
Update README to add link for the docs (#1022)
camilamacedo86 Feb 22, 2023
a32407a
feat: use klog as the default logging library (#1008)
banjoh Feb 24, 2023
aa4620a
chore(deps): bump github.com/shirou/gopsutil/v3 from 3.23.1 to 3.23.2…
dependabot[bot] Mar 8, 2023
65e163d
chore(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 (#1040)
dependabot[bot] Mar 8, 2023
6a70342
chore(deps): bump github.com/containers/image/v5 from 5.24.1 to 5.24.…
dependabot[bot] Mar 8, 2023
c3c01f7
feat: support for rhel 9 variants (rhel, centos, ol, rocky) (#1045)
emosbaugh Mar 8, 2023
316844c
fix: Use namespace from the collector spec for Ceph (#1042)
diamonwiggins Mar 8, 2023
627b33b
chore(deps): bump go.opentelemetry.io/otel/sdk from 1.13.0 to 1.14.0 …
dependabot[bot] Mar 9, 2023
bf6afb8
Collector/Analyzer - Subnet Available (#1004)
Mar 10, 2023
156f502
chore(deps): bump k8s.io/apimachinery from 0.26.1 to 0.26.2 (#1050)
dependabot[bot] Mar 14, 2023
3c001b1
chore(deps): bump sigs.k8s.io/controller-runtime from 0.14.4 to 0.14.…
dependabot[bot] Mar 14, 2023
244c059
dont run tests on draft PRs (#966)
adamancini Mar 14, 2023
5d06e46
chore(deps): bump k8s.io/klog/v2 from 2.90.0 to 2.90.1 (#1052)
dependabot[bot] Mar 14, 2023
410aa81
chore(deps): bump k8s.io/cli-runtime from 0.26.1 to 0.26.2 (#1049)
dependabot[bot] Mar 14, 2023
944022a
chore(deps): bump k8s.io/apiextensions-apiserver from 0.26.1 to 0.26.…
dependabot[bot] Mar 15, 2023
a7b3060
Adds MSSQL collector based on Postgres collector
Mar 20, 2023
5225cd8
Merge branch 'main' into feature-mssql
chasehainey Mar 21, 2023
1026685
Missed a merge conflict.
Mar 22, 2023
bdf1bb4
More merge conflicts fixed.
Mar 22, 2023
e96bf06
Ran go mod tidy.
Mar 23, 2023
da886ae
Fixed the function name return.
Mar 23, 2023
f9d159f
Merge branch 'main' into feature-mssql
chasehainey Mar 23, 2023
0ecb6c3
Merge branch 'main' into feature-mssql
banjoh Mar 24, 2023
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
52 changes: 52 additions & 0 deletions config/crds/troubleshoot.sh_analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,58 @@ spec:
- namespace
- outcomes
type: object
mssql:
properties:
annotations:
additionalProperties:
type: string
type: object
checkName:
type: string
collectorName:
type: string
exclude:
type: BoolString
fileName:
type: string
outcomes:
items:
properties:
fail:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
pass:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
warn:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
type: object
type: array
strict:
type: BoolString
required:
- collectorName
- outcomes
type: object
mysql:
properties:
annotations:
Expand Down
36 changes: 36 additions & 0 deletions config/crds/troubleshoot.sh_collectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,42 @@ spec:
required:
- namespace
type: object
mssql:
properties:
collectorName:
type: string
exclude:
type: BoolString
parameters:
items:
type: string
type: array
tls:
properties:
cacert:
type: string
clientCert:
type: string
clientKey:
type: string
secret:
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
skipVerify:
type: boolean
type: object
uri:
type: string
required:
- uri
type: object
mysql:
properties:
collectorName:
Expand Down
88 changes: 88 additions & 0 deletions config/crds/troubleshoot.sh_preflights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,58 @@ spec:
- namespace
- outcomes
type: object
mssql:
properties:
annotations:
additionalProperties:
type: string
type: object
checkName:
type: string
collectorName:
type: string
exclude:
type: BoolString
fileName:
type: string
outcomes:
items:
properties:
fail:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
pass:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
warn:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
type: object
type: array
strict:
type: BoolString
required:
- collectorName
- outcomes
type: object
mysql:
properties:
annotations:
Expand Down Expand Up @@ -1751,6 +1803,42 @@ spec:
required:
- namespace
type: object
mssql:
properties:
collectorName:
type: string
exclude:
type: BoolString
parameters:
items:
type: string
type: array
tls:
properties:
cacert:
type: string
clientCert:
type: string
clientKey:
type: string
secret:
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
skipVerify:
type: boolean
type: object
uri:
type: string
required:
- uri
type: object
mysql:
properties:
collectorName:
Expand Down
88 changes: 88 additions & 0 deletions config/crds/troubleshoot.sh_supportbundles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,58 @@ spec:
- namespace
- outcomes
type: object
mssql:
properties:
annotations:
additionalProperties:
type: string
type: object
checkName:
type: string
collectorName:
type: string
exclude:
type: BoolString
fileName:
type: string
outcomes:
items:
properties:
fail:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
pass:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
warn:
properties:
message:
type: string
uri:
type: string
when:
type: string
type: object
type: object
type: array
strict:
type: BoolString
required:
- collectorName
- outcomes
type: object
mysql:
properties:
annotations:
Expand Down Expand Up @@ -1782,6 +1834,42 @@ spec:
required:
- namespace
type: object
mssql:
properties:
collectorName:
type: string
exclude:
type: BoolString
parameters:
items:
type: string
type: array
tls:
properties:
cacert:
type: string
clientCert:
type: string
clientKey:
type: string
secret:
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
skipVerify:
type: boolean
type: object
uri:
type: string
required:
- uri
type: object
mysql:
properties:
collectorName:
Expand Down
70 changes: 70 additions & 0 deletions examples/preflight/mssql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
apiVersion: troubleshoot.sh/v1beta2
kind: Preflight
metadata:
name: sample
spec:
collectors:
- mssql:
collectorName: mssql
uri: sqlserver://SA:nac3lle-ch@stise-bOMBay-wag@db.lab.shortrib.net:1433/master
analyzers:
- mssql:
checkName: Must be SQLServer 15.x or later
collectorName: mssql
outcomes:
- fail:
when: "connected == false"
message: Cannot connect to SQLServer
- fail:
when: "version < 15.x"
message: The SQLServer must be at least version 15
- pass:
message: The SQLServer connection checks out
- mssql:
checkName: Must be SQLServer 14 or earlier
collectorName: mssql
outcomes:
- fail:
when: "connected == false"
message: Cannot connect to SQLServer
- fail:
when: "version > 14.x"
message: The SQLServer must be at most version 14
- pass:
message: The SQLServer connection checks out
- mssql:
checkName: Must be SQLServer 15.0.2000.1565
collectorName: mssql
outcomes:
- fail:
when: "connected == false"
message: Cannot connect to SQLServer
- fail:
when: "version == 15.0.2000.1565"
message: The SQLServer must be version 15.0.2000.1565
- pass:
message: The SQLServer connection checks out
- mssql:
checkName: Must not be SQLServer 15.0.2000.1565
collectorName: mssql
outcomes:
- fail:
when: "connected == false"
message: Cannot connect to SQLServer
- fail:
when: "version != 15.0.2000.1565"
message: The SQLServer must not be version 15.0.2000.1565
- pass:
message: The SQLServer connection checks out
- mssql:
checkName: I don't want to connect to your SQL Server
collectorName: mssql
outcomes:
- fail:
when: "connected == true"
message: Can connect to your SQL Server
- fail:
when: "version != 15.0.2000.1565"
message: The SQLServer must be version 15.0.2000.1565
- pass:
message: The SQLServer connection checks out
Loading