...

Source file src/sigs.k8s.io/controller-runtime/pkg/healthz/doc.go

Documentation: sigs.k8s.io/controller-runtime/pkg/healthz

     1  /*
     2  Copyright 2014 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package healthz contains helpers from supporting liveness and readiness endpoints.
    18  // (often referred to as healthz and readyz, respectively).
    19  //
    20  // This package draws heavily from the apiserver's healthz package
    21  // ( https://github.com/kubernetes/apiserver/tree/master/pkg/server/healthz )
    22  // but has some changes to bring it in line with controller-runtime's style.
    23  //
    24  // The main entrypoint is the Handler -- this serves both aggregated health status
    25  // and individual health check endpoints.
    26  package healthz
    27  
    28  import (
    29  	logf "sigs.k8s.io/controller-runtime/pkg/internal/log"
    30  )
    31  
    32  var log = logf.RuntimeLog.WithName("healthz")
    33  

View as plain text