package
1.5.0-rc.2
Repository: https://github.com/armory/spinnaker-operator.git
Documentation: pkg.go.dev

# README

How to run the tests

The following environment variables are needed:

NameDescriptionDefault
KUBECONFIGFile for a cluster to use for tests. Tests can create and delete namespaces.$HOME/.kube/config
OPERATOR_IMAGEDocker image of the operator to testarmory/spinnaker-operator:dev
HALYARD_IMAGEDocker image of Halyard to use for testsarmory/halyard:operator-0.3.x
S3_BUCKETS3 bucket name used for spinnaker persistence. Worker nodes should have access to it.operator-int-tests
S3_BUCKET_REGIONRegion used by the S3 bucket.us-west-2

Run tests with make integration_test.

Tests create dynamic namespaces, they are not deleted after finishing tests. There are two reasons for this:

  1. Deleting a namespace can take a lot of time, and usually this can be done as part of regular maintenance tasks outside of test execution.
  2. If a test fails, it's useful to have the namespaces available to be able to inspect the state of the operator and spinnaker, like detailed log files.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CommonSetup creates a new environment context, initializing common settings for all tests.
No description provided by the author
No description provided by the author
No description provided by the author
DeploySpinnaker returns spinnaker Deck and Gate public urls.
ExecuteGetRequest Since the integration tests are interacting with the spinnaker URL and the URL is generated within the docker network.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
20 * 2s = 40 seconds.
(90 * 2s) = 3 minutes (large images may need to be downloaded + startup time).
(300 * 2s) / 60 = 15 minutes.
(300 * 2s) / 60 = 15 minutes.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Operator holds information about the operator installation.
TestEnv holds information about the kubernetes cluster used for tests.
Vars are variables used in kustomize templates.