mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
39 lines
1.5 KiB
Go
39 lines
1.5 KiB
Go
// Copyright 2016 The prometheus-operator Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/coreos/prometheus-operator/pkg/prometheus"
|
|
)
|
|
|
|
func printCompatMatrixDocs() {
|
|
fmt.Println(`# Compatibility
|
|
|
|
The Prometheus Operator supports a number of Kubernetes and Prometheus releases.
|
|
|
|
## Kubernetes
|
|
|
|
The Prometheus Operator uses client-go to communicate with Kubernetes clusters. The supported Kubernetes cluster version is determined by client-go. The compatibility matrix for client-go and Kubernetes clusters can be found [here](https://github.com/kubernetes/client-go#compatibility-matrix). All additional compatibility is only best effort, or happens to still/already be supported. The currently used client-go version is "v4.0.0-beta.0".
|
|
|
|
## Prometheus
|
|
|
|
The versions of Prometheus compatible to be run with the Prometheus Operator are:
|
|
`)
|
|
for _, v := range prometheus.CompatibilityMatrix {
|
|
fmt.Printf("* %s\n", v)
|
|
}
|
|
}
|