Skip to content

Commit

Permalink
Merge pull request #47 from vshn/dbaas-bugs
Browse files Browse the repository at this point in the history
Dbaas bugs
  • Loading branch information
zugao authored Nov 11, 2022
2 parents 8c58910 + bb2386d commit 94223db
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 40 deletions.
6 changes: 3 additions & 3 deletions apis/v1/dbaas_exoscale_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
//go:generate yq -i e ../generated/appcat.vshn.io_exoscalemysqls.yaml --expression "with(.spec.versions[]; .referenceable=true, del(.storage), del(.subresources))"

// Patch the XRD with this generated CRD scheme
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/mysql.yml --expression ".parameters.appcat.composites.\"exoscalemysqls.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscalemysqls.yaml\").spec.versions"
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/mysql.yml --expression ".parameters.appcat.composites.\"xexoscalemysqls.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscalemysqls.yaml\").spec.versions"

// +kubebuilder:object:root=true
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".status.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.zone"
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".spec.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.service.zone"

// ExoscaleMySQL is the API for creating MySQL on Exoscale.
type ExoscaleMySQL struct {
Expand Down
6 changes: 3 additions & 3 deletions apis/v1/dbaas_exoscale_postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
//go:generate yq -i e ../generated/appcat.vshn.io_exoscalepostgresqls.yaml --expression "with(.spec.versions[]; .referenceable=true, del(.storage), del(.subresources))"

// Patch the XRD with this generated CRD scheme
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/postgres.yml --expression ".parameters.appcat.composites.\"exoscalepostgresqls.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscalepostgresqls.yaml\").spec.versions"
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/postgres.yml --expression ".parameters.appcat.composites.\"xexoscalepostgresqls.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscalepostgresqls.yaml\").spec.versions"

// +kubebuilder:object:root=true
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".status.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.zone"
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".spec.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.service.zone"

// ExoscalePostgreSQL is the API for creating PostgreSQL on Exoscale.
type ExoscalePostgreSQL struct {
Expand Down
6 changes: 3 additions & 3 deletions apis/v1/dbaas_exoscale_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
//go:generate yq -i e ../generated/appcat.vshn.io_exoscaleredis.yaml --expression "with(.spec.versions[]; .referenceable=true, del(.storage), del(.subresources))"

// Patch the XRD with this generated CRD scheme
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/redis.yml --expression ".parameters.appcat.composites.\"exoscaleredis.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscaleredis.yaml\").spec.versions"
//go:generate yq -i e ../../packages/composite/dbaas/exoscale/redis.yml --expression ".parameters.appcat.composites.\"xexoscaleredis.appcat.vshn.io\".spec.versions=load(\"../generated/appcat.vshn.io_exoscaleredis.yaml\").spec.versions"

// +kubebuilder:object:root=true
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".status.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.zone"
// +kubebuilder:printcolumn:name="Plan",type="string",JSONPath=".spec.parameters.size.plan"
// +kubebuilder:printcolumn:name="Zone",type="string",JSONPath=".spec.parameters.service.zone"

// ExoscaleRedis is the API for creating Redis instances on Exoscale.
type ExoscaleRedis struct {
Expand Down
6 changes: 3 additions & 3 deletions packages/composite/dbaas/exoscale/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ classes:
parameters:
appcat:
composites:
"exoscalemysqls.appcat.vshn.io":
"xexoscalemysqls.appcat.vshn.io":
spec:
group: appcat.vshn.io
names:
Expand All @@ -24,10 +24,10 @@ parameters:
name: exoscale.mysql.appcat.vshn.io
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
6 changes: 3 additions & 3 deletions packages/composite/dbaas/exoscale/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ classes:
parameters:
appcat:
composites:
"exoscalepostgresqls.appcat.vshn.io":
"xexoscalepostgresqls.appcat.vshn.io":
spec:
group: appcat.vshn.io
names:
Expand All @@ -24,10 +24,10 @@ parameters:
name: exoscale.postgres.appcat.vshn.io
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
6 changes: 3 additions & 3 deletions packages/composite/dbaas/exoscale/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ classes:
parameters:
appcat:
composites:
"exoscaleredis.appcat.vshn.io":
"xexoscaleredis.appcat.vshn.io":
spec:
group: appcat.vshn.io
names:
Expand All @@ -23,10 +23,10 @@ parameters:
name: exoscale.redis.appcat.vshn.io
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
2 changes: 1 addition & 1 deletion packages/composition/dbaas/exoscale/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:
spec:
compositeTypeRef:
apiVersion: appcat.vshn.io/v1
kind: XMySQL
kind: XExoscaleMySQL
writeConnectionSecretsToNamespace: ${crossplane:namespace}
resources:

Expand Down
2 changes: 1 addition & 1 deletion packages/composition/dbaas/exoscale/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:
spec:
compositeTypeRef:
apiVersion: appcat.vshn.io/v1
kind: XPostgreSQL
kind: XExoscalePostgreSQL
writeConnectionSecretsToNamespace: ${crossplane:namespace}
resources:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations: {}
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
name: appcat:composite:exoscalemysqls.appcat.vshn.io:claim-view
name: appcat:composite:xexoscalemysqls.appcat.vshn.io:claim-view
rules:
- apiGroups:
- appcat.vshn.io
Expand All @@ -24,7 +24,7 @@ metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
name: appcat:composite:exoscalemysqls.appcat.vshn.io:claim-edit
name: appcat:composite:xexoscalemysqls.appcat.vshn.io:claim-edit
rules:
- apiGroups:
- appcat.vshn.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: '10'
labels:
name: exoscalemysqls.appcat.vshn.io
name: exoscalemysqls.appcat.vshn.io
name: xexoscalemysqls.appcat.vshn.io
name: xexoscalemysqls.appcat.vshn.io
spec:
claimNames:
kind: ExoscaleMySQL
Expand All @@ -27,10 +27,10 @@ spec:
plural: xexoscalemysqls
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations: {}
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
name: appcat:composite:exoscalepostgresqls.appcat.vshn.io:claim-view
name: appcat:composite:xexoscalepostgresqls.appcat.vshn.io:claim-view
rules:
- apiGroups:
- appcat.vshn.io
Expand All @@ -24,7 +24,7 @@ metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
name: appcat:composite:exoscalepostgresqls.appcat.vshn.io:claim-edit
name: appcat:composite:xexoscalepostgresqls.appcat.vshn.io:claim-edit
rules:
- apiGroups:
- appcat.vshn.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: '10'
labels:
name: exoscalepostgresqls.appcat.vshn.io
name: exoscalepostgresqls.appcat.vshn.io
name: xexoscalepostgresqls.appcat.vshn.io
name: xexoscalepostgresqls.appcat.vshn.io
spec:
claimNames:
kind: ExoscalePostgreSQL
Expand All @@ -27,10 +27,10 @@ spec:
plural: xexoscalepostgresqls
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations: {}
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
name: appcat:composite:exoscaleredis.appcat.vshn.io:claim-view
name: appcat:composite:xexoscaleredis.appcat.vshn.io:claim-view
rules:
- apiGroups:
- appcat.vshn.io
Expand All @@ -24,7 +24,7 @@ metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
name: appcat:composite:exoscaleredis.appcat.vshn.io:claim-edit
name: appcat:composite:xexoscaleredis.appcat.vshn.io:claim-edit
rules:
- apiGroups:
- appcat.vshn.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: '10'
labels:
name: exoscaleredis.appcat.vshn.io
name: exoscaleredis.appcat.vshn.io
name: xexoscaleredis.appcat.vshn.io
name: xexoscaleredis.appcat.vshn.io
spec:
claimNames:
kind: ExoscaleRedis
Expand All @@ -26,10 +26,10 @@ spec:
plural: xexoscaleredis
versions:
- additionalPrinterColumns:
- jsonPath: .status.parameters.size.plan
- jsonPath: .spec.parameters.size.plan
name: Plan
type: string
- jsonPath: .spec.parameters.zone
- jsonPath: .spec.parameters.service.zone
name: Zone
type: string
name: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
compositeTypeRef:
apiVersion: appcat.vshn.io/v1
kind: XMySQL
kind: XExoscaleMySQL
patchSets:
- name: annotations
patches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
compositeTypeRef:
apiVersion: appcat.vshn.io/v1
kind: XPostgreSQL
kind: XExoscalePostgreSQL
patchSets:
- name: annotations
patches:
Expand Down

0 comments on commit 94223db

Please sign in to comment.