Add OTEL build test and for NGINX v1.25 (#10889)
* Add OTEL build test * Simplify otel compilation * Remove http2 deprecated arg * Move image build to CI * Turn image from scratch to optimize usage * rollback image from scratch * Final reviews on nginx v1.25 image * Remove s390x from final image
This commit is contained in:
parent
c295cd1c4b
commit
02e6ebc95a
20 changed files with 247 additions and 409 deletions
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
|||
package settings
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/onsi/ginkgo/v2"
|
||||
|
|
@ -40,12 +39,6 @@ const (
|
|||
var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
||||
f := framework.NewDefaultFramework("enable-opentelemetry")
|
||||
|
||||
shouldSkip := false
|
||||
skip, ok := os.LookupEnv("SKIP_OPENTELEMETRY_TESTS")
|
||||
if ok && skip == enable {
|
||||
shouldSkip = true
|
||||
}
|
||||
|
||||
ginkgo.BeforeEach(func() {
|
||||
f.NewEchoDeployment()
|
||||
})
|
||||
|
|
@ -54,9 +47,6 @@ var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
|||
})
|
||||
|
||||
ginkgo.It("should not exists opentelemetry directive", func() {
|
||||
if shouldSkip {
|
||||
ginkgo.Skip("skipped")
|
||||
}
|
||||
config := map[string]string{}
|
||||
config[enableOpentelemetry] = disable
|
||||
f.SetNginxConfigMapData(config)
|
||||
|
|
@ -70,9 +60,6 @@ var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
|||
})
|
||||
|
||||
ginkgo.It("should exists opentelemetry directive when is enabled", func() {
|
||||
if shouldSkip {
|
||||
ginkgo.Skip("skipped")
|
||||
}
|
||||
config := map[string]string{}
|
||||
config[enableOpentelemetry] = enable
|
||||
config[opentelemetryConfig] = opentelemetryConfigPath
|
||||
|
|
@ -87,9 +74,6 @@ var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
|||
})
|
||||
|
||||
ginkgo.It("should include opentelemetry_trust_incoming_spans on directive when enabled", func() {
|
||||
if shouldSkip {
|
||||
ginkgo.Skip("skipped")
|
||||
}
|
||||
config := map[string]string{}
|
||||
config[enableOpentelemetry] = enable
|
||||
config[opentelemetryConfig] = opentelemetryConfigPath
|
||||
|
|
@ -105,9 +89,6 @@ var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
|||
})
|
||||
|
||||
ginkgo.It("should not exists opentelemetry_operation_name directive when is empty", func() {
|
||||
if shouldSkip {
|
||||
ginkgo.Skip("skipped")
|
||||
}
|
||||
config := map[string]string{}
|
||||
config[enableOpentelemetry] = enable
|
||||
config[opentelemetryConfig] = opentelemetryConfigPath
|
||||
|
|
@ -123,9 +104,6 @@ var _ = framework.IngressNginxDescribe("Configure Opentelemetry", func() {
|
|||
})
|
||||
|
||||
ginkgo.It("should exists opentelemetry_operation_name directive when is configured", func() {
|
||||
if shouldSkip {
|
||||
ginkgo.Skip("skipped")
|
||||
}
|
||||
config := map[string]string{}
|
||||
config[enableOpentelemetry] = enable
|
||||
config[opentelemetryConfig] = opentelemetryConfigPath
|
||||
|
|
|
|||
|
|
@ -48,16 +48,6 @@ metadata:
|
|||
|
||||
EOF
|
||||
|
||||
OTEL_MODULE=$(cat <<EOF
|
||||
opentelemetry:
|
||||
enabled: true
|
||||
EOF
|
||||
)
|
||||
|
||||
if [[ "$NAMESPACE_OVERLAY" != "enable-opentelemetry" ]]; then
|
||||
OTEL_MODULE=""
|
||||
fi
|
||||
|
||||
# Use the namespace overlay if it was requested
|
||||
if [[ ! -z "$NAMESPACE_OVERLAY" && -d "$DIR/namespace-overlays/$NAMESPACE_OVERLAY" ]]; then
|
||||
echo "Namespace overlay $NAMESPACE_OVERLAY is being used for namespace $NAMESPACE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue