Introduction¶
With release v2 we also released a new api v1alpha2 which has a slightly changed definition.
Changes¶
Paas¶
The following has changed between v1alpha1.Paas and v1alpha2.Paas:
-
The following fields are removed from the Paas Capabilities (Paas.Spec.Capabilities):
enabled
: Remove field if set to true, or remove Capability when set to falsegitPath
,gitRevision
,gitUrl
: Rewrite to custom fields (note that in our examples in the config and conversion administrator guides we also change from camelCase to snake_case)sshSecrets
: Rename tosecrets
namespaces
: Rewrite from a list to a map
Example
This example of a v1alpha1 Paas
apiVersion: cpet.belastingdienst.nl/v1alpha1
kind: Paas
metadata:
name: tst-tst
spec:
capabilities:
argocd:
# this field should be removed
enabled: true
gitPath: .
gitRevision: main
gitUrl: https://www.github.com/my-org/my-repo/
quota:
limits.cpu: '32'
# `sshSecrets` should be changed to `secrets`
sshSecrets:
'ssh://git@my-git-host/my-git-repo.git': >-
2wkeKe...g==
# `grafana` is enabled and should stay but with empty definition
grafana:
enabled: true
# `tekton` is disabled and should be removed
tekton:
enabled: false
quota:
limits.cpu: '32'
# `sso` is disabled and should be removed
sso: {}
# `sshSecrets` should be changed to `secrets`
sshSecrets:
'ssh://git@my-git-host/my-git-repo.git': >-
2wkeKe...g==
# `namespaces` should be rewritten from list to map
namespaces:
- ns1
- ns2
Would be rewritten as:
apiVersion: cpet.belastingdienst.nl/v1alpha2
kind: Paas
metadata:
name: tst-tst
spec:
capabilities:
argocd:
quota:
limits.cpu: '32'
secrets:
'ssh://git@my-git-host/my-git-repo.git': >-
2wkeKe...g==
custom_fields:
git_path: .
git_revision: main
git_url: https://www.github.com/my-org/my-repo/
grafana: {}
secrets:
'ssh://git@my-git-host/my-git-repo.git': >-
2wkeKe...g==
namespaces:
ns1: {}
ns2: {}
PaasNS¶
The following has changed between v1alpha1 and v1alpha2 PaasNS:
sshSecrets
: Rename tosecrets
Example
This example of a v1alpha1 PaasNS
---
apiVersion: cpet.belastingdienst.nl/v1alpha1
kind: PaasNS
metadata:
name: my-ns
namespace: my-paas-argocd
spec:
# This field is not required in v1alpha2
paas: tst-tst
# sshSecrets should be rewritten to `secrets`
sshSecrets:
'ssh://git@my-git-host/my-git-repo.git': >-
2wkeKe...g==
Would be rewritten as follows