Skip to content

Commit

Permalink
feat: update custom resource api group (#8)
Browse files Browse the repository at this point in the history
* feat: check api group

* feat: clean properties

* chore(deps): update parent to 0.25.0

* fix: group in helm
  • Loading branch information
andrejpetras authored Dec 15, 2023
1 parent 2280c77 commit d2636ff
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.onecx</groupId>
<artifactId>onecx-quarkus3-parent</artifactId>
<version>0.23.0</version>
<version>0.25.0</version>
</parent>

<artifactId>onecx-product-store-operator</artifactId>
Expand Down
61 changes: 0 additions & 61 deletions src/main/helm/crds/products.io.github.onecx.product.store-v1.yml

This file was deleted.

61 changes: 61 additions & 0 deletions src/main/helm/crds/products.onecx.github.io-v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten!
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: products.onecx.github.io
spec:
group: onecx.github.io
names:
kind: Product
plural: products
singular: product
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
basePath:
type: string
classifications:
items:
type: string
type: array
description:
type: string
displayName:
type: string
iconName:
type: string
imageUrl:
type: string
name:
type: string
version:
type: string
type: object
status:
properties:
message:
type: string
observedGeneration:
type: integer
product-name:
type: string
response-code:
type: integer
status:
enum:
- CREATED
- ERROR
- UNDEFINED
- UPDATED
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
2 changes: 1 addition & 1 deletion src/main/helm/templates/product-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role
rules:
- apiGroups:
- io.github.onecx.product.store
- onecx.github.io
resources:
- products
- products/status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import io.fabric8.kubernetes.model.annotation.Version;

@Version("v1")
@Group("io.github.onecx.product.store")
@Group("onecx.github.io")
public class Product extends CustomResource<ProductSpec, ProductStatus> implements Namespaced {

}

0 comments on commit d2636ff

Please sign in to comment.