func createComponent(componentLookupKey types.NamespacedName) {
	component := &appstudiov1alpha1.Component{
		TypeMeta: metav1.TypeMeta{
			APIVersion: "appstudio.redhat.com/v1alpha1",
			Kind:       "Component",
		},
		ObjectMeta: metav1.ObjectMeta{
			Name:      HASCompName,
			Namespace: HASAppNamespace,
		},
		Spec: appstudiov1alpha1.ComponentSpec{
			ComponentName: HASCompName,
			Application:   HASAppName,
			Source: appstudiov1alpha1.ComponentSource{
				ComponentSourceUnion: appstudiov1alpha1.ComponentSourceUnion{
					GitSource: &appstudiov1alpha1.GitSource{
						URL: SampleRepoLink,
					},
				},
			},
		},
	}
	Expect(k8sClient.Create(ctx, component)).Should(Succeed())

	getComponent(componentLookupKey)
}
// createComponent creates sample component resource and verifies it was properly created
createComponent creates sample component resource and verifies it was properly created
// createComponent creates sample component resource and verifies it was properly created
func createComponent(componentLookupKey types.NamespacedName) {
	component := &appstudiov1alpha1.Component{
		TypeMeta: metav1.TypeMeta{
			APIVersion: "appstudio.redhat.com/v1alpha1",
			Kind:       "Component",
		},
		ObjectMeta: metav1.ObjectMeta{
			Name:      HASCompName,
			Namespace: HASAppNamespace,
		},
		Spec: appstudiov1alpha1.ComponentSpec{
			ComponentName: HASCompName,
			Application:   HASAppName,
			Source: appstudiov1alpha1.ComponentSource{
				ComponentSourceUnion: appstudiov1alpha1.ComponentSourceUnion{
					GitSource: &appstudiov1alpha1.GitSource{
						URL: SampleRepoLink,
					},
				},
			},
		},
	}
	Expect(k8sClient.Create(ctx, component)).Should(Succeed())
	getComponent(componentLookupKey)
}
func createComponent ( componentLookupKey types . NamespacedName ) { component := & appstudiov1alpha1 . Component { TypeMeta : metav1 . TypeMeta { APIVersion : " " , Kind : " " , } , ObjectMeta : metav1 . ObjectMeta { Name : HASCompName , Namespace : HASAppNamespace , } , Spec : appstudiov1alpha1 . ComponentSpec { ComponentName : HASCompName , Application : HASAppName , Source : appstudiov1alpha1 . ComponentSource { ComponentSourceUnion : appstudiov1alpha1 . ComponentSourceUnion { GitSource : & appstudiov1alpha1 . GitSource { URL : SampleRepoLink , } , } , } , } , } Expect ( k8sClient . Create ( ctx , component ) ) . Should ( Succeed ( ) ) getComponent ( componentLookupKey ) }
createComponent creates sample component resource and verifies it was properly created
createComponent creates sample component resource and verifies it was properly created