Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update finalzier to CRD doc #428

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/google/uuid v1.6.0
github.com/gophercloud/gophercloud v1.12.0
github.com/onsi/gomega v1.33.1
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240615134235-24529fcff658
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a
Expand Down
4 changes: 2 additions & 2 deletions api/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=
github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0=
github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 h1:rncLxJBpFGqBztyxCMwNRnMjhhIDOWHJowi6q8G6koI=
github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7/go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658 h1:h10bPourbXsIN7p5M//SUly/UzWfEp+d5tloBnyDDMI=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658/go.mod h1:k9KuWN2LBtLbKHgcyh/0lrwk3Kr0cOAhiR3hi/mrwOQ=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d h1:t1Lvt1WGp/WbkdU5R7nsc0NtMAvfd0K1nlNYLprHhbQ=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d/go.mod h1:k9KuWN2LBtLbKHgcyh/0lrwk3Kr0cOAhiR3hi/mrwOQ=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658 h1:Vb2WhryohIhyeG55z3HDG3R5hk4ipvAYRxAOUgYrOlI=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658/go.mod h1:zuPcZ5Kopr15AdfxvA0xqKIIGCZ0XbSe/0VHNKuvbEE=
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240615134235-24529fcff658 h1:E3v5us2zv+9bRj+8t9Lk0+QpC6t1KSgVsDuzv+7RiMQ=
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ require (
github.com/onsi/gomega v1.33.1
github.com/openstack-k8s-operators/infra-operator/apis v0.3.1-0.20240604144138-996e41d1af19
github.com/openstack-k8s-operators/keystone-operator/api v0.3.1-0.20240213125925-e40975f3db7e
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240615134235-24529fcff658
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240613130956-7d997dc5d972
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240618160206-098a347e0f61
go.uber.org/zap v1.27.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.11
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 h1:rncLxJBpFGqBztyxC
github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7/go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4=
github.com/openstack-k8s-operators/infra-operator/apis v0.3.1-0.20240604144138-996e41d1af19 h1:TUzcFb4Kweh3gMv1noPvWBIbqnPu2FlrWY6QgGZOdp4=
github.com/openstack-k8s-operators/infra-operator/apis v0.3.1-0.20240604144138-996e41d1af19/go.mod h1:7y2IQWFqkyCZb2CVfYzI0N9YRPUgEeGAgjxvOFvhRpo=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658 h1:h10bPourbXsIN7p5M//SUly/UzWfEp+d5tloBnyDDMI=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240615134235-24529fcff658/go.mod h1:k9KuWN2LBtLbKHgcyh/0lrwk3Kr0cOAhiR3hi/mrwOQ=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d h1:t1Lvt1WGp/WbkdU5R7nsc0NtMAvfd0K1nlNYLprHhbQ=
github.com/openstack-k8s-operators/lib-common/modules/common v0.3.1-0.20240618142732-ec81334ac10d/go.mod h1:k9KuWN2LBtLbKHgcyh/0lrwk3Kr0cOAhiR3hi/mrwOQ=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658 h1:Vb2WhryohIhyeG55z3HDG3R5hk4ipvAYRxAOUgYrOlI=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.3.1-0.20240615134235-24529fcff658/go.mod h1:zuPcZ5Kopr15AdfxvA0xqKIIGCZ0XbSe/0VHNKuvbEE=
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240615134235-24529fcff658 h1:E3v5us2zv+9bRj+8t9Lk0+QpC6t1KSgVsDuzv+7RiMQ=
github.com/openstack-k8s-operators/lib-common/modules/test v0.3.1-0.20240615134235-24529fcff658/go.mod h1:0h76CxD9g0z2Hk7fGFOZcjnzT1tQQ/yRNv3OXng+S/A=
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240613130956-7d997dc5d972 h1:Qxoz8FxaaTOpH/Mus/8RPbZ3Ky+gsZXOpNjp7xFHxok=
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240613130956-7d997dc5d972/go.mod h1:MyDbpztq0ZB0X5sIR+SrXTmfKqBswztAz2AmdKOiHV4=
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240618160206-098a347e0f61 h1:D2Yk4HW54k9zUn9FBQqr3HRm6ta2rTjFc3yqExkyr+o=
github.com/openstack-k8s-operators/mariadb-operator/api v0.3.1-0.20240618160206-098a347e0f61/go.mod h1:HWwqZr9qI121evs7+M7AEO1qqIHY43roDsDrOnbjEMM=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
14 changes: 7 additions & 7 deletions tests/functional/keystoneapi_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ var _ = Describe("Keystone controller", func() {
// it to run
Eventually(func() []string {
return GetKeystoneAPI(keystoneAPIName).Finalizers
}, timeout, interval).Should(ContainElement("KeystoneAPI"))
}, timeout, interval).Should(ContainElement("openstack.org/keystoneapi"))
})
})

Expand Down Expand Up @@ -660,18 +660,18 @@ var _ = Describe("Keystone controller", func() {

It("removes the finalizers when deleted", func() {
keystone := GetKeystoneAPI(keystoneAPIName)
Expect(keystone.Finalizers).To(ContainElement("KeystoneAPI"))
Expect(keystone.Finalizers).To(ContainElement("openstack.org/keystoneapi"))
db := mariadb.GetMariaDBDatabase(keystoneAPIName)
Expect(db.Finalizers).To(ContainElement("KeystoneAPI"))
Expect(db.Finalizers).To(ContainElement("openstack.org/keystoneapi"))
dbAcc := mariadb.GetMariaDBAccount(keystoneAccountName)
Expect(dbAcc.Finalizers).To(ContainElement("KeystoneAPI"))
Expect(dbAcc.Finalizers).To(ContainElement("openstack.org/keystoneapi"))

th.DeleteInstance(GetKeystoneAPI(keystoneAPIName))

db = mariadb.GetMariaDBDatabase(keystoneAPIName)
Expect(db.Finalizers).NotTo(ContainElement("KeystoneAPI"))
Expect(db.Finalizers).NotTo(ContainElement("openstack.org/keystoneapi"))
dbAcc = mariadb.GetMariaDBAccount(keystoneAccountName)
Expect(dbAcc.Finalizers).NotTo(ContainElement("KeystoneAPI"))
Expect(dbAcc.Finalizers).NotTo(ContainElement("openstack.org/keystoneapi"))
})
})

Expand Down Expand Up @@ -1112,7 +1112,7 @@ var _ = Describe("Keystone controller", func() {
"Keystone",
keystoneAPIName.Namespace,
keystoneAPIName.Name,
"KeystoneAPI",
"openstack.org/keystoneapi",
mariadb,
timeout,
interval,
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/common/assert_sample_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
spec:
adminProject: admin
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/common/errors_cleanup_keystone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
---
apiVersion: apps/v1
Expand Down
6 changes: 3 additions & 3 deletions tests/kuttl/tests/keystone_resources/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- KeystoneService-placement
- openstack.org/keystoneapi
- openstack.org/keystoneservice-placement
name: keystone
---
apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneService
metadata:
finalizers:
- KeystoneService
- openstack.org/keystoneservice
name: placement
spec:
enabled: true
Expand Down
12 changes: 6 additions & 6 deletions tests/kuttl/tests/keystone_resources/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- KeystoneService-placement
- KeystoneEndpoint-placement
- openstack.org/keystoneapi
- openstack.org/keystoneservice-placement
- openstack.org/keystoneendpoint-placement
name: keystone
---
apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneService
metadata:
finalizers:
- KeystoneService
- KeystoneEndpoint-placement
- openstack.org/keystoneservice
- openstack.org/keystoneendpoint-placement
name: placement
---
apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneEndpoint
metadata:
finalizers:
- KeystoneEndpoint
- openstack.org/keystoneendpoint
name: placement
spec:
endpoints:
Expand Down
6 changes: 3 additions & 3 deletions tests/kuttl/tests/keystone_resources/03-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- KeystoneService-placement
- openstack.org/keystoneapi
- openstack.org/keystoneservice-placement
name: keystone
---
apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneService
metadata:
finalizers:
- KeystoneService
- openstack.org/keystoneservice
name: placement
2 changes: 1 addition & 1 deletion tests/kuttl/tests/keystone_resources/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
2 changes: 1 addition & 1 deletion tests/kuttl/tests/keystone_scale/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
spec:
replicas: 3
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/tests/keystone_scale/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
spec:
replicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/tests/keystone_scale/03-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apiVersion: keystone.openstack.org/v1beta1
kind: KeystoneAPI
metadata:
finalizers:
- KeystoneAPI
- openstack.org/keystoneapi
name: keystone
spec:
adminProject: admin
Expand Down
Loading