Skip to content

Conversation

yutongz
Copy link
Contributor

@yutongz yutongz commented Apr 19, 2017

No description provided.

@yutongz yutongz changed the title e2e test: Create namespace and deploy istio core and test app [WIP] e2e test: Create namespace and deploy istio core and test app Apr 19, 2017
Copy link
Contributor

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what are the yaml template used for, but you should be using the yaml files from kubernetes/istio-install.

hubDefault := "gcr.io/istio-testing"
tagDefault := "b121a1e169365865e01a9e6eea066a34a29d9fd1"

hub := flag.String("hub", hubDefault, "Docker hub")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move all those flags to var () section at the beginning of file.

@@ -161,8 +161,10 @@ func (t TestInfo) Teardown() error {

func generateRunId(t string) (string, error) {
u := uuid.New().String()
strings.Replace(u, "-", "", -1)
strings.Replace(t, "_", "-", -1)
glog.Infof("Before: %s|%s", t, u)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. PLease remove those log statement

func GetTestRuntimePath() string {
ex, err := os.Executable()
if err != nil {
glog.Warning("Cannot get runtime path")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad format

}


func GetTestRuntimePath() string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this to help the user.

func getResourcePath(r string) string {
return filepath.Join(...)
}

)

const (
TEST_RUNFILES_DIR = "go_default_test.runfiles/com_github_istio_istio"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode this.

return string(bytes), nil
}

func WebDownload(dst string, src string) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to HttpDownload ?


if injectProxy {
injectedYamlFile := k.TmpDir + "/yaml/injected-" + svcName + "-app.yaml"
if _, err := util.Shell(fmt.Sprintf("%s kube-inject -f %s -o %s --hub %s --tag %s -n %s", k.IstioCtl, yamlFile, injectedYamlFile, k.ProxyHub, k.ProxyTag, k.Namespace)); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be useful to create a istioctl library that takes care of downloading the istioctl and etc..

homeDir := usr.HomeDir

// Download Istioctl binary
util.WebDownload(k.TmpDir+"/istioctl", k.IstioCtlUrl+"/istioctl-linux")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to another library. It is hard to understand why you are doing this here.

parts := strings.Split(line[7:], "=")
switch parts[0] {
case "MIXER_HUB":
mixerHubDefault = (parts[1])[1:(len(parts[1]) - 1)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are iterating, it would be better to use a compiled regex:
r := regexp.MustCompile("^export (..*)=(..*)")
for scanner.Scan() {

  •  line := scanner.Text()
     if m := r.FindStringSubmatch(line); m != nil {
    

...
}

case "MIXER_HUB":
mixerHubDefault = (parts[1])[1:(len(parts[1]) - 1)]
case "MIXER_TAG":
mixerTagDefault = (parts[1])[1:(len(parts[1]) - 1)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to do here ? strings.Trim maybe ?

@yutongz
Copy link
Contributor Author

yutongz commented Apr 21, 2017

PTAL

}
}

func NewKubeInfo(tmpDir, runId string) *KubeInfo {
Copy link
Contributor

@sebastienvas sebastienvas Apr 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you call this new, you might want to do a copy of it and send the copy.
var k = new(KubeInfo)
*k = kube
and do everything on k

)

var (
kube KubeInfo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant to the flag. I don't understand why they are defined twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, not really get your point, which flag(s) you think would be deplicated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so all the *Default vars are not initialized so your flags default are not initialized. In that case make the flag default expliciit to be nil, and treat your flags as globals.

Copy link
Contributor

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please runs the linters. bin/linters.sh

type KubeInfo struct {
Namespace string
NamespaceCreated bool
Hub string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hub and Tag for app template

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the name to make it clear.

flag.StringVar(&kube.CaImage, "ca", "", "Ca image")
flag.StringVar(&kube.ProxyHub, "proxy_hub", managerHubDefault, "proxy hub")
flag.StringVar(&kube.ProxyTag, "proxy_tag", managerTagDefault, "proxy tag")
flag.StringVar(&kube.IstioctlUrl, "istioctl_url", istioctlUrlDefault, "URL to download istioctl")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your default is not initialized

k.NamespaceCreated = false
glog.Infof("Namespace %s deleted", k.Namespace)
}
glog.Info("Uploading log remotely")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming from a copy paste ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, not really, why?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the glog.Info("Uploading log remotely") since you re not doing it.


"github.com/golang/glog"
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move hte istioctl related flags here and create a struct like
type istioctl struct {
remotePath string
binaryPath string
}

func (i *istioctl) DownloadIstioctl()

func (i *istioctl) KubeInject(yamlFile, svcName, yamlDir, proxyHub, proxyTag, namespace string) (string, error)

Copy link
Contributor

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please see

@yutongz
Copy link
Contributor Author

yutongz commented Apr 25, 2017

linter failed for three:

  1. Subprocess launching with variable.,HIGH,HIGH (gas)
    ->run bash command, util.Shell(command)
  2. Expect file permissions to be 0600 or less,MEDIUM,HIGH (gas)
    ->istioctl require exec right
  3. error strings should not be capitalized or end with punctuation or a newline
    -> Create a new error

@sebastienvas
Copy link
Contributor

The last one is easy to fix. Just do not used capitalized or punctuation in your error. For the other one you can add
/* #nosec */
just before the line

@@ -23,6 +23,10 @@ import (
"github.com/golang/glog"
)

var (
debug = flag.Bool("debug", false, "Debug model, not do clean up")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename to skip_cleanup.

@@ -130,6 +144,10 @@ func (t *testCleanup) init() error {
}

func (t *testCleanup) cleanup() {
if *debug {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please set a property in the struct.

}

defer func() {
if cerr := out.Close(); err == nil && cerr != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defer will not change the value that you return. you should just log an error instead.

Copy link
Contributor

@sebastienvas sebastienvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better. A few more comments. Let s work together tomorrow.


resp, err = http.Get(src)
defer func() {
if cerr := resp.Body.Close(); err == nil && cerr != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as before.

if err != nil {
return err
}
defer func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same. Log the error.

Jenkinsfile Outdated
@@ -32,6 +32,7 @@ def presubmit(gitUtils, bazel, utils) {
sh('bin/linters.sh')
}
stage('Bazel Test') {
sh('source istio.VERSION')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let s create a script for end to end testing in another PR. Just tag the sample test as manual in the BUILD file.

@istio-testing
Copy link
Collaborator

Jenkins job istio/presubmit passed

@yutongz
Copy link
Contributor Author

yutongz commented Apr 26, 2017

PTAL

appHub = flag.String("app_hub", appHubDefault, "app hub")
appTag = flag.String("app_tag", appTagDefault, "app tag")
namespace = flag.String("n", "", "Namespace to use for testing (empty to create/delete temporary one)")
mixerImage = flag.String("mixer", os.Getenv(mixerHubDefault)+"/mixer:"+os.Getenv(mixerTagDefault), "Mixer image")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inconsistent. Please use hub and tag everywhere.
Note proxyhub and proxytag are the same as manager so you can get rid of them.

@istio-testing
Copy link
Collaborator

Jenkins job istio/presubmit passed

@yutongz yutongz changed the title [WIP] e2e test: Create namespace and deploy istio core and test app e2e test: Create namespace and deploy istio core and test app Apr 26, 2017
@istio-testing
Copy link
Collaborator

Jenkins job istio/presubmit passed

@sebastienvas sebastienvas merged commit a7db6a1 into istio:e2e Apr 27, 2017
sebastienvas added a commit that referenced this pull request May 4, 2017
* Initial version

* Refactor for better testing

* Update framework for testing and added test

* Bazelify istio

* Simplified interfaces

* Refactor code to use Cleanable interface

* go formating (#140)

* go formating

* Updated Jenkinsfile to run tests

* Separate TestInfo to another module (#144)

* Separete TestInfo to another module

Implemented status file creation
Implemented log upload to cloud storage
Rename SetUp to Setup and TearDown to Teardown

* Add more info in TestStatus

* Rename InitLogging to InitGlog

* Resolving comments

* Return skipDir error on err

* Adding Code Checks + Fix them (#151)

* Not uploading logs_bucket_path flag is unset

* Added code checks

* Fix linter errors

* Update Jenkins to use a goBuildNode

* e2e test: Create namespace and deploy istio core and test app (#145)

* Create namespace and deploy namespace

* Get runtime source path

* Correct pr comments, add GetGateWay()

* Add default route test

* Add version routing tests, fix linter and fix comments on pr

* Add fault delay test and fix comments

* Add version migration test

* Add Hop App + testing (#162)

* Implemented echo App

* Adding test + refactoring

* Added more tests

* Resolved review comments

* Use slices instead of pointers to slices

* Fix formatting

* Merge master to e2e (#165)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Small doc updates. (#163)

* Demo test update + Docker file creation for Hop App (#172)

* Renamed default env const

* Added support for server update for version

* Added a binary for Hop + Docker Image

* WIP

* Modified kubernetes setup + demo test

* Fixed Jenkinsfile

* Fix comments

* Fix format

* Removing app_flag as set directly in template

* Fixed resp.close() was called on empty resp

* Moved test to their own folder

* Fixes e2e.sh

* Make e2e.sh more verbose

* Merge from istio:master, change install source to istio-install and setup istioctl (#175)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* Install istio from istio-install, add os x support and add setupIstioctl

* fix lineter

* Get rule files from demos/apps, istioctl cleanable and comments fix

* small change

* appManager cleanablization

* Merge master to e2e (#181)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* update to gcr.io/istio-testing versions (#170)

1. Update mixer, manager, proxy versions to include rate limit fixes
2. Remove mixer configmap. The default config is now baked inside mixer.
3. expose mixer metrics and configapi ports thru port forwarding.
4. Add "wrk" for testing. drive traffic and fetch metrics as a setup for full
5. ratelimit integration test. That PR will follow.

* Add ingress service for correct status IP

* Support for istio-ca in tests/updateVersion.sh (#180)

* Update updateVersion.sh to take into account istio-ca

* Updates with updateVersion.sh

* Create README.md for e2e test framework (#182)

* Create README.md for e2e test framework

* small change
zenlint pushed a commit to zenlint/istio that referenced this pull request Aug 30, 2017
* Remove config and mixer from titles of docs

* attrgen -> attributes
rshriram pushed a commit that referenced this pull request Oct 30, 2017
* Initial version

* Refactor for better testing

* Update framework for testing and added test

* Bazelify istio

* Simplified interfaces

* Refactor code to use Cleanable interface

* go formating (#140)

* go formating

* Updated Jenkinsfile to run tests

* Separate TestInfo to another module (#144)

* Separete TestInfo to another module

Implemented status file creation
Implemented log upload to cloud storage
Rename SetUp to Setup and TearDown to Teardown

* Add more info in TestStatus

* Rename InitLogging to InitGlog

* Resolving comments

* Return skipDir error on err

* Adding Code Checks + Fix them (#151)

* Not uploading logs_bucket_path flag is unset

* Added code checks

* Fix linter errors

* Update Jenkins to use a goBuildNode

* e2e test: Create namespace and deploy istio core and test app (#145)

* Create namespace and deploy namespace

* Get runtime source path

* Correct pr comments, add GetGateWay()

* Add default route test

* Add version routing tests, fix linter and fix comments on pr

* Add fault delay test and fix comments

* Add version migration test

* Add Hop App + testing (#162)

* Implemented echo App

* Adding test + refactoring

* Added more tests

* Resolved review comments

* Use slices instead of pointers to slices

* Fix formatting

* Merge master to e2e (#165)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Small doc updates. (#163)

* Demo test update + Docker file creation for Hop App (#172)

* Renamed default env const

* Added support for server update for version

* Added a binary for Hop + Docker Image

* WIP

* Modified kubernetes setup + demo test

* Fixed Jenkinsfile

* Fix comments

* Fix format

* Removing app_flag as set directly in template

* Fixed resp.close() was called on empty resp

* Moved test to their own folder

* Fixes e2e.sh

* Make e2e.sh more verbose

* Merge from istio:master, change install source to istio-install and setup istioctl (#175)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* Install istio from istio-install, add os x support and add setupIstioctl

* fix lineter

* Get rule files from demos/apps, istioctl cleanable and comments fix

* small change

* appManager cleanablization

* Merge master to e2e (#181)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* update to gcr.io/istio-testing versions (#170)

1. Update mixer, manager, proxy versions to include rate limit fixes
2. Remove mixer configmap. The default config is now baked inside mixer.
3. expose mixer metrics and configapi ports thru port forwarding.
4. Add "wrk" for testing. drive traffic and fetch metrics as a setup for full
5. ratelimit integration test. That PR will follow.

* Add ingress service for correct status IP

* Support for istio-ca in tests/updateVersion.sh (#180)

* Update updateVersion.sh to take into account istio-ca

* Updates with updateVersion.sh

* Create README.md for e2e test framework (#182)

* Create README.md for e2e test framework

* small change

Former-commit-id: 0adf4c4
mandarjog pushed a commit that referenced this pull request Oct 31, 2017
Secure naming is handled by the discovery service of #istio/pilot
mandarjog pushed a commit that referenced this pull request Oct 31, 2017
* Disable routing test until it stops being flaky

* dislike bash
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
* Initial version

* Refactor for better testing

* Update framework for testing and added test

* Bazelify istio

* Simplified interfaces

* Refactor code to use Cleanable interface

* go formating (#140)

* go formating

* Updated Jenkinsfile to run tests

* Separate TestInfo to another module (#144)

* Separete TestInfo to another module

Implemented status file creation
Implemented log upload to cloud storage
Rename SetUp to Setup and TearDown to Teardown

* Add more info in TestStatus

* Rename InitLogging to InitGlog

* Resolving comments

* Return skipDir error on err

* Adding Code Checks + Fix them (#151)

* Not uploading logs_bucket_path flag is unset

* Added code checks

* Fix linter errors

* Update Jenkins to use a goBuildNode

* e2e test: Create namespace and deploy istio core and test app (#145)

* Create namespace and deploy namespace

* Get runtime source path

* Correct pr comments, add GetGateWay()

* Add default route test

* Add version routing tests, fix linter and fix comments on pr

* Add fault delay test and fix comments

* Add version migration test

* Add Hop App + testing (#162)

* Implemented echo App

* Adding test + refactoring

* Added more tests

* Resolved review comments

* Use slices instead of pointers to slices

* Fix formatting

* Merge master to e2e (#165)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Small doc updates. (#163)

* Demo test update + Docker file creation for Hop App (#172)

* Renamed default env const

* Added support for server update for version

* Added a binary for Hop + Docker Image

* WIP

* Modified kubernetes setup + demo test

* Fixed Jenkinsfile

* Fix comments

* Fix format

* Removing app_flag as set directly in template

* Fixed resp.close() was called on empty resp

* Moved test to their own folder

* Fixes e2e.sh

* Make e2e.sh more verbose

* Merge from istio:master, change install source to istio-install and setup istioctl (#175)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* Install istio from istio-install, add os x support and add setupIstioctl

* fix lineter

* Get rule files from demos/apps, istioctl cleanable and comments fix

* small change

* appManager cleanablization

* Merge master to e2e (#181)

* update version for testing (#147)

Also update quota descriptors

* Update copyright.

* use lowercase zipkin trace headers (#152)

* Add support for 1.6 with RBAC and change install to use one file. (#150)

* Added RBAC roles and bindings
* Script to generate merged configs for 1.5 and 1.6 - the 1.6 works wit rbac on or off. 

To avoid confusion, auth will be added in separate PR

* Update the tag for manager/proxy containers

* Port forward manager service and enable istio manager env var

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Run service port-forward in the background and tidy it up

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add yaml template for manager into istio-16.yaml

* Remove errant local

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver to istio manager deploy

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* added egress proxy to istio install folder to be referenced by istio.io docs

* bug fix

* Separate Istio CA installation from default.

Istio CA should not be installed by default.

Created istio-cluster-ca.yaml and istio-namespace-ca.yaml for deploying the
per-cluster and per-namespace CAs, so that users do not need to modify the files
for different use cases.

* Remove apiserver address

Signed-off-by: LIAM White <liamwhite@uk.ibm.com>

* Add apiserver and egress

* Fix Istio CA files to create namespace.

* Update one-off auth yaml files.

* Small doc updates. (#163)

* Improve Istio one-off yaml files for Istio auth.

* Fix links.

* Up the blanked rl to 5000, so it does not interfere with tests (#167)

* Rename istio-ingress-controller to istio-ingress

* Changed labels for ingress and ingress

* update to rule schema to reflect switch from double to duration (#168)

* update to rule schema to reflect switch from double to duration
* pointed to my dockerhub
* Updating istio version

* Regenerate

* Change in scripts

* update to gcr.io/istio-testing versions (#170)

1. Update mixer, manager, proxy versions to include rate limit fixes
2. Remove mixer configmap. The default config is now baked inside mixer.
3. expose mixer metrics and configapi ports thru port forwarding.
4. Add "wrk" for testing. drive traffic and fetch metrics as a setup for full
5. ratelimit integration test. That PR will follow.

* Add ingress service for correct status IP

* Support for istio-ca in tests/updateVersion.sh (#180)

* Update updateVersion.sh to take into account istio-ca

* Updates with updateVersion.sh

* Create README.md for e2e test framework (#182)

* Create README.md for e2e test framework

* small change

Former-commit-id: 0adf4c4
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
Secure naming is handled by the discovery service of #istio/pilot
guptasu pushed a commit to guptasu/istio that referenced this pull request Jun 11, 2018
rajusharma pushed a commit to rajusharma/istio that referenced this pull request Jul 2, 2019
howardjohn pushed a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
l8huang pushed a commit to l8huang/istio that referenced this pull request Jun 16, 2022
luksa pushed a commit to luksa/istio that referenced this pull request Oct 14, 2024
…ter-merge_upstream_istio_master-6253864e

Automator: merge upstream changes to openshift-service-mesh/istio@master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants