Documentation
¶
Index ¶
- Constants
- func DetectPlatform() (platform.Platform, error)
- type BackstageReconciler
- type MockClient
- func (m MockClient) Create(_ context.Context, obj client.Object, _ ...client.CreateOption) error
- func (m MockClient) Delete(_ context.Context, _ client.Object, _ ...client.DeleteOption) error
- func (m MockClient) DeleteAllOf(_ context.Context, _ client.Object, _ ...client.DeleteAllOfOption) error
- func (m MockClient) Get(_ context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (m MockClient) GroupVersionKindFor(_ runtime.Object) (schema.GroupVersionKind, error)
- func (m MockClient) IsObjectNamespaced(_ runtime.Object) (bool, error)
- func (m MockClient) List(_ context.Context, _ client.ObjectList, _ ...client.ListOption) error
- func (m MockClient) Patch(_ context.Context, _ client.Object, _ client.Patch, _ ...client.PatchOption) error
- func (m MockClient) RESTMapper() meta.RESTMapper
- func (m MockClient) Scheme() *runtime.Scheme
- func (m MockClient) Status() client.SubResourceWriter
- func (m MockClient) SubResource(_ string) client.SubResourceClient
- func (m MockClient) Update(_ context.Context, obj client.Object, _ ...client.UpdateOption) error
- type NameKind
Constants ¶
View Source
const ( BackstageFieldManager = "backstage-controller" // AutoSyncEnvVar: EXT_CONF_SYNC_backstage env variable which defines the value for rhdh.redhat.com/ext-config-sync annotation of external config object (ConfigMap|Secret) // True by default AutoSyncEnvVar = "EXT_CONF_SYNC_backstage" // WatchExtConfig: WATCH_EXT_CONF_backstage if false disables watching external config objects (ConfigMaps|Secrets) // True by default WatchExtConfig = "WATCH_EXT_CONF_backstage" )
Variables ¶
This section is empty.
Functions ¶
func DetectPlatform ¶
Types ¶
type BackstageReconciler ¶
BackstageReconciler reconciles a Backstage object
func (*BackstageReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*BackstageReconciler) SetupWithManager ¶
func (r *BackstageReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
Mock K8s go-client with very basic implementation of (some) methods to be able to simply test controller logic
func NewMockClient ¶
func NewMockClient() MockClient
func (MockClient) Create ¶
func (m MockClient) Create(_ context.Context, obj client.Object, _ ...client.CreateOption) error
func (MockClient) Delete ¶
func (m MockClient) Delete(_ context.Context, _ client.Object, _ ...client.DeleteOption) error
func (MockClient) DeleteAllOf ¶
func (m MockClient) DeleteAllOf(_ context.Context, _ client.Object, _ ...client.DeleteAllOfOption) error
func (MockClient) GroupVersionKindFor ¶
func (m MockClient) GroupVersionKindFor(_ runtime.Object) (schema.GroupVersionKind, error)
func (MockClient) IsObjectNamespaced ¶
func (m MockClient) IsObjectNamespaced(_ runtime.Object) (bool, error)
func (MockClient) List ¶
func (m MockClient) List(_ context.Context, _ client.ObjectList, _ ...client.ListOption) error
func (MockClient) Patch ¶
func (m MockClient) Patch(_ context.Context, _ client.Object, _ client.Patch, _ ...client.PatchOption) error
func (MockClient) RESTMapper ¶
func (m MockClient) RESTMapper() meta.RESTMapper
func (MockClient) Scheme ¶
func (m MockClient) Scheme() *runtime.Scheme
func (MockClient) Status ¶
func (m MockClient) Status() client.SubResourceWriter
func (MockClient) SubResource ¶
func (m MockClient) SubResource(_ string) client.SubResourceClient
func (MockClient) Update ¶
func (m MockClient) Update(_ context.Context, obj client.Object, _ ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.