Skip to content

Commit

Permalink
Post v1.10.1 updates (#356)
Browse files Browse the repository at this point in the history
* Assign changelog entries to v1.10.1
* Update version in deploy/ projects

Signed-off-by: Michael Bridgen <[email protected]>
  • Loading branch information
squaremo authored Oct 25, 2022
1 parent 3974c96 commit ad8276f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ CHANGELOG

## HEAD (Unreleased)

## 1.10.1 (2022-10-25)

- Give an example of using this operator with a Flux GitRepository and webhooks, in
`examples/flux-source`.
[#339](https://github.com/pulumi/pulumi-kubernetes-operator/pull/339)
Expand Down
4 changes: 2 additions & 2 deletions deploy/deploy-operator-cs/MyStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MyStack : Stack
public MyStack()
{
var crds = new Kubernetes.Yaml.ConfigFile("crds", new Kubernetes.Yaml.ConfigFileArgs{
File = "https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.0/deploy/crds/pulumi.com_stacks.yaml"
File = "https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.1/deploy/crds/pulumi.com_stacks.yaml"
});

var operatorServiceAccount = new Kubernetes.Core.V1.ServiceAccount("operator-service-account", new ServiceAccountArgs{});
Expand Down Expand Up @@ -223,7 +223,7 @@ public MyStack()
new ContainerArgs
{
Name = "pulumi-kubernetes-operator",
Image = "pulumi/pulumi-kubernetes-operator:v1.10.0",
Image = "pulumi/pulumi-kubernetes-operator:v1.10.1",
Command =
{
"pulumi-kubernetes-operator",
Expand Down
4 changes: 2 additions & 2 deletions deploy/deploy-operator-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Download file
filePath, cleanup, err := downloadFile("https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.0/deploy/crds/pulumi.com_stacks.yaml")
filePath, cleanup, err := downloadFile("https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.1/deploy/crds/pulumi.com_stacks.yaml")
if err != nil {
return err
}
Expand Down Expand Up @@ -203,7 +203,7 @@ func main() {
Containers: corev1.ContainerArray{
&corev1.ContainerArgs{
Name: pulumi.String("pulumi-kubernetes-operator"),
Image: pulumi.String("pulumi/pulumi-kubernetes-operator:v1.10.0"),
Image: pulumi.String("pulumi/pulumi-kubernetes-operator:v1.10.1"),
Command: pulumi.StringArray{
pulumi.String("pulumi-kubernetes-operator"),
},
Expand Down
4 changes: 2 additions & 2 deletions deploy/deploy-operator-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def f(o):
return f

crds = kubernetes.yaml.ConfigFile("crds",
file="https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.0/deploy/crds/pulumi.com_stacks.yaml",
file="https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.1/deploy/crds/pulumi.com_stacks.yaml",
transformations=[delete_status()])

operator_service_account = kubernetes.core.v1.ServiceAccount("operator-service-account")
Expand Down Expand Up @@ -135,7 +135,7 @@ def f(o):
"service_account_name": operator_service_account.metadata.name,
"containers": [{
"name": "pulumi-kubernetes-operator",
"image": "pulumi/pulumi-kubernetes-operator:v1.10.0",
"image": "pulumi/pulumi-kubernetes-operator:v1.10.1",
"command": ["pulumi-kubernetes-operator"],
"args": ["--zap-level=error", "--zap-time-encoding=iso8601"],
"image_pull_policy": "Always",
Expand Down
4 changes: 2 additions & 2 deletions deploy/deploy-operator-ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as pulumi from "@pulumi/pulumi";
import * as kubernetes from "@pulumi/kubernetes";

const crds = new kubernetes.yaml.ConfigFile("crds", {file: "https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.0/deploy/crds/pulumi.com_stacks.yaml"});
const crds = new kubernetes.yaml.ConfigFile("crds", {file: "https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/v1.10.1/deploy/crds/pulumi.com_stacks.yaml"});

const operatorServiceAccount = new kubernetes.core.v1.ServiceAccount("operator-service-account");
const operatorRole = new kubernetes.rbac.v1.Role("operator-role", {
Expand Down Expand Up @@ -127,7 +127,7 @@ const operatorDeployment = new kubernetes.apps.v1.Deployment("pulumi-kubernetes-
serviceAccountName: operatorServiceAccount.metadata.name,
containers: [{
name: "pulumi-kubernetes-operator",
image: "pulumi/pulumi-kubernetes-operator:v1.10.0",
image: "pulumi/pulumi-kubernetes-operator:v1.10.1",
args: ["--zap-level=error", "--zap-time-encoding=iso8601"],
imagePullPolicy: "Always",
env: [
Expand Down
2 changes: 1 addition & 1 deletion deploy/yaml/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
emptyDir: {}
containers:
- name: pulumi-kubernetes-operator
image: pulumi/pulumi-kubernetes-operator:v1.10.0
image: pulumi/pulumi-kubernetes-operator:v1.10.1
args:
- "--zap-level=error"
- "--zap-time-encoding=iso8601"
Expand Down
1 change: 1 addition & 0 deletions examples/flux-source/app/Pulumi.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config:
app:git-url: https://github.com/squaremo/pko-dev
app:stack-name: squaremo/basic/dev
6 changes: 4 additions & 2 deletions examples/flux-source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import * as kubernetes from "@pulumi/kubernetes";
import { ConfigGroup } from "@pulumi/kubernetes/yaml";
import * as flux from "@worawat/flux";

const defaultVersion = 'v1.10.1';

const config = new pulumi.Config();
const deployNamespace = config.get("namespace") || 'default';
const deployNamespaceList = config.getObject<string[]>("namespaces") || [deployNamespace];
const operatorVersion = config.get("operator-version") || "v1.10.0";
const crdVersion = config.get("crd-version") || "v1.10.0";
const operatorVersion = config.get("operator-version") || defaultVersion;
const crdVersion = config.get("crd-version") || defaultVersion;

// -- Flux installation

Expand Down

0 comments on commit ad8276f

Please sign in to comment.