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

Discord integration #5671

Merged
merged 17 commits into from
Jul 6, 2023
Merged

Conversation

Azanul
Copy link
Contributor

@Azanul Azanul commented Jun 13, 2023

Description

Prometheus Alertmanager brings the functionality of pushing notifications to Discord using webhooks.
Fixes #5251

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

CRD extension for notifications on Discord

Signed-off-by: Azanul <azanulhaque@gmail.com>
Signed-off-by: Azanul <azanulhaque@gmail.com>
@Azanul Azanul requested a review from a team as a code owner June 13, 2023 17:24
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've only looked at the API additions for now.

// The secret needs to be in the same namespace as the AlertmanagerConfig
// object and accessible by the Prometheus Operator.
// +optional
APIURL *v1.SecretKeySelector `json:"apiURL,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a required field? IIUC there's no global Discord URL parameter and Alertmanager will fail to load a discord config with an empty URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange, I can't seem to find discord configs in the docs, although I can see the support by reading Alertmanager's codebase.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prometheus/alertmanager#3360

It seems like it was supposed to be released but hasn't been yet.

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Contributor

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two comments, but overall looks good! Would you mind adding some unit tests to amcfg_test.go

pkg/alertmanager/amcfg.go Outdated Show resolved Hide resolved
pkg/alertmanager/amcfg.go Outdated Show resolved Hide resolved
Azanul and others added 2 commits June 16, 2023 20:56
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a test and addressing Simon's comment and it should be good!

Thanks for the contribution :)

Signed-off-by: Azanul <azanulhaque@gmail.com>
Signed-off-by: Azanul <azanulhaque@gmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Azanul and others added 2 commits June 20, 2023 18:26
docs improvement

Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Contributor

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just have to fix the ci, part of it is just running make format

@Azanul
Copy link
Contributor Author

Azanul commented Jul 1, 2023

lgtm, just have to fix the ci, part of it is just running make format

make format isn't changing anything.
Screenshot 2023-07-01 at 10 50 16 AM

@JoaoBraveCoding
Copy link
Contributor

Apologies @Azanul maybe make generate format

@Azanul
Copy link
Contributor Author

Azanul commented Jul 3, 2023

Apologies @Azanul maybe make generate format

No file change, here's the log

$ make generate format
Installing tools from scripts/tools.go
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/ahmetb/gen-crd-api-reference-docs
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/brancz/gojsontoyaml
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/bwplotka/mdox
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/golangci/golangci-lint/cmd/golangci-lint
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/google/go-jsonnet/cmd/jsonnet
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/google/go-jsonnet/cmd/jsonnetfmt
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/yeya24/promlinter/cmd/promlinter
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/applyconfiguration-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/client-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/informer-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/lister-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' sigs.k8s.io/controller-tools/cmd/controller-gen
Downloading shellcheck
shellcheck-stable/shellcheck
cd ./pkg/apis/monitoring/v1 && /workspaces/prometheus-operator/tmp/bin/controller-gen object:headerFile=/workspaces/prometheus-operator/.header \
        paths=.
cd ./pkg/apis/monitoring/v1alpha1 && /workspaces/prometheus-operator/tmp/bin/controller-gen object:headerFile=/workspaces/prometheus-operator/.header \
        paths=.
cd ./pkg/apis/monitoring/v1beta1 && /workspaces/prometheus-operator/tmp/bin/controller-gen object:headerFile=/workspaces/prometheus-operator/.header \
        paths=.
rm -rf pkg/client/{versioned,informers,listers,applyconfiguration}
>> generating pkg/client/applyconfiguration...
/workspaces/prometheus-operator/tmp/bin/applyconfiguration-gen \
        --go-header-file /workspaces/prometheus-operator/.header --v=1 --logtostderr \
        --input-dirs      "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1beta1" \
        --output-package  "github.com/prometheus-operator/prometheus-operator/pkg/client/applyconfiguration" \
        --output-base    "."
mv github.com/prometheus-operator/prometheus-operator/pkg/client/applyconfiguration pkg/client
>> generating pkg/client/versioned...
/workspaces/prometheus-operator/tmp/bin/client-gen \
        --go-header-file /workspaces/prometheus-operator/.header --v=1 --logtostderr \
        --input-base                  "" \
        --apply-configuration-package "github.com/prometheus-operator/prometheus-operator/pkg/client/applyconfiguration" \
        --clientset-name              "versioned" \
        --input                       "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1beta1" \
        --output-package              "github.com/prometheus-operator/prometheus-operator/pkg/client" \
        --output-base                 "."
>> generating pkg/client/listers...
/workspaces/prometheus-operator/tmp/bin/lister-gen \
        --go-header-file /workspaces/prometheus-operator/.header --v=1 --logtostderr \
        --input-dirs     "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1beta1" \
        --output-package "github.com/prometheus-operator/prometheus-operator/pkg/client/listers" \
        --output-base    "."
>> generating pkg/client/informers...
/workspaces/prometheus-operator/tmp/bin/informer-gen \
        --go-header-file /workspaces/prometheus-operator/.header --v=1 --logtostderr \
        --versioned-clientset-package "github.com/prometheus-operator/prometheus-operator/pkg/client/versioned" \
        --listers-package "github.com/prometheus-operator/prometheus-operator/pkg/client/listers" \
        --input-dirs      "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1,github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1beta1" \
        --output-package  "github.com/prometheus-operator/prometheus-operator/pkg/client/informers" \
        --output-base    "."
mv github.com/prometheus-operator/prometheus-operator/pkg/client/{versioned,informers,listers} pkg/client
rm -r github.com
cd pkg/apis/monitoring && /workspaces/prometheus-operator/tmp/bin/controller-gen crd:crdVersions=v1 paths=./v1/. paths=./v1alpha1/. output:crd:dir=/workspaces/prometheus-operator/example/prometheus-operator-crd/
find example/prometheus-operator-crd/ -name '*.yaml' -print0 | xargs -0 -I{} sh -c '/workspaces/prometheus-operator/tmp/bin/gojsontoyaml -yamltojson < "$1" | jq > "/workspaces/prometheus-operator/jsonnet/prometheus-operator/$(basename $1 | cut -d'_' -f2 | cut -d. -f1)-crd.json"' -- {}
cd pkg/apis/monitoring && /workspaces/prometheus-operator/tmp/bin/controller-gen crd:crdVersions=v1 paths=./... output:crd:dir=/workspaces/prometheus-operator/example/prometheus-operator-crd-full
echo "// Code generated using 'make generate-crds'. DO NOT EDIT." > /workspaces/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet
echo "{spec+: {versions+: $(/workspaces/prometheus-operator/tmp/bin/gojsontoyaml -yamltojson < example/prometheus-operator-crd-full/monitoring.coreos.com_alertmanagerconfigs.yaml | jq '.spec.versions | map(select(.name == "v1beta1"))')}}" | /workspaces/prometheus-operator/tmp/bin/jsonnetfmt - >> /workspaces/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet
cd scripts/generate; /workspaces/prometheus-operator/tmp/bin/jb install;
scripts/generate/build-rbac-prometheus-operator.sh
scripts/generate-bundle.sh
mkdir -p example/alerts
/workspaces/prometheus-operator/tmp/bin/jsonnet jsonnet/mixin/alerts.jsonnet | /workspaces/prometheus-operator/tmp/bin/gojsontoyaml > example/mixin/alerts.yaml
scripts/generate/build-thanos-example.sh
scripts/generate/build-admission-webhook-example.sh
scripts/generate/build-conversion-webhook-patch-for-alermanagerconfig-crd.sh
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="-s -X github.com/prometheus/common/version.Revision=1ae80eaf0 -X github.com/prometheus/common/version.BuildUser=vscode -X github.com/prometheus/common/version.BuildDate=20230703-15:44:35 -X github.com/prometheus/common/version.Branch=discord-integration -X github.com/prometheus/common/version.Version=0.65.2" -o operator cmd/operator/main.go
/workspaces/prometheus-operator/tmp/bin/mdox fmt Documentation/operator.md
gofmt -s -w .
find . -name *.jsonnet -or -name *.libsonnet -not -path "*/vendor/*" -print0 | xargs -0 /workspaces/prometheus-operator/tmp/bin/jsonnetfmt -i
./scripts/check_license.sh
Installing tools from scripts/tools.go
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/ahmetb/gen-crd-api-reference-docs
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/brancz/gojsontoyaml
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/bwplotka/mdox
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/golangci/golangci-lint/cmd/golangci-lint
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/google/go-jsonnet/cmd/jsonnet
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/google/go-jsonnet/cmd/jsonnetfmt
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
go install '-mod=readonly' '-modfile=scripts/go.mod' github.com/yeya24/promlinter/cmd/promlinter
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/applyconfiguration-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/client-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/informer-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' k8s.io/code-generator/cmd/lister-gen
go install '-mod=readonly' '-modfile=scripts/go.mod' sigs.k8s.io/controller-tools/cmd/controller-gen
Downloading shellcheck
shellcheck-stable/shellcheck
/workspaces/prometheus-operator/tmp/bin/shellcheck ./scripts/check_license.sh ./scripts/generate/build-admission-webhook-example.sh ./scripts/generate/build-conversion-webhook-patch-for-alermanagerconfig-crd.sh ./scripts/generate/build-non-rbac-prometheus-operator.sh ./scripts/generate/build-rbac-prometheus-operator.sh ./scripts/generate/build-thanos-example.sh ./scripts/generate-bundle.sh ./scripts/push-docker-image.sh ./scripts/run-external.sh
>> formatting and local/remote link check
/workspaces/prometheus-operator/tmp/bin/mdox fmt --soft-wraps -l --links.localize.address-regex="https://prometheus-operator.dev/.*" --links.validate.config-file=.mdox.validate.yaml Documentation/additional-scrape-config.md Documentation/custom-configuration.md Documentation/design.md Documentation/designs/prometheus-agent.md Documentation/exposing-metrics.md Documentation/high-availability.md Documentation/network-policies.md Documentation/proposals/202212-scrape-config.md Documentation/rbac-crd.md Documentation/rbac.md Documentation/thanos.md Documentation/troubleshooting.md Documentation/user-guides/alerting.md Documentation/user-guides/basic-auth.md Documentation/user-guides/exposing-prometheus-and-alertmanager.md Documentation/user-guides/getting-started.md Documentation/user-guides/linting.md Documentation/user-guides/monitoring-kubernetes-ingress.md Documentation/user-guides/prometheus-agent.md Documentation/user-guides/running-exporters.md Documentation/user-guides/shards-and-replicas.md Documentation/user-guides/storage.md Documentation/user-guides/strategic-merge-patch.md Documentation/user-guides/webhook.md CHANGELOG.md code-of-conduct.md CONTRIBUTING.md governance.md MAINTAINERS.md README.md RELEASE.md SECURITY.md
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/exposing-prometheus-and-aler
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣯ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣷ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣾ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣽ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣻ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⢿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⡿ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres
⣟ Formatting: /workspaces/prometheus-operator/Documentation/user-guides/monitoring-kubernetes-ingres

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
There's no such field in the Alertmanager configuration.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
And add validation on v1beta1 version.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Azanul for the contribution and @simonpasquier for the final push :)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier enabled auto-merge (squash) July 6, 2023 10:05
@simonpasquier simonpasquier merged commit 123800a into prometheus-operator:main Jul 6, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Discord Intergration with AlertmanagerConfig CRD
4 participants