fixed kubelet serving approver
This commit is contained in:
parent
312dcd577c
commit
23e2bd648b
1 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
"github.com/go-logr/logr"
|
||||
certificatesv1 "k8s.io/api/certificates/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
|
@ -56,8 +57,9 @@ func (r *CSRReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ct
|
|||
|
||||
var conditionv1 = certificatesv1.CertificateSigningRequestCondition{
|
||||
Type: certificatesv1.CertificateApproved,
|
||||
Status: corev1.ConditionTrue,
|
||||
Reason: "AutoApproved",
|
||||
Message: "Auto approving kubelet client certificate in PVE Cluster",
|
||||
Message: "Auto approving kubelet serving certificate in PVE Cluster",
|
||||
}
|
||||
|
||||
func (r *CSRReconciler) approve(ctx context.Context, log logr.Logger, request *certificatesv1.CertificateSigningRequest) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue