Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultCertMinFresh is the default min-fresh value - 1 day DefaultCertMinFresh = time.Hour * 24 // DefaultCertValidFor is the default duration a cert can be valid for - 2 years DefaultCertValidFor = time.Hour * 24 * 730 // OLMCAHashAnnotationKey is the label key used to store the hash of the CA cert OLMCAHashAnnotationKey = "olmcahash" // Organization is the organization name used in the generation of x509 certs Organization = "Red Hat, Inc." )
View Source
const ( AdminSuffix = "admin" EditSuffix = "edit" ViewSuffix = "view" )
View Source
const (
FallbackWakeupInterval = 30 * time.Second
)
Variables ¶
View Source
var ( ErrRequirementsNotMet = errors.New("requirements were not met") ErrCRDOwnerConflict = errors.New("conflicting CRD owner in namespace") ErrAPIServiceOwnerConflict = errors.New("unable to adopt APIService") )
View Source
var ( AdminVerbs = []string{"*"} EditVerbs = []string{"create", "update", "patch", "delete"} ViewVerbs = []string{"get", "list", "watch"} Suffices = []string{AdminSuffix, EditSuffix, ViewSuffix} VerbsForSuffix = map[string][]string{ AdminSuffix: AdminVerbs, EditSuffix: EditVerbs, ViewSuffix: ViewVerbs, } )
Functions ¶
func APIServiceNameToServiceName ¶
APIServiceNameToServiceName returns the result of replacing all periods in the given APIService name with hyphens
Types ¶
type Operator ¶
type Operator struct { *queueinformer.Operator // contains filtered or unexported fields }
func NewOperator ¶
func NewOperator(logger *logrus.Logger, crClient versioned.Interface, opClient operatorclient.ClientInterface, strategyResolver install.StrategyResolverInterface, wakeupInterval time.Duration, namespaces []string) (*Operator, error)
func (*Operator) GetCSVSetGenerator ¶
func (a *Operator) GetCSVSetGenerator() csvutility.SetGenerator
func (*Operator) GetReplaceFinder ¶
func (a *Operator) GetReplaceFinder() csvutility.ReplaceFinder
Click to show internal directories.
Click to hide internal directories.