Upgrade kpt to v1.0-beta
Upgrades flux Kptfiles to be compatible with the new format required by kpt v1.0-beta. Also updates the README file to reflect new CLI command syntax and package update procedure. Closes: #598 Change-Id: I6da83aa662b4039a402614135662f4ce03dbe97a
This commit is contained in:
parent
3acead37a9
commit
3f4581a978
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
## How to Update
|
## How to Update
|
||||||
|
|
||||||
|
##### Note: kpt version 1.0.0-beta.8 is required
|
||||||
|
|
||||||
To update the version of upstream manifests used by a given function:
|
To update the version of upstream manifests used by a given function:
|
||||||
|
|
||||||
1. Update the versions (git refs) specified in the `dependencies` section
|
1. Update the git refs specified in the `upstream` section of the Kptfile in each of the function's `upstream` directory's subdirectories, e.g. `base/upstream/policies/Kptfile`.
|
||||||
of the Kptfile at the root of the function.
|
2. Save and commit the changes locally.
|
||||||
2. Run [`kpt pkg sync .`](https://github.com/GoogleContainerTools/kpt/blob/master/site/content/en/reference/pkg/sync/_index.md) from the root of the function.
|
3. Run [`kpt pkg update`](https://kpt.dev/reference/cli/pkg/update/) from the directory containing the modified Kptfile.
|
||||||
3. Update any container image references in VariableCatalogues to match
|
4. After updating a package, all resulting changes must be committed before updating any additional package.
|
||||||
these new versions.
|
5. Update any container image references in VariableCatalogues to match these new versions.
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
|
||||||
kind: Kptfile
|
|
||||||
dependencies:
|
|
||||||
- name: upstream/rbac
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/flux2"
|
|
||||||
directory: "manifests/rbac"
|
|
||||||
ref: "v0.5.1"
|
|
||||||
- name: upstream/policies
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/flux2"
|
|
||||||
directory: "manifests/policies"
|
|
||||||
ref: "v0.5.1"
|
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: policies
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
|
repo: https://github.com/fluxcd/flux2
|
||||||
|
directory: manifests/policies
|
||||||
|
ref: v0.5.1
|
||||||
|
updateStrategy: resource-merge
|
||||||
|
upstreamLock:
|
||||||
|
type: git
|
||||||
|
git:
|
||||||
|
repo: https://github.com/fluxcd/flux2
|
||||||
|
directory: manifests/policies
|
||||||
|
ref: v0.5.1
|
||||||
commit: 0ba6fc1b366bd6f2ce231d3ac8a95eac57ff8554
|
commit: 0ba6fc1b366bd6f2ce231d3ac8a95eac57ff8554
|
||||||
repo: https://github.com/fluxcd/flux2
|
pipeline: {}
|
||||||
directory: manifests/policies
|
|
||||||
ref: v0.5.1
|
|
||||||
dependencies:
|
|
||||||
- name: upstream/rbac
|
|
||||||
git:
|
|
||||||
repo: https://github.com/fluxcd/flux2
|
|
||||||
directory: manifests/rbac
|
|
||||||
ref: v0.5.1
|
|
||||||
- name: upstream/policies
|
|
||||||
git:
|
|
||||||
repo: https://github.com/fluxcd/flux2
|
|
||||||
directory: manifests/policies
|
|
||||||
ref: v0.5.1
|
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: rbac
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
|
repo: https://github.com/fluxcd/flux2
|
||||||
|
directory: manifests/rbac
|
||||||
|
ref: v0.5.1
|
||||||
|
updateStrategy: resource-merge
|
||||||
|
upstreamLock:
|
||||||
|
type: git
|
||||||
|
git:
|
||||||
|
repo: https://github.com/fluxcd/flux2
|
||||||
|
directory: manifests/rbac
|
||||||
|
ref: v0.5.1
|
||||||
commit: 0ba6fc1b366bd6f2ce231d3ac8a95eac57ff8554
|
commit: 0ba6fc1b366bd6f2ce231d3ac8a95eac57ff8554
|
||||||
repo: https://github.com/fluxcd/flux2
|
pipeline: {}
|
||||||
directory: manifests/rbac
|
|
||||||
ref: v0.5.1
|
|
||||||
dependencies:
|
|
||||||
- name: upstream/rbac
|
|
||||||
git:
|
|
||||||
repo: https://github.com/fluxcd/flux2
|
|
||||||
directory: manifests/rbac
|
|
||||||
ref: v0.5.1
|
|
||||||
- name: upstream/policies
|
|
||||||
git:
|
|
||||||
repo: https://github.com/fluxcd/flux2
|
|
||||||
directory: manifests/policies
|
|
||||||
ref: v0.5.1
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
|
||||||
kind: Kptfile
|
|
||||||
dependencies:
|
|
||||||
- name: upstream/crd
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/helm-controller"
|
|
||||||
directory: "config/crd"
|
|
||||||
ref: "v0.11.1"
|
|
||||||
- name: upstream/manager
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/helm-controller"
|
|
||||||
directory: "config/manager"
|
|
||||||
ref: "v0.11.1"
|
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: crd
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
commit: 9e983b746eb58201a46d8be77ddf58d903ce2e9d
|
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
repo: https://github.com/fluxcd/helm-controller
|
||||||
directory: config/crd
|
directory: config/crd
|
||||||
ref: v0.11.1
|
ref: v0.11.1
|
||||||
dependencies:
|
updateStrategy: resource-merge
|
||||||
- name: upstream/crd
|
upstreamLock:
|
||||||
|
type: git
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
repo: https://github.com/fluxcd/helm-controller
|
||||||
directory: config/crd
|
directory: config/crd
|
||||||
ref: v0.4.3
|
ref: v0.11.1
|
||||||
- name: upstream/manager
|
commit: 9e983b746eb58201a46d8be77ddf58d903ce2e9d
|
||||||
git:
|
pipeline: {}
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
|
||||||
directory: config/manager
|
|
||||||
ref: v0.4.3
|
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: manager
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
commit: 9e983b746eb58201a46d8be77ddf58d903ce2e9d
|
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
repo: https://github.com/fluxcd/helm-controller
|
||||||
directory: config/manager
|
directory: config/manager
|
||||||
ref: v0.11.1
|
ref: v0.11.1
|
||||||
dependencies:
|
updateStrategy: resource-merge
|
||||||
- name: upstream/crd
|
upstreamLock:
|
||||||
git:
|
type: git
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
|
||||||
directory: config/crd
|
|
||||||
ref: v0.4.3
|
|
||||||
- name: upstream/manager
|
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/fluxcd/helm-controller
|
repo: https://github.com/fluxcd/helm-controller
|
||||||
directory: config/manager
|
directory: config/manager
|
||||||
ref: v0.4.3
|
ref: v0.11.1
|
||||||
|
commit: 9e983b746eb58201a46d8be77ddf58d903ce2e9d
|
||||||
|
pipeline: {}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
|
||||||
kind: Kptfile
|
|
||||||
dependencies:
|
|
||||||
- name: upstream/crd
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/source-controller"
|
|
||||||
directory: "config/crd"
|
|
||||||
ref: "v0.15.3"
|
|
||||||
- name: upstream/manager
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/fluxcd/source-controller"
|
|
||||||
directory: "config/manager"
|
|
||||||
ref: "v0.15.3"
|
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: crd
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
commit: 5c170bfdc3cfba2b34e2be543ef2b6f3630e873b
|
|
||||||
repo: https://github.com/fluxcd/source-controller
|
repo: https://github.com/fluxcd/source-controller
|
||||||
directory: config/crd
|
directory: config/crd
|
||||||
ref: v0.15.3
|
ref: v0.15.3
|
||||||
dependencies:
|
updateStrategy: resource-merge
|
||||||
- name: upstream/crd
|
upstreamLock:
|
||||||
|
type: git
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/fluxcd/source-controller
|
repo: https://github.com/fluxcd/source-controller
|
||||||
directory: config/crd
|
directory: config/crd
|
||||||
ref: v0.5.2
|
ref: v0.15.3
|
||||||
- name: upstream/manager
|
commit: 5c170bfdc3cfba2b34e2be543ef2b6f3630e873b
|
||||||
git:
|
pipeline: {}
|
||||||
repo: https://github.com/fluxcd/source-controller
|
|
||||||
directory: config/manager
|
|
||||||
ref: v0.5.2
|
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
apiVersion: kpt.dev/v1alpha1
|
apiVersion: kpt.dev/v1
|
||||||
kind: Kptfile
|
kind: Kptfile
|
||||||
|
metadata:
|
||||||
|
name: manager
|
||||||
upstream:
|
upstream:
|
||||||
type: git
|
type: git
|
||||||
git:
|
git:
|
||||||
commit: 5c170bfdc3cfba2b34e2be543ef2b6f3630e873b
|
|
||||||
repo: https://github.com/fluxcd/source-controller
|
repo: https://github.com/fluxcd/source-controller
|
||||||
directory: config/manager
|
directory: config/manager
|
||||||
ref: v0.15.3
|
ref: v0.15.3
|
||||||
dependencies:
|
updateStrategy: resource-merge
|
||||||
- name: upstream/crd
|
upstreamLock:
|
||||||
git:
|
type: git
|
||||||
repo: https://github.com/fluxcd/source-controller
|
|
||||||
directory: config/crd
|
|
||||||
ref: v0.5.2
|
|
||||||
- name: upstream/manager
|
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/fluxcd/source-controller
|
repo: https://github.com/fluxcd/source-controller
|
||||||
directory: config/manager
|
directory: config/manager
|
||||||
ref: v0.5.2
|
ref: v0.15.3
|
||||||
|
commit: 5c170bfdc3cfba2b34e2be543ef2b6f3630e873b
|
||||||
|
pipeline: {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user