diff --git a/config/crd/bases/stardog.vshn.ch_databases.yaml b/config/crd/bases/stardog.vshn.ch_databases.yaml new file mode 100644 index 0000000..41a2c49 --- /dev/null +++ b/config/crd/bases/stardog.vshn.ch_databases.yaml @@ -0,0 +1,120 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: databases.stardog.vshn.ch +spec: + group: stardog.vshn.ch + names: + kind: Database + listKind: DatabaseList + plural: databases + singular: database + scope: Cluster + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + description: Database is the Schema for the databases API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: DatabaseSpec defines the desired state of the Database + properties: + addUserForNonHiddenGraphs: + description: |- + AddUserForNonHiddenGraphs a dynamically managed user of this db with custom permissions + Mainly used to not have access to hidden graphs + type: string + databaseName: + description: DatabaseName the database name that has to be created + in the Stardog server + type: string + namedGraphPrefix: + description: NamedGraphPrefix a prefix for a Stardog Named Graph. + type: string + options: + description: Options is the Stardog configuration options for this + database. Only json input is valid. + type: string + stardogInstanceRefs: + description: StardogInstanceRefs contains the reference to the Stardog + instance the database should exist in + items: + description: StardogInstanceRef contains name and namespace for + a stardog instance + properties: + name: + type: string + namespace: + type: string + type: object + type: array + type: object + status: + description: DatabaseStatus defines the observed state of the Database + properties: + addUserForNonHiddenGraphs: + type: string + conditions: + items: + description: StardogCondition describes a status condition of a + StardogRole + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + type: array + databaseName: + type: string + namedGraphPrefix: + type: string + options: + type: string + stardogInstanceRef: + items: + description: StardogInstanceRef contains name and namespace for + a stardog instance + properties: + name: + type: string + namespace: + type: string + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/config/crd/bases/stardog.vshn.ch_organizations.yaml b/config/crd/bases/stardog.vshn.ch_organizations.yaml new file mode 100644 index 0000000..4446d04 --- /dev/null +++ b/config/crd/bases/stardog.vshn.ch_organizations.yaml @@ -0,0 +1,136 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: organizations.stardog.vshn.ch +spec: + group: stardog.vshn.ch + names: + kind: Organization + listKind: OrganizationList + plural: organizations + singular: organization + scope: Cluster + versions: + - name: v1beta1 + schema: + openAPIV3Schema: + description: Organization is the Schema for the organizations API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: OrganizationSpec defines the desired state of an Organization + properties: + databaseRef: + description: DatabaseRef is the name of the Database this Organization + is assigned to + type: string + displayName: + description: DisplayName is the long name of an organization + type: string + name: + description: Name is the short name of an organization + type: string + namedGraphs: + description: |- + NamedGraphs are the suffix graph names for this organization. The prefix can be found in the Database resource. + The final graphs is defined as prefix + "/" + orgName + "/" suffix + items: + description: NamedGraph defines the name and if necessary add another + hidden named graph for this named graph + properties: + addHidden: + default: false + description: AddHidden adds another graph with the same name + but with a prefix "