mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: re-order deployment components
Some of the deployment artifacts refer to others (like ServiceAccount in a Deployment). If the dependencies are not available (yet), there will be errors reported in the logs. By deploying the components in a more correct order, fewer errors are reported, making the logs a little easier to understand. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
7d1c563b97
commit
9f08cb7ea0
23
e2e/rbd.go
23
e2e/rbd.go
@ -131,6 +131,7 @@ func deleteRBDPlugin() {
|
||||
|
||||
func createORDeleteRbdResources(action kubectlAction) {
|
||||
resources := []ResourceDeployer{
|
||||
// shared resources
|
||||
&yamlResource{
|
||||
filename: rbdDirPath + csiDriverObject,
|
||||
allowMissing: true,
|
||||
@ -139,12 +140,7 @@ func createORDeleteRbdResources(action kubectlAction) {
|
||||
filename: examplePath + cephConfconfigMap,
|
||||
allowMissing: true,
|
||||
},
|
||||
&yamlResourceNamespaced{
|
||||
filename: rbdDirPath + rbdProvisioner,
|
||||
namespace: cephCSINamespace,
|
||||
oneReplica: true,
|
||||
enableTopology: true,
|
||||
},
|
||||
// dependencies for provisioner
|
||||
&yamlResourceNamespaced{
|
||||
filename: rbdDirPath + rbdProvisionerRBAC,
|
||||
namespace: cephCSINamespace,
|
||||
@ -153,11 +149,14 @@ func createORDeleteRbdResources(action kubectlAction) {
|
||||
filename: rbdDirPath + rbdProvisionerPSP,
|
||||
namespace: cephCSINamespace,
|
||||
},
|
||||
// the provisioner itself
|
||||
&yamlResourceNamespaced{
|
||||
filename: rbdDirPath + rbdNodePlugin,
|
||||
namespace: cephCSINamespace,
|
||||
domainLabel: nodeRegionLabel + "," + nodeZoneLabel,
|
||||
filename: rbdDirPath + rbdProvisioner,
|
||||
namespace: cephCSINamespace,
|
||||
oneReplica: true,
|
||||
enableTopology: true,
|
||||
},
|
||||
// dependencies for the node-plugin
|
||||
&yamlResourceNamespaced{
|
||||
filename: rbdDirPath + rbdNodePluginRBAC,
|
||||
namespace: cephCSINamespace,
|
||||
@ -166,6 +165,12 @@ func createORDeleteRbdResources(action kubectlAction) {
|
||||
filename: rbdDirPath + rbdNodePluginPSP,
|
||||
namespace: cephCSINamespace,
|
||||
},
|
||||
// the node-plugin itself
|
||||
&yamlResourceNamespaced{
|
||||
filename: rbdDirPath + rbdNodePlugin,
|
||||
namespace: cephCSINamespace,
|
||||
domainLabel: nodeRegionLabel + "," + nodeZoneLabel,
|
||||
},
|
||||
}
|
||||
|
||||
for _, r := range resources {
|
||||
|
Reference in New Issue
Block a user