Skip to content

Commit

Permalink
Updated readme for 1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishshinde committed Mar 24, 2021
1 parent 966f6e5 commit d84206f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,3 @@ It is licensed using [Apache License 2.0](LICENSE).
## Documentation

For full documentation please visit the **[wiki](https://github.com/aerospike/aerospike-kubernetes-operator/wiki).**

## Beta

The Aerospike Kubernetes Operator is now in **beta**. This means that we are
seeking your feedback, but that you should not be deploying the Operator in
production, yet.

If you're an enterprise customer, feel free to reach out to support about
officially participating in the beta program.
We appreciate feedback from our users on the [issues](https://github.com/aerospike/aerospike-kubernetes-operator/issues).


34 changes: 4 additions & 30 deletions test/e2e/podSpec.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func PodSpecTest(t *testing.T, f *framework.Framework, ctx *framework.TestCtx) {
Command: []string{"sh", "-c", "echo The app is running! && sleep 3600"},
}

aeroCluster := createDummyAerospikeCluster(clusterNamespacedName, 2)
t.Run("Positive", func(t *testing.T) {
aeroCluster := createDummyAerospikeCluster(clusterNamespacedName, 2)
if err := deployCluster(t, f, ctx, aeroCluster); err != nil {
t.Fatal(err)
}
Expand All @@ -62,7 +62,7 @@ func PodSpecTest(t *testing.T, f *framework.Framework, ctx *framework.TestCtx) {
t.Run("UpdateContainer2", func(t *testing.T) {
aeroCluster = getCluster(t, f, ctx, clusterNamespacedName)

aeroCluster.Spec.PodSpec.Sidecars[1].Command = []string{"sh", "-c", "updating command, should do rolling restart! && sleep 3600"}
aeroCluster.Spec.PodSpec.Sidecars[1].Command = []string{"sh", "-c", "sleep 3600"}

if err := updateAndWait(t, f, ctx, aeroCluster); err != nil {
t.Fatal(err)
Expand All @@ -80,41 +80,15 @@ func PodSpecTest(t *testing.T, f *framework.Framework, ctx *framework.TestCtx) {
})

t.Run("Negative", func(t *testing.T) {
// aeroCluster := createDummyAerospikeCluster(clusterNamespacedName, 2)
// if err := deployCluster(t, f, ctx, aeroCluster); err != nil {
// t.Fatal(err)
// }

t.Run("AddSameContainer", func(t *testing.T) {
aeroCluster := getCluster(t, f, ctx, clusterNamespacedName)
aeroCluster = getCluster(t, f, ctx, clusterNamespacedName)
aeroCluster.Spec.PodSpec.Sidecars = append(aeroCluster.Spec.PodSpec.Sidecars, sidecar1)
aeroCluster.Spec.PodSpec.Sidecars = append(aeroCluster.Spec.PodSpec.Sidecars, sidecar1)

err := f.Client.Update(goctx.TODO(), aeroCluster)
validateError(t, err, "should fail for adding container with same name")
})

// Add test for bad container config, cluster status should not get updated, if pod is not running and ready
t.Run("AddBadContainer", func(t *testing.T) {
aeroCluster := getCluster(t, f, ctx, clusterNamespacedName)
aeroCluster.Spec.PodSpec.Sidecars = append(aeroCluster.Spec.PodSpec.Sidecars, sidecar1)

// adding sidecar1 with changed name and port.
badsidecar := corev1.Container{
Name: "nginxbad",
Image: "nginx-bad:1.14.2",
Ports: []corev1.ContainerPort{
{
ContainerPort: 81,
},
},
}
aeroCluster.Spec.PodSpec.Sidecars = append(aeroCluster.Spec.PodSpec.Sidecars, badsidecar)

err := updateAndWait(t, f, ctx, aeroCluster)
validateError(t, err, "should fail for adding the bad container")

})
})

deleteCluster(t, f, ctx, aeroCluster)
}

0 comments on commit d84206f

Please sign in to comment.