Skip to content

Commit 2c5dc0f

Browse files
authored
Bump porter to v1.0.0-beta.1 (#107)
* Bump porter to v1.0.0-beta.1 Signed-off-by: Carolyn Van Slyck <[email protected]> * Bump deps for CVE-2022-1996 Signed-off-by: Carolyn Van Slyck <[email protected]> * go mod tidy again for reasons Signed-off-by: Carolyn Van Slyck <[email protected]>
1 parent 0a8db7f commit 2c5dc0f

20 files changed

+899
-562
lines changed

api/v1/const.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const (
1010
//
1111
// As we test out the operator with new versions of Porter, keep this value
1212
// up-to-date so that the default version is guaranteed to work.
13-
DefaultPorterAgentVersion = "v1.0.0-alpha.18"
13+
DefaultPorterAgentVersion = "v1.0.0-beta.1"
1414

1515
// LabelJobType is a label applied to jobs created by the operator. It
1616
// indicates the purpose of the job.

api/v1/credentialset_types_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package v1
33
import (
44
"testing"
55

6+
"get.porter.sh/porter/pkg/storage"
67
"github.com/stretchr/testify/assert"
78
"github.com/stretchr/testify/require"
89

@@ -30,7 +31,7 @@ func TestCredentialSetSpec_ToPorterDocument(t *testing.T) {
3031
}{
3132
{
3233
name: "golden file test",
33-
fields: fields{SchemaVersion: "1.0.1",
34+
fields: fields{SchemaVersion: string(storage.CredentialSetSchemaVersion),
3435
Name: "porter-test-me",
3536
Namespace: "dev",
3637
Credentials: []Credential{{

api/v1/installation_types_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package v1
33
import (
44
"testing"
55

6+
"get.porter.sh/porter/pkg/storage"
67
"get.porter.sh/porter/pkg/test"
78
"github.com/stretchr/testify/assert"
89
"github.com/stretchr/testify/require"
@@ -15,7 +16,7 @@ func TestInstallationSpec_ToPorterDocument(t *testing.T) {
1516
// Validate the special handling for the arbitrary parameters
1617
// which the CRD can't directly represent as map[string]interface{}
1718
spec := InstallationSpec{
18-
SchemaVersion: "1.0.0",
19+
SchemaVersion: string(storage.InstallationSchemaVersion),
1920
Name: "mybuns",
2021
Namespace: "dev",
2122
Bundle: OCIReferenceParts{

api/v1/parameterset_types_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package v1
33
import (
44
"testing"
55

6+
"get.porter.sh/porter/pkg/storage"
67
"github.com/stretchr/testify/assert"
78
"github.com/stretchr/testify/require"
89

@@ -30,7 +31,7 @@ func TestParameterSetSpec_ToPorterDocument(t *testing.T) {
3031
}{
3132
{
3233
name: "golden file test",
33-
fields: fields{SchemaVersion: "1.0.1",
34+
fields: fields{SchemaVersion: string(storage.ParameterSetSchemaVersion),
3435
Name: "porter-test-me",
3536
Namespace: "dev",
3637
Parameters: []Parameter{

api/v1/testdata/installation.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
schemaVersion: 1.0.0
1+
schemaVersion: 1.0.2
22
name: mybuns
33
namespace: dev
44
bundle:

config/crd/bases/porter.sh_agentactions.yaml

+406-385
Large diffs are not rendered by default.

config/samples/exec-outputs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
porter.sh/testdata: "true"
77
spec:
8-
schemaVersion: 1.0.0
8+
schemaVersion: 1.0.2
99
namespace: operator
1010
name: outputs
1111
bundle:

config/samples/hello-llama.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
porter.sh/testdata: "true"
77
spec:
8-
schemaVersion: 1.0.0
8+
schemaVersion: 1.0.2
99
namespace: operator
1010
name: mellama
1111
bundle:

config/samples/kubeflow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
porter.sh/testdata: "true"
77
spec:
8-
schemaVersion: 1.0.0
8+
schemaVersion: 1.0.2
99
namespace: operator
1010
name: kubeflow
1111
bundle:

config/samples/porter-hello.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
porter.sh/testdata: "true"
77
spec:
8-
schemaVersion: 1.0.0
8+
schemaVersion: 1.0.2
99
namespace: operator
1010
name: hello
1111
bundle:

docs/content/file-formats.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ metadata:
148148
name: customAgent
149149
spec:
150150
porterRepository: ghcr.io/getporter/porter-agent
151-
porterVersion: v1.0.0-alpha.18
151+
porterVersion: v1.0.0-beta.1
152152
serviceAccount: porter-agent
153153
volumeSize: 64Mi
154154
pullPolicy: Always

docs/content/install.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ title: Install the Porter Operator
33
description: Get up and running with the Porter Operator
44
---
55

6-
If you aren't already familiar with Porter, we recommend that you install and use [Porter v1.0.0-alpha.18][install-porter] first and then once you are comfortable, learn how to automate Porter with the operator.
6+
If you aren't already familiar with Porter, we recommend that you install and use [Porter v1.0.0-beta.1][install-porter] first and then once you are comfortable, learn how to automate Porter with the operator.
77

8-
The commands below use the v0.5.2 release, but there may be a more recent release of the Operator.
8+
The commands below use the v0.6.0 release, but there may be a more recent release of the Operator.
99
Check our [releases page](https://github.com/getporter/operator/releases) and use the most recent version number.
1010

1111
The Porter Operator is installed with ... Porter!
1212
First, use explain to see what credentials and parameters you can use when installing and configuring the operator.
1313

1414
```
15-
$ porter explain -r ghcr.io/getporter/porter-operator:v0.5.2
15+
$ porter explain -r ghcr.io/getporter/porter-operator:v0.6.0
1616
Name: porter-operator
1717
Description: The Porter Operator for Kubernetes. Execute bundles on a Kubernetes cluster.
18-
Version: 0.5.2
19-
Porter Version: v1.0.0-alpha.18
18+
Version: 0.6.0
19+
Porter Version: v1.0.0-beta.1
2020
2121
Credentials:
2222
---------------------------------------------------------------------
@@ -86,17 +86,17 @@ This bundle uses the following tools: exec, helm3, kubernetes.
8686
8787
To install this bundle run the following command, passing --param KEY=VALUE for any parameters you want to customize:
8888
porter credentials generate mycreds --reference ghcr.io/getporter/porter-operator:v0.5.0
89-
porter install --reference ghcr.io/getporter/porter-operator:v0.5.2 --cred mycreds
89+
porter install --reference ghcr.io/getporter/porter-operator:v0.6.0 --cred mycreds
9090
```
9191

9292
Generate a credential set for the bundle, the only required credential for the operator is a kubeconfig for the cluster that the operator is to be installed in.
9393
```
94-
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.5.2
94+
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.6.0
9595
```
9696

9797
Install the operator into the porter-operator-system namespace:
9898
```
99-
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.5.2
99+
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.6.0
100100
```
101101

102102
Create a namespace with the appropriate RBAC and configuration. This namespace is where you will create installation CRDs and the operator will create corresponding Jobs to execute the porter CLI.

docs/content/quickstart/_index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ In this QuickStart you will learn how to install and use the [Porter Operator] o
2020
The Porter Operator is installed using Porter, and requires an existing Kubernetes cluster.
2121
First, generate a credential set that points to the location of your kubeconfig file, for example using the path $HOME/.kube/config.
2222

23-
The commands below use the v0.5.2 release, but there may be a more recent release of the Operator.
23+
The commands below use the v0.6.0 release, but there may be a more recent release of the Operator.
2424
Check our [releases page](https://github.com/getporter/operator/releases) and use the most recent version number.
2525

2626
```
27-
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.5.2
27+
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.6.0
2828
```
2929

3030
Now that Porter knows which cluster to target, install the Operator with the following command:
3131

3232
```
33-
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.5.2
33+
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.6.0
3434
```
3535

3636
Before you use the operator, you need to configure a Kubernetes namespace with the necessary configuration.
@@ -95,7 +95,7 @@ Let's create an installation resource that specifies that we want to have the ge
9595
name: hello-llama
9696
namespace: quickstart
9797
spec:
98-
schemaVersion: 1.0.0
98+
schemaVersion: 1.0.2
9999
namespace: quickstart
100100
name: mellama
101101
bundle:
@@ -146,7 +146,7 @@ Now that our bundle is installed, let's make some changes to trigger an upgrade.
146146
name: hello-llama
147147
namespace: quickstart
148148
spec:
149-
schemaVersion: 1.0.0
149+
schemaVersion: 1.0.2
150150
namespace: quickstart
151151
name: mellama
152152
bundle:
@@ -231,7 +231,7 @@ Let's walk through the second method in detail.
231231
namespace: quickstart
232232
spec:
233233
uninstalled: true
234-
schemaVersion: 1.0.0
234+
schemaVersion: 1.0.2
235235
namespace: quickstart
236236
name: mellama
237237
# Contents truncated because they aren't relevant to uninstall

docs/content/quickstart/llama.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: hello-llama
55
namespace: quickstart
66
spec:
7-
schemaVersion: 1.0.0
7+
schemaVersion: 1.0.2
88
namespace: quickstart
99
name: mellama
1010
bundle:

0 commit comments

Comments
 (0)