forked from prometheus-operator/prometheus-operator
/
compatibility.go
46 lines (35 loc) · 1.73 KB
/
compatibility.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// 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(`<br>
<div class="alert alert-info" role="alert">
<i class="fa fa-exclamation-triangle"></i><b> Note:</b> Starting with v0.12.0, Prometheus Operator requires use of Kubernetes v1.7.x and up.
</div>
# 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".
Due to the use of CustomResourceDefinitions Kubernetes >= v1.7.0 is required.
## Prometheus
The versions of Prometheus compatible to be run with the Prometheus Operator are:
`)
for _, v := range prometheus.CompatibilityMatrix {
fmt.Printf("* %s\n", v)
}
}