mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +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:
parent
7d1c563b97
commit
9f08cb7ea0
@ -69,6 +69,7 @@ func deleteCephfsPlugin() {
|
|||||||
|
|
||||||
func createORDeleteCephfsResources(action kubectlAction) {
|
func createORDeleteCephfsResources(action kubectlAction) {
|
||||||
resources := []ResourceDeployer{
|
resources := []ResourceDeployer{
|
||||||
|
// shared resources
|
||||||
&yamlResource{
|
&yamlResource{
|
||||||
filename: cephFSDirPath + csiDriverObject,
|
filename: cephFSDirPath + csiDriverObject,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
@ -77,11 +78,7 @@ func createORDeleteCephfsResources(action kubectlAction) {
|
|||||||
filename: examplePath + cephConfconfigMap,
|
filename: examplePath + cephConfconfigMap,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
},
|
},
|
||||||
&yamlResourceNamespaced{
|
// dependencies for provisioner
|
||||||
filename: cephFSDirPath + cephFSProvisioner,
|
|
||||||
namespace: cephCSINamespace,
|
|
||||||
oneReplica: true,
|
|
||||||
},
|
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: cephFSDirPath + cephFSProvisionerRBAC,
|
filename: cephFSDirPath + cephFSProvisionerRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -90,10 +87,13 @@ func createORDeleteCephfsResources(action kubectlAction) {
|
|||||||
filename: cephFSDirPath + cephFSProvisionerPSP,
|
filename: cephFSDirPath + cephFSProvisionerPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the provisioner itself
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: cephFSDirPath + cephFSNodePlugin,
|
filename: cephFSDirPath + cephFSProvisioner,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
|
oneReplica: true,
|
||||||
},
|
},
|
||||||
|
// dependencies for the node-plugin
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: cephFSDirPath + cephFSNodePluginRBAC,
|
filename: cephFSDirPath + cephFSNodePluginRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -102,6 +102,11 @@ func createORDeleteCephfsResources(action kubectlAction) {
|
|||||||
filename: cephFSDirPath + cephFSNodePluginPSP,
|
filename: cephFSDirPath + cephFSNodePluginPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the node-plugin itself
|
||||||
|
&yamlResourceNamespaced{
|
||||||
|
filename: cephFSDirPath + cephFSNodePlugin,
|
||||||
|
namespace: cephCSINamespace,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, r := range resources {
|
for _, r := range resources {
|
||||||
|
@ -78,6 +78,7 @@ func deleteNFSPlugin() {
|
|||||||
|
|
||||||
func createORDeleteNFSResources(f *framework.Framework, action kubectlAction) {
|
func createORDeleteNFSResources(f *framework.Framework, action kubectlAction) {
|
||||||
resources := []ResourceDeployer{
|
resources := []ResourceDeployer{
|
||||||
|
// shared resources
|
||||||
&yamlResource{
|
&yamlResource{
|
||||||
filename: nfsDirPath + csiDriverObject,
|
filename: nfsDirPath + csiDriverObject,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
@ -86,6 +87,7 @@ func createORDeleteNFSResources(f *framework.Framework, action kubectlAction) {
|
|||||||
filename: examplePath + cephConfconfigMap,
|
filename: examplePath + cephConfconfigMap,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
},
|
},
|
||||||
|
// dependencies for provisioner
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: nfsDirPath + nfsProvisionerRBAC,
|
filename: nfsDirPath + nfsProvisionerRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -94,11 +96,13 @@ func createORDeleteNFSResources(f *framework.Framework, action kubectlAction) {
|
|||||||
filename: nfsDirPath + nfsProvisionerPSP,
|
filename: nfsDirPath + nfsProvisionerPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the provisioner itself
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: nfsDirPath + nfsProvisioner,
|
filename: nfsDirPath + nfsProvisioner,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
oneReplica: true,
|
oneReplica: true,
|
||||||
},
|
},
|
||||||
|
// dependencies for the node-plugin
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: nfsDirPath + nfsNodePluginRBAC,
|
filename: nfsDirPath + nfsNodePluginRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -107,10 +111,12 @@ func createORDeleteNFSResources(f *framework.Framework, action kubectlAction) {
|
|||||||
filename: nfsDirPath + nfsNodePluginPSP,
|
filename: nfsDirPath + nfsNodePluginPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the node-plugin itself
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: nfsDirPath + nfsNodePlugin,
|
filename: nfsDirPath + nfsNodePlugin,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// NFS-export management by Rook
|
||||||
&rookNFSResource{
|
&rookNFSResource{
|
||||||
f: f,
|
f: f,
|
||||||
modules: []string{"rook", "nfs"},
|
modules: []string{"rook", "nfs"},
|
||||||
|
23
e2e/rbd.go
23
e2e/rbd.go
@ -131,6 +131,7 @@ func deleteRBDPlugin() {
|
|||||||
|
|
||||||
func createORDeleteRbdResources(action kubectlAction) {
|
func createORDeleteRbdResources(action kubectlAction) {
|
||||||
resources := []ResourceDeployer{
|
resources := []ResourceDeployer{
|
||||||
|
// shared resources
|
||||||
&yamlResource{
|
&yamlResource{
|
||||||
filename: rbdDirPath + csiDriverObject,
|
filename: rbdDirPath + csiDriverObject,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
@ -139,12 +140,7 @@ func createORDeleteRbdResources(action kubectlAction) {
|
|||||||
filename: examplePath + cephConfconfigMap,
|
filename: examplePath + cephConfconfigMap,
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
},
|
},
|
||||||
&yamlResourceNamespaced{
|
// dependencies for provisioner
|
||||||
filename: rbdDirPath + rbdProvisioner,
|
|
||||||
namespace: cephCSINamespace,
|
|
||||||
oneReplica: true,
|
|
||||||
enableTopology: true,
|
|
||||||
},
|
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: rbdDirPath + rbdProvisionerRBAC,
|
filename: rbdDirPath + rbdProvisionerRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -153,11 +149,14 @@ func createORDeleteRbdResources(action kubectlAction) {
|
|||||||
filename: rbdDirPath + rbdProvisionerPSP,
|
filename: rbdDirPath + rbdProvisionerPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the provisioner itself
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: rbdDirPath + rbdNodePlugin,
|
filename: rbdDirPath + rbdProvisioner,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
domainLabel: nodeRegionLabel + "," + nodeZoneLabel,
|
oneReplica: true,
|
||||||
|
enableTopology: true,
|
||||||
},
|
},
|
||||||
|
// dependencies for the node-plugin
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: rbdDirPath + rbdNodePluginRBAC,
|
filename: rbdDirPath + rbdNodePluginRBAC,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
@ -166,6 +165,12 @@ func createORDeleteRbdResources(action kubectlAction) {
|
|||||||
filename: rbdDirPath + rbdNodePluginPSP,
|
filename: rbdDirPath + rbdNodePluginPSP,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
},
|
},
|
||||||
|
// the node-plugin itself
|
||||||
|
&yamlResourceNamespaced{
|
||||||
|
filename: rbdDirPath + rbdNodePlugin,
|
||||||
|
namespace: cephCSINamespace,
|
||||||
|
domainLabel: nodeRegionLabel + "," + nodeZoneLabel,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, r := range resources {
|
for _, r := range resources {
|
||||||
|
Loading…
Reference in New Issue
Block a user