Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update porter and operator to the most recent releases #130

Merged
merged 1 commit into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v1/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
//
// As we test out the operator with new versions of Porter, keep this value
// up-to-date so that the default version is guaranteed to work.
DefaultPorterAgentVersion = "v1.0.0-rc.1"
DefaultPorterAgentVersion = "v1.0.2"

// LabelJobType is a label applied to jobs created by the operator. It
// indicates the purpose of the job.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/file-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ metadata:
name: customAgent
spec:
porterRepository: ghcr.io/getporter/porter-agent
porterVersion: v1.0.0-rc.1
porterVersion: v1.0.0
serviceAccount: porter-agent
volumeSize: 64Mi
pullPolicy: Always
Expand Down
16 changes: 8 additions & 8 deletions docs/content/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ title: Install the Porter Operator
description: Get up and running with the Porter Operator
---

If you aren't already familiar with Porter, we recommend that you install and use [Porter v1.0.0-rc.1][install-porter] first and then once you are comfortable, learn how to automate Porter with the operator.
If you aren't already familiar with Porter, we recommend that you install and use the most recent version of [Porter v1][install-porter] first and then once you are comfortable, learn how to automate Porter with the operator.

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

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

```
$ porter explain -r ghcr.io/getporter/porter-operator:v0.7.1
$ porter explain -r ghcr.io/getporter/porter-operator:v0.7.2
Name: porter-operator
Description: The Porter Operator for Kubernetes. Execute bundles on a Kubernetes cluster.
Version: v0.7.1
Porter Version: v1.0.0-rc.1
Version: v0.7.2
Porter Version: v1.0.0

Credentials:
---------------------------------------------------------------------
Expand Down Expand Up @@ -86,17 +86,17 @@ This bundle uses the following tools: exec, helm3, kubernetes.

To install this bundle run the following command, passing --param KEY=VALUE for any parameters you want to customize:
porter credentials generate mycreds --reference ghcr.io/getporter/porter-operator:v0.5.0
porter install --reference ghcr.io/getporter/porter-operator:v0.7.1 -c mycreds
porter install --reference ghcr.io/getporter/porter-operator:v0.7.2 -c mycreds
```

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.
```
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.7.1
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.7.2
```

Install the operator into the porter-operator-system namespace:
```
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.7.1
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.7.2
```

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.
Expand Down
4 changes: 2 additions & 2 deletions docs/content/quickstart/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ The commands below use the v0.7.1 release, but there may be a more recent releas
Check our [releases page](https://github.com/getporter/operator/releases) and use the most recent version number.

```
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.7.1
porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v0.7.2
```

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

```
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.7.1
porter install porterops -c porterops -r ghcr.io/getporter/porter-operator:v0.7.2
```

Before you use the operator, you need to configure a Kubernetes namespace with the necessary configuration.
Expand Down
8 changes: 4 additions & 4 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func getPlugins() error {
feed string
version string
}{
{name: "kubernetes", feed: "https://cdn.porter.sh/plugins/atom.xml", version: "v1.0.0-rc.1"},
{name: "kubernetes", feed: "https://cdn.porter.sh/plugins/atom.xml", version: "v1.0.1"},
}
var errG errgroup.Group
for _, plugin := range plugins {
Expand Down Expand Up @@ -192,9 +192,9 @@ func getMixins() error {
feed string
version string
}{
{name: "helm3", feed: "https://mchorfa.github.io/porter-helm3/atom.xml", version: "v1.0.0-rc.1"},
{name: "kubernetes", feed: "https://cdn.porter.sh/mixins/atom.xml", version: "v1.0.0-rc.1"},
{name: "exec", feed: "https://cdn.porter.sh/mixins/atom.xml", version: "v1.0.0-rc.1"},
{name: "helm3", feed: "https://mchorfa.github.io/porter-helm3/atom.xml", version: "v1.0.0"},
{name: "kubernetes", feed: "https://cdn.porter.sh/mixins/atom.xml", version: "v1.0.0"},
{name: "exec", feed: "https://cdn.porter.sh/mixins/atom.xml", version: "v1.0.2"},
}
var errG errgroup.Group
for _, mixin := range mixins {
Expand Down