Skip to content

Commit

Permalink
change the group and version of ResourceGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Oct 22, 2020
1 parent a3a2039 commit d37cdce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pkg/live/example-resource-group-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
name: resourcegroups.configmanagement.gke.io
name: resourcegroups.kpt.dev
spec:
group: configmanagement.gke.io
group: kpt.dev
names:
kind: ResourceGroup
listKind: ResourceGroupList
Expand Down Expand Up @@ -200,9 +200,9 @@ spec:
- observedGeneration
type: object
type: object
version: v1beta1
version: v1alpha1
versions:
- name: v1beta1
- name: v1alpha1
served: true
storage: true
status:
Expand Down
2 changes: 1 addition & 1 deletion pkg/live/example-resource-group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Example ResourceGroup custom resource with references to
# two ConfigMaps in the inventory.
apiVersion: "configmanagement.gke.io/v1beta1"
apiVersion: "kpt.dev/v1alpha1"
kind: ResourceGroup
metadata:
namespace: default
Expand Down
2 changes: 1 addition & 1 deletion pkg/live/inventoryrg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var testInventoryLabel = "test-inventory-label"

var inventoryObj = unstructured.Unstructured{
Object: map[string]interface{}{
"apiVersion": "configmanagement.gke.io/v1beta1",
"apiVersion": "kpt.dev/v1alpha1",
"kind": "ResourceGroup",
"metadata": map[string]interface{}{
"name": inventoryObjName,
Expand Down
2 changes: 1 addition & 1 deletion pkg/live/rgpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func generateInventoryObj(name string, namespace string, id string) (*resource.I
// Create and return ResourceGroup custom resource as inventory object.
var inventoryObj = unstructured.Unstructured{
Object: map[string]interface{}{
"apiVersion": "configmanagement.gke.io/v1beta1",
"apiVersion": "kpt.dev/v1alpha1",
"kind": "ResourceGroup",
"metadata": map[string]interface{}{
"name": name,
Expand Down

0 comments on commit d37cdce

Please sign in to comment.