Upgrade CRD to apiextensions.k8s.io/v1

Signed-off-by: Matteo Ruina <matteo.ruina@gmail.com>
This commit is contained in:
Matteo Ruina 2021-02-19 09:38:59 +01:00
parent 3516182792
commit 83e50cbe8c
No known key found for this signature in database
GPG key ID: 8F558D438714A98F

View file

@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
@ -12,7 +12,9 @@ spec:
plural: applicationsets
singular: applicationset
scope: Namespaced
validation:
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ApplicationSet is a set of Application resources
properties:
@ -29,7 +31,8 @@ spec:
metadata:
type: object
spec:
description: ApplicationSetSpec represents a class of application set state.
description: ApplicationSetSpec represents a class of application set
state.
properties:
generators:
items:
@ -40,10 +43,10 @@ spec:
clusters registered with ArgoCD.
properties:
selector:
description: Selector defines a label selector to match against
all clusters registered with ArgoCD. Clusters today are
stored as Kubernetes Secrets, thus the Secret labels will
be used for matching the selector.
description: Selector defines a label selector to match
against all clusters registered with ArgoCD. Clusters
today are stored as Kubernetes Secrets, thus the Secret
labels will be used for matching the selector.
properties:
matchExpressions:
description: matchExpressions is a list of label selector
@ -59,14 +62,14 @@ spec:
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn,
Exists and DoesNotExist.
to a set of values. Valid operators are In,
NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values.
If the operator is In or NotIn, the values array
must be non-empty. If the operator is Exists or
DoesNotExist, the values array must be empty.
must be non-empty. If the operator is Exists
or DoesNotExist, the values array must be empty.
This array is replaced during a strategic merge
patch.
items:
@ -82,15 +85,31 @@ spec:
type: string
description: matchLabels is a map of {key,value} pairs.
A single {key,value} in the matchLabels map is equivalent
to an element of matchExpressions, whose key field is
"key", the operator is "In", and the values array contains
only "value". The requirements are ANDed.
to an element of matchExpressions, whose key field
is "key", the operator is "In", and the values array
contains only "value". The requirements are ANDed.
type: object
type: object
template:
description: ApplicationSetTemplate represents argocd ApplicationSpec
properties:
metadata:
description: ApplicationSetTemplateMeta represents the
Argo CD application fields that may be used for Applications
generated from the ApplicationSet (based on metav1.ObjectMeta)
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: ApplicationSpec represents desired application
@ -104,8 +123,9 @@ spec:
ksonnet app.yaml
properties:
name:
description: Name of the destination cluster which
can be used instead of server (url) field
description: Name of the destination cluster
which can be used instead of server (url)
field
type: string
namespace:
description: Namespace overrides the environment
@ -121,8 +141,9 @@ spec:
fields which should be ignored during comparison
items:
description: ResourceIgnoreDifferences contains
resource filter and list of json paths which should
be ignored during comparison with live state.
resource filter and list of json paths which
should be ignored during comparison with live
state.
properties:
group:
type: string
@ -163,12 +184,12 @@ spec:
type: string
revisionHistoryLimit:
description: This limits this number of items kept
in the apps revision history. This should only be
changed in exceptional circumstances. Setting to
zero will store no history. This will reduce storage
used. Increasing will increase the space used to
store the history, so we do not recommend increasing
it. Default is 10.
in the apps revision history. This should only
be changed in exceptional circumstances. Setting
to zero will store no history. This will reduce
storage used. Increasing will increase the space
used to store the history, so we do not recommend
increasing it. Default is 10.
format: int64
type: integer
source:
@ -179,8 +200,8 @@ spec:
description: Chart is a Helm chart name
type: string
directory:
description: Directory holds path/directory specific
options
description: Directory holds path/directory
specific options
properties:
exclude:
type: string
@ -291,12 +312,13 @@ spec:
defined as a block
type: string
version:
description: Version is the Helm version to
use for templating with
description: Version is the Helm version
to use for templating with
type: string
type: object
ksonnet:
description: Ksonnet holds ksonnet specific options
description: Ksonnet holds ksonnet specific
options
properties:
environment:
description: Environment is a ksonnet application
@ -338,7 +360,8 @@ spec:
kustomize commonLabels
type: object
images:
description: Images are kustomize image overrides
description: Images are kustomize image
overrides
items:
type: string
type: array
@ -356,8 +379,8 @@ spec:
type: string
type: object
path:
description: Path is a directory path within the
Git repository
description: Path is a directory path within
the Git repository
type: string
plugin:
description: ConfigManagementPlugin holds config
@ -405,8 +428,9 @@ spec:
zero live resources (default: false)'
type: boolean
prune:
description: 'Prune will prune resources automatically
as part of automated sync (default: false)'
description: 'Prune will prune resources
automatically as part of automated sync
(default: false)'
type: boolean
selfHeal:
description: 'SelfHeal enables auto-syncing
@ -421,10 +445,10 @@ spec:
description: Backoff is a backoff strategy
properties:
duration:
description: Duration is the amount to
back off. Default unit is seconds, but
could also be a duration (e.g. "2m",
"1h")
description: Duration is the amount
to back off. Default unit is seconds,
but could also be a duration (e.g.
"2m", "1h")
type: string
factor:
description: Factor is a factor to multiply
@ -439,8 +463,8 @@ spec:
type: string
type: object
limit:
description: Limit is the maximum number of
attempts when retrying a container
description: Limit is the maximum number
of attempts when retrying a container
format: int64
type: integer
type: object
@ -498,6 +522,22 @@ spec:
description: ApplicationSetTemplate represents argocd ApplicationSpec
properties:
metadata:
description: ApplicationSetTemplateMeta represents the
Argo CD application fields that may be used for Applications
generated from the ApplicationSet (based on metav1.ObjectMeta)
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: ApplicationSpec represents desired application
@ -511,8 +551,9 @@ spec:
ksonnet app.yaml
properties:
name:
description: Name of the destination cluster which
can be used instead of server (url) field
description: Name of the destination cluster
which can be used instead of server (url)
field
type: string
namespace:
description: Namespace overrides the environment
@ -528,8 +569,9 @@ spec:
fields which should be ignored during comparison
items:
description: ResourceIgnoreDifferences contains
resource filter and list of json paths which should
be ignored during comparison with live state.
resource filter and list of json paths which
should be ignored during comparison with live
state.
properties:
group:
type: string
@ -570,12 +612,12 @@ spec:
type: string
revisionHistoryLimit:
description: This limits this number of items kept
in the apps revision history. This should only be
changed in exceptional circumstances. Setting to
zero will store no history. This will reduce storage
used. Increasing will increase the space used to
store the history, so we do not recommend increasing
it. Default is 10.
in the apps revision history. This should only
be changed in exceptional circumstances. Setting
to zero will store no history. This will reduce
storage used. Increasing will increase the space
used to store the history, so we do not recommend
increasing it. Default is 10.
format: int64
type: integer
source:
@ -586,8 +628,8 @@ spec:
description: Chart is a Helm chart name
type: string
directory:
description: Directory holds path/directory specific
options
description: Directory holds path/directory
specific options
properties:
exclude:
type: string
@ -698,12 +740,13 @@ spec:
defined as a block
type: string
version:
description: Version is the Helm version to
use for templating with
description: Version is the Helm version
to use for templating with
type: string
type: object
ksonnet:
description: Ksonnet holds ksonnet specific options
description: Ksonnet holds ksonnet specific
options
properties:
environment:
description: Environment is a ksonnet application
@ -745,7 +788,8 @@ spec:
kustomize commonLabels
type: object
images:
description: Images are kustomize image overrides
description: Images are kustomize image
overrides
items:
type: string
type: array
@ -763,8 +807,8 @@ spec:
type: string
type: object
path:
description: Path is a directory path within the
Git repository
description: Path is a directory path within
the Git repository
type: string
plugin:
description: ConfigManagementPlugin holds config
@ -812,8 +856,9 @@ spec:
zero live resources (default: false)'
type: boolean
prune:
description: 'Prune will prune resources automatically
as part of automated sync (default: false)'
description: 'Prune will prune resources
automatically as part of automated sync
(default: false)'
type: boolean
selfHeal:
description: 'SelfHeal enables auto-syncing
@ -828,10 +873,10 @@ spec:
description: Backoff is a backoff strategy
properties:
duration:
description: Duration is the amount to
back off. Default unit is seconds, but
could also be a duration (e.g. "2m",
"1h")
description: Duration is the amount
to back off. Default unit is seconds,
but could also be a duration (e.g.
"2m", "1h")
type: string
factor:
description: Factor is a factor to multiply
@ -846,8 +891,8 @@ spec:
type: string
type: object
limit:
description: Limit is the maximum number of
attempts when retrying a container
description: Limit is the maximum number
of attempts when retrying a container
format: int64
type: integer
type: object
@ -876,8 +921,8 @@ spec:
properties:
elements:
items:
description: ListGeneratorElement include cluster and url
info
description: ListGeneratorElement include cluster and
url info
properties:
cluster:
type: string
@ -886,8 +931,8 @@ spec:
values:
additionalProperties:
type: string
description: Values contains key/value pairs which are
passed directly as parameters to the template
description: Values contains key/value pairs which
are passed directly as parameters to the template
type: object
required:
- cluster
@ -898,6 +943,22 @@ spec:
description: ApplicationSetTemplate represents argocd ApplicationSpec
properties:
metadata:
description: ApplicationSetTemplateMeta represents the
Argo CD application fields that may be used for Applications
generated from the ApplicationSet (based on metav1.ObjectMeta)
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: ApplicationSpec represents desired application
@ -911,8 +972,9 @@ spec:
ksonnet app.yaml
properties:
name:
description: Name of the destination cluster which
can be used instead of server (url) field
description: Name of the destination cluster
which can be used instead of server (url)
field
type: string
namespace:
description: Namespace overrides the environment
@ -928,8 +990,9 @@ spec:
fields which should be ignored during comparison
items:
description: ResourceIgnoreDifferences contains
resource filter and list of json paths which should
be ignored during comparison with live state.
resource filter and list of json paths which
should be ignored during comparison with live
state.
properties:
group:
type: string
@ -970,12 +1033,12 @@ spec:
type: string
revisionHistoryLimit:
description: This limits this number of items kept
in the apps revision history. This should only be
changed in exceptional circumstances. Setting to
zero will store no history. This will reduce storage
used. Increasing will increase the space used to
store the history, so we do not recommend increasing
it. Default is 10.
in the apps revision history. This should only
be changed in exceptional circumstances. Setting
to zero will store no history. This will reduce
storage used. Increasing will increase the space
used to store the history, so we do not recommend
increasing it. Default is 10.
format: int64
type: integer
source:
@ -986,8 +1049,8 @@ spec:
description: Chart is a Helm chart name
type: string
directory:
description: Directory holds path/directory specific
options
description: Directory holds path/directory
specific options
properties:
exclude:
type: string
@ -1098,12 +1161,13 @@ spec:
defined as a block
type: string
version:
description: Version is the Helm version to
use for templating with
description: Version is the Helm version
to use for templating with
type: string
type: object
ksonnet:
description: Ksonnet holds ksonnet specific options
description: Ksonnet holds ksonnet specific
options
properties:
environment:
description: Environment is a ksonnet application
@ -1145,7 +1209,8 @@ spec:
kustomize commonLabels
type: object
images:
description: Images are kustomize image overrides
description: Images are kustomize image
overrides
items:
type: string
type: array
@ -1163,8 +1228,8 @@ spec:
type: string
type: object
path:
description: Path is a directory path within the
Git repository
description: Path is a directory path within
the Git repository
type: string
plugin:
description: ConfigManagementPlugin holds config
@ -1212,8 +1277,9 @@ spec:
zero live resources (default: false)'
type: boolean
prune:
description: 'Prune will prune resources automatically
as part of automated sync (default: false)'
description: 'Prune will prune resources
automatically as part of automated sync
(default: false)'
type: boolean
selfHeal:
description: 'SelfHeal enables auto-syncing
@ -1228,10 +1294,10 @@ spec:
description: Backoff is a backoff strategy
properties:
duration:
description: Duration is the amount to
back off. Default unit is seconds, but
could also be a duration (e.g. "2m",
"1h")
description: Duration is the amount
to back off. Default unit is seconds,
but could also be a duration (e.g.
"2m", "1h")
type: string
factor:
description: Factor is a factor to multiply
@ -1246,8 +1312,8 @@ spec:
type: string
type: object
limit:
description: Limit is the maximum number of
attempts when retrying a container
description: Limit is the maximum number
of attempts when retrying a container
format: int64
type: integer
type: object
@ -1277,30 +1343,46 @@ spec:
will relate to their ApplicationSet.
properties:
skipPrune:
description: SkipPrune will disable the default behavior which will
delete Applications that are no longer being generated for the
ApplicationSet which created them, or the ApplicationSet itself
is deleted. If SkipPrune is set to true, these Applications will
be orphaned but continue to exist.
description: SkipPrune will disable the default behavior which
will delete Applications that are no longer being generated
for the ApplicationSet which created them, or the ApplicationSet
itself is deleted. If SkipPrune is set to true, these Applications
will be orphaned but continue to exist.
type: boolean
type: object
template:
description: ApplicationSetTemplate represents argocd ApplicationSpec
properties:
metadata:
description: ApplicationSetTemplateMeta represents the Argo CD
application fields that may be used for Applications generated
from the ApplicationSet (based on metav1.ObjectMeta)
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: ApplicationSpec represents desired application state.
Contains link to repository with application definition and additional
parameters link definition revision.
Contains link to repository with application definition and
additional parameters link definition revision.
properties:
destination:
description: Destination overrides the kubernetes server and
namespace defined in the environment ksonnet app.yaml
properties:
name:
description: Name of the destination cluster which can be
used instead of server (url) field
description: Name of the destination cluster which can
be used instead of server (url) field
type: string
namespace:
description: Namespace overrides the environment namespace
@ -1315,9 +1397,9 @@ spec:
description: IgnoreDifferences controls resources fields which
should be ignored during comparison
items:
description: ResourceIgnoreDifferences contains resource filter
and list of json paths which should be ignored during comparison
with live state.
description: ResourceIgnoreDifferences contains resource
filter and list of json paths which should be ignored
during comparison with live state.
properties:
group:
type: string
@ -1351,12 +1433,12 @@ spec:
type: object
type: array
project:
description: Project is a application project name. Empty name
means that application belongs to 'default' project.
description: Project is a application project name. Empty
name means that application belongs to 'default' project.
type: string
revisionHistoryLimit:
description: This limits this number of items kept in the apps
revision history. This should only be changed in exceptional
description: This limits this number of items kept in the
apps revision history. This should only be changed in exceptional
circumstances. Setting to zero will store no history. This
will reduce storage used. Increasing will increase the space
used to store the history, so we do not recommend increasing
@ -1364,8 +1446,8 @@ spec:
format: int64
type: integer
source:
description: Source is a reference to the location ksonnet application
definition
description: Source is a reference to the location ksonnet
application definition
properties:
chart:
description: Chart is a Helm chart name
@ -1426,8 +1508,8 @@ spec:
description: Helm holds helm specific options
properties:
fileParameters:
description: FileParameters are file parameters to the
helm template
description: FileParameters are file parameters to
the helm template
items:
description: HelmFileParameter is a file parameter
to a helm template
@ -1436,33 +1518,35 @@ spec:
description: Name is the name of the helm parameter
type: string
path:
description: Path is the path value for the helm
parameter
description: Path is the path value for the
helm parameter
type: string
type: object
type: array
parameters:
description: Parameters are parameters to the helm template
description: Parameters are parameters to the helm
template
items:
description: HelmParameter is a parameter to a helm
template
properties:
forceString:
description: ForceString determines whether to
tell Helm to interpret booleans and numbers
description: ForceString determines whether
to tell Helm to interpret booleans and numbers
as strings
type: boolean
name:
description: Name is the name of the helm parameter
type: string
value:
description: Value is the value for the helm parameter
description: Value is the value for the helm
parameter
type: string
type: object
type: array
releaseName:
description: The Helm release name. If omitted it will
use the application name
description: The Helm release name. If omitted it
will use the application name
type: string
valueFiles:
description: ValuesFiles is a list of Helm value files
@ -1483,8 +1567,8 @@ spec:
description: Ksonnet holds ksonnet specific options
properties:
environment:
description: Environment is a ksonnet application environment
name
description: Environment is a ksonnet application
environment name
type: string
parameters:
description: Parameters are a list of ksonnet component
@ -1577,8 +1661,8 @@ spec:
description: SyncPolicy controls when a sync will be performed
properties:
automated:
description: Automated will keep an application synced to
the target revision
description: Automated will keep an application synced
to the target revision
properties:
allowEmpty:
description: 'AllowEmpty allows apps have zero live
@ -1601,8 +1685,8 @@ spec:
properties:
duration:
description: Duration is the amount to back off.
Default unit is seconds, but could also be a duration
(e.g. "2m", "1h")
Default unit is seconds, but could also be a
duration (e.g. "2m", "1h")
type: string
factor:
description: Factor is a factor to multiply the
@ -1610,8 +1694,8 @@ spec:
format: int64
type: integer
maxDuration:
description: MaxDuration is the maximum amount of
time allowed for the backoff strategy
description: MaxDuration is the maximum amount
of time allowed for the backoff strategy
type: string
type: object
limit:
@ -1646,9 +1730,6 @@ spec:
- metadata
- spec
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status: