Skip to content

Commit fd8f5c5

Browse files
ArthurSensmeysholdt
authored andcommitted
Fix resource types
Signed-off-by: Arthur Silva Sens <[email protected]>
1 parent e0265a7 commit fd8f5c5

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

installer/pkg/common/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
Kind: "Deployment",
1313
}
1414
ServiceType = metav1.TypeMeta{
15-
APIVersion: "apps/v1",
15+
APIVersion: "v1",
1616
Kind: "Service",
1717
}
1818
)

installer/pkg/components/alertmanager/serviceaccount.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func serviceAccount(ctx *common.RenderContext) ([]runtime.Object, error) {
1111
return []runtime.Object{
1212
&corev1.ServiceAccount{
1313
TypeMeta: metav1.TypeMeta{
14-
APIVersion: "apps/v1",
14+
APIVersion: "v1",
1515
Kind: "ServiceAccount",
1616
},
1717
ObjectMeta: metav1.ObjectMeta{

installer/pkg/components/prometheusOperator/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func service(ctx *common.RenderContext) ([]runtime.Object, error) {
1212
return []runtime.Object{
1313
&corev1.Service{
1414
TypeMeta: metav1.TypeMeta{
15-
APIVersion: "apps/v1",
15+
APIVersion: "v1",
1616
Kind: "Service",
1717
},
1818
ObjectMeta: metav1.ObjectMeta{

installer/pkg/components/prometheusOperator/serviceaccount.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func serviceAccount(ctx *common.RenderContext) ([]runtime.Object, error) {
1111
return []runtime.Object{
1212
&corev1.ServiceAccount{
1313
TypeMeta: metav1.TypeMeta{
14-
APIVersion: "apps/v1",
14+
APIVersion: "v1",
1515
Kind: "ServiceAccount",
1616
},
1717
ObjectMeta: metav1.ObjectMeta{

installer/pkg/components/pyrra/clusterrole.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func clusterRoleBinding(ctx *common.RenderContext) ([]runtime.Object, error) {
6464
&rbacv1.ClusterRoleBinding{
6565
TypeMeta: metav1.TypeMeta{
6666
APIVersion: "rbac.authorization.k8s.io/v1",
67-
Kind: "ClusterRole",
67+
Kind: "ClusterRoleBinding",
6868
},
6969
ObjectMeta: metav1.ObjectMeta{
7070
Name: componentName(kubernetesComponent),

installer/pkg/components/pyrra/deployment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
2727
&appsv1.Deployment{
2828
TypeMeta: common.DeploymentType,
2929
ObjectMeta: metav1.ObjectMeta{
30-
Name: Name,
30+
Name: fmt.Sprintf("%s-%s", Name, "api"),
3131
Namespace: Namespace,
3232
Labels: pyrraLabels(apiComponent),
3333
},
@@ -67,7 +67,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
6767
&appsv1.Deployment{
6868
TypeMeta: common.DeploymentType,
6969
ObjectMeta: metav1.ObjectMeta{
70-
Name: Name,
70+
Name: fmt.Sprintf("%s-%s", Name, "kubernetes"),
7171
Namespace: Namespace,
7272
Labels: pyrraLabels(kubernetesComponent),
7373
},

installer/pkg/components/pyrra/serviceaccount.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func serviceAccount(ctx *common.RenderContext) ([]runtime.Object, error) {
1111
return []runtime.Object{
1212
&corev1.ServiceAccount{
1313
TypeMeta: metav1.TypeMeta{
14-
APIVersion: "apps/v1",
14+
APIVersion: "v1",
1515
Kind: "ServiceAccount",
1616
},
1717
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)