diff --git a/Makefile b/Makefile index 38f99a59b0..0a9a930b74 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ KO = $(or ${KO_BIN},${KO_BIN},$(BIN)/ko) PIPELINES_VERSION ?= latest TRIGGERS_VERSION ?= latest DASHBOARD_VERSION ?= latest -RESULTS_VERSION ?= latest +RESULTS_VERSION ?= v0.3.1 # latest returns an older version hence hard coding to v0.3.1 for now (tektoncd/results#138) $(BIN)/ko: PACKAGE=github.com/google/ko/cmd/ko diff --git a/docs/TektonResult.md b/docs/TektonResult.md index 844a66263b..d4e9d4c6c8 100644 --- a/docs/TektonResult.md +++ b/docs/TektonResult.md @@ -20,7 +20,7 @@ To install Tekton Result on your cluster follow steps as given below: the following properties: - namespace: `tekton-pipelines` - - name: `tekton-results-mysql` + - name: `tekton-results-postgres` - contains the fields: - `user=root` - `password=` @@ -30,7 +30,7 @@ To install Tekton Result on your cluster follow steps as given below: Update namespace value in the command if Tekton Pipelines is installed in a different namespace.. ```sh - $ kubectl create secret generic tekton-results-mysql --namespace=tekton-pipelines --from-literal=user=root --from-literal=password=$(openssl rand -base64 20) + $ kubectl create secret generic tekton-results-postgres --namespace="tekton-pipelines" --from-literal=POSTGRES_USER=postgres --from-literal=POSTGRES_PASSWORD=$(openssl rand -base64 20) ``` - Generate cert/key pair. Note: Feel free to use any cert management software to do this! diff --git a/pkg/reconciler/kubernetes/tektonresult/tektonresult.go b/pkg/reconciler/kubernetes/tektonresult/tektonresult.go index 020037afee..69a8d45032 100644 --- a/pkg/reconciler/kubernetes/tektonresult/tektonresult.go +++ b/pkg/reconciler/kubernetes/tektonresult/tektonresult.go @@ -35,7 +35,7 @@ import ( ) const ( - DbSecretName = "tekton-results-mysql" + DbSecretName = "tekton-results-postgres" TlsSecretName = "tekton-results-tls" ) diff --git a/test/config.sh b/test/config.sh index 3b04b7534a..bf484c3327 100644 --- a/test/config.sh +++ b/test/config.sh @@ -1,4 +1,4 @@ export PIPELINES_VERSION=latest export TRIGGERS_VERSION=latest -export RESULTS_VERSION=latest +export RESULTS_VERSION=v0.3.1 export DASHBOARD_VERSION=latest diff --git a/test/e2e/kubernetes/tektonresultdeployment_test.go b/test/e2e/kubernetes/tektonresultdeployment_test.go index 46e739653d..6ff6a47953 100644 --- a/test/e2e/kubernetes/tektonresultdeployment_test.go +++ b/test/e2e/kubernetes/tektonresultdeployment_test.go @@ -125,8 +125,8 @@ func createSecret(t *testing.T, clients *utils.Clients, namespace string) { Name: tektonresult.DbSecretName, }, Data: map[string][]byte{ - "user": []byte("root"), - "password": []byte("test"), + "POSTGRES_USER": []byte("postgres"), + "POSTGRES_PASSWORD": []byte("test"), }, }