Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
- type Reconciler
- func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error
- func (r *Reconciler) GetConfigMap(ctx context.Context, notary *goharborv1.NotarySigner) (*corev1.ConfigMap, error)
- func (r *Reconciler) GetDeployment(ctx context.Context, notary *goharborv1.NotarySigner) (*appsv1.Deployment, error)
- func (r *Reconciler) GetService(ctx context.Context, notary *goharborv1.NotarySigner) (*corev1.Service, error)
- func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource
- func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (r *Reconciler) Template(ctx context.Context) (*template.ConfigTemplate, error)
Constants ¶
View Source
const ( VolumeName = "config" ConfigPath = "/etc/notary-signer" HTTPSVolumeName = "certificates" HTTPSCertificatePath = ConfigPath + "/certificates" )
View Source
const ( DefaultRequeueWait = 2 * time.Second DefaultConfigTemplateFileName = "notarysigner-config.json.tmpl" )
View Source
const ConfigName = "signer.json"
View Source
const (
PublicPort = 80
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
Types ¶
type Reconciler ¶
type Reconciler struct {
*commonCtrl.Controller
}
Reconciler reconciles a NotarySigner object.
func (*Reconciler) AddResources ¶
func (*Reconciler) GetConfigMap ¶
func (r *Reconciler) GetConfigMap(ctx context.Context, notary *goharborv1.NotarySigner) (*corev1.ConfigMap, error)
func (*Reconciler) GetDeployment ¶
func (r *Reconciler) GetDeployment(ctx context.Context, notary *goharborv1.NotarySigner) (*appsv1.Deployment, error)
func (*Reconciler) GetService ¶
func (r *Reconciler) GetService(ctx context.Context, notary *goharborv1.NotarySigner) (*corev1.Service, error)
func (*Reconciler) SetupWithManager ¶
func (*Reconciler) Template ¶
func (r *Reconciler) Template(ctx context.Context) (*template.ConfigTemplate, error)
Click to show internal directories.
Click to hide internal directories.