Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFeature(name string) *usingFeaturesHandler
- func CreateKustomizeManifestFrom(path string, fsys filesys.FileSystem) *kustomizeManifest
- func CreateRawManifestFrom(fsys fs.FS, path string) *rawManifest
- func CreateTemplateManifestFrom(fsys fs.FS, path string) *templateManifest
- func GenerateSelfSignedCertificateAsSecret(addr string, objectMeta metav1.ObjectMeta) (*corev1.Secret, error)
- func ReplaceChar(s string, oldChar, newChar string) string
- type Action
- type Feature
- func (f *Feature) Apply() (err error)
- func (f *Feature) ApplyManifest(path string) error
- func (f *Feature) AsOwnerReference() metav1.OwnerReference
- func (f *Feature) Cleanup() error
- func (f *Feature) CreateConfigMap(cfgMapName string, data map[string]string) error
- func (f *Feature) CreateSelfSignedCertificate(secretName string, certificateType infrav1.CertType, domain, namespace string) error
- type FeaturesHandler
- type FeaturesProvider
- type Manifest
- type OAuth
- type Spec
Constants ¶
const (
YamlSeparator = "(?m)^---[ \t]*$"
)
Variables ¶
var ( BaseDir = "templates" ServiceMeshDir = path.Join(BaseDir, "servicemesh") ServerlessDir = path.Join(BaseDir, "serverless") AuthDir = path.Join(ServiceMeshDir, "authorino") KServeDir = path.Join(ServiceMeshDir, "kserve") )
Functions ¶
func CreateFeature ¶
func CreateFeature(name string) *usingFeaturesHandler
func CreateKustomizeManifestFrom ¶ added in v2.9.0
func CreateKustomizeManifestFrom(path string, fsys filesys.FileSystem) *kustomizeManifest
func CreateRawManifestFrom ¶ added in v2.9.0
func CreateTemplateManifestFrom ¶ added in v2.9.0
func ReplaceChar ¶
Types ¶
type Action ¶
Action is a func type which can be used for different purposes while having access to Feature struct.
func CreateNamespaceIfNotExists ¶ added in v2.7.0
CreateNamespaceIfNotExists will create namespace with the given name if it does not exist yet, but will not own it.
func EnsureOperatorIsInstalled ¶ added in v2.9.0
func WaitForPodsToBeReady ¶
func WaitForResourceToBeCreated ¶
func WaitForResourceToBeCreated(namespace string, gvk schema.GroupVersionKind) Action
type Feature ¶
type Feature struct { Name string Spec *Spec Enabled bool Tracker *featurev1.FeatureTracker Client client.Client Log logr.Logger // contains filtered or unexported fields }
func (*Feature) ApplyManifest ¶ added in v2.8.0
func (*Feature) AsOwnerReference ¶ added in v2.7.0
func (f *Feature) AsOwnerReference() metav1.OwnerReference
func (*Feature) CreateConfigMap ¶
type FeaturesHandler ¶ added in v2.7.0
type FeaturesHandler struct { *v1.DSCInitializationSpec // contains filtered or unexported fields }
FeaturesHandler coordinates feature creations and removal from within controllers.
func ClusterFeaturesHandler ¶ added in v2.7.0
func ClusterFeaturesHandler(dsci *v1.DSCInitialization, def FeaturesProvider) *FeaturesHandler
func ComponentFeaturesHandler ¶ added in v2.7.0
func ComponentFeaturesHandler(componentName string, spec *v1.DSCInitializationSpec, def FeaturesProvider) *FeaturesHandler
func (*FeaturesHandler) Apply ¶ added in v2.7.0
func (f *FeaturesHandler) Apply() error
func (*FeaturesHandler) Delete ¶ added in v2.7.0
func (f *FeaturesHandler) Delete() error
Delete executes registered clean-up tasks in the opposite order they were initiated (following a stack structure). For instance, this allows for the undoing patches before its deletion. This approach assumes that Features are either instantiated in the correct sequence or are self-contained.
type FeaturesProvider ¶ added in v2.7.0
type FeaturesProvider func(handler *FeaturesHandler) error
FeaturesProvider is a function which allow to define list of features and couple them with the given initializer.
type Manifest ¶ added in v2.9.0
type Manifest interface { // Process allows any arbitrary struct to be passed and used while processing the content of the manifest. Process(data any) ([]*unstructured.Unstructured, error) }