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"
|
"github.com/go-logr/logr"
|
||||||
certificatesv1 "k8s.io/api/certificates/v1"
|
certificatesv1 "k8s.io/api/certificates/v1"
|
||||||
|
corev1 "k8s.io/api/core/v1"
|
||||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"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{
|
var conditionv1 = certificatesv1.CertificateSigningRequestCondition{
|
||||||
Type: certificatesv1.CertificateApproved,
|
Type: certificatesv1.CertificateApproved,
|
||||||
|
Status: corev1.ConditionTrue,
|
||||||
Reason: "AutoApproved",
|
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 {
|
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