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