Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ metadata:
spec:
group: clustertemplates.weave.works
names:
kind: GitopsTemplate
listKind: GitopsTemplateList
kind: GitOpsTemplate
listKind: GitOpsTemplateList
plural: gitopstemplates
singular: gitopstemplate
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: GitopsTemplate is the Schema for the GitopsTemplates API
description: GitOpsTemplate is the Schema for the GitOpsTemplates API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -34,7 +34,7 @@ spec:
metadata:
type: object
spec:
description: GitopsTemplateSpec defines the desired state of GitopsTemplate
description: GitOpsTemplateSpec defines the desired state of GitOpsTemplate
properties:
description:
type: string
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:
type: array
type: object
status:
description: GitopsTemplateStatus defines the observed state of GitopsTemplate
description: GitOpsTemplateStatus defines the observed state of GitOpsTemplate
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/api/templates"
)

const Kind = "GitopsTemplate"
const Kind = "GitOpsTemplate"

//+kubebuilder:object:root=true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ metadata:
spec:
group: clustertemplates.weave.works
names:
kind: GitopsTemplate
listKind: GitopsTemplateList
kind: GitOpsTemplate
listKind: GitOpsTemplateList
plural: gitopstemplates
singular: gitopstemplate
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: GitopsTemplate is the Schema for the GitopsTemplates API
description: GitOpsTemplate is the Schema for the GitOpsTemplates API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -34,7 +34,7 @@ spec:
metadata:
type: object
spec:
description: GitopsTemplateSpec defines the desired state of GitopsTemplate
description: GitOpsTemplateSpec defines the desired state of GitOpsTemplate
properties:
description:
type: string
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:
type: array
type: object
status:
description: GitopsTemplateStatus defines the observed state of GitopsTemplate
description: GitOpsTemplateStatus defines the observed state of GitOpsTemplate
type: object
type: object
served: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: clustertemplates.weave.works/v1alpha1
kind: GitopsTemplate
kind: GitOpsTemplate
metadata:
name: sample-wge-tf-controller-template
namespace: default
Expand Down
2 changes: 2 additions & 0 deletions cmd/clusters-service/pkg/server/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/weaveworks/weave-gitops/pkg/kube/kubefakes"

pacv1 "github.com/weaveworks/policy-agent/api/v1"

capiv1 "github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/api/capi/v1alpha1"
gapiv1 "github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/api/gitopstemplate/v1alpha1"
apitemplates "github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/api/templates"
Expand All @@ -27,6 +28,7 @@ import (
"github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/pkg/templates"

gitopsv1alpha1 "github.com/weaveworks/cluster-controller/api/v1alpha1"

"github.com/weaveworks/weave-gitops-enterprise/cmd/clusters-service/pkg/clusters"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/clusters-service/pkg/templates/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestParseFileResourceTemplate(t *testing.T) {
want := &gapiv1.GitOpsTemplate{
Template: templates.Template{
TypeMeta: metav1.TypeMeta{
Kind: "GitopsTemplate",
Kind: "GitOpsTemplate",
APIVersion: "clustertemplates.weave.works/v1alpha1",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusters-service/pkg/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (lib *CRDLibrary) List(ctx context.Context, templateKind string) (map[strin
result[ct.ObjectMeta.Name] = &capiTemplateList.Items[i].Template
}
case gapiv1.Kind:
lib.Log.Info("Querying namespace for GitopsTemplate resources", "namespace", lib.CAPINamespace)
lib.Log.Info("Querying namespace for GitOpsTemplate resources", "namespace", lib.CAPINamespace)
list := gapiv1.GitOpsTemplateList{}
err = cl.List(ctx, &list, client.InNamespace(lib.CAPINamespace))
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: capi.weave.works/v1alpha1
kind: GitopsTemplate
kind: GitOpsTemplate
metadata:
name: tf-template2
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: clustertemplates.weave.works/v1alpha1
kind: GitopsTemplate
kind: GitOpsTemplate
metadata:
name: tf-controller-2
namespace: default
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: clustertemplates.weave.works/v1alpha1
kind: GitopsTemplate
kind: GitOpsTemplate
metadata:
name: sample-wge-tf-controller-template
namespace: default
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: clustertemplates.weave.works/v1alpha1
kind: GitopsTemplate
kind: GitOpsTemplate
metadata:
name: sample-wge-tf-controller-template
namespace: default
Expand Down