update crds
This commit is contained in:
@@ -247,7 +247,7 @@
|
||||
"type": "array"
|
||||
},
|
||||
"storage": {
|
||||
"description": "Storage defines if the source-controller shards\nshould use an emptyDir or a persistent volume claim for storage.\nAccepted values are 'ephemeral' or 'persistent', defaults to 'ephemeral'.\nFor 'persistent' to take effect, the '.spec.storage' field must be set.",
|
||||
"description": "Storage defines if the source-controller shards\nshould use an emptyDir or a persistent volume claim for storage.\nAccepted values are 'ephemeral' or 'persistent', defaults to 'ephemeral'.\nWhen set to 'persistent', the '.spec.storage' field must be set.",
|
||||
"enum": [
|
||||
"ephemeral",
|
||||
"persistent"
|
||||
@@ -314,7 +314,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"description": "Provider specifies OIDC provider for source authentication.\nFor OCIRepository and Bucket the provider can be set to 'aws', 'azure' or 'gcp'.\nfor GitRepository the accepted value can be set to 'azure' or 'github'.\nTo disable OIDC authentication the provider can be set to 'generic' or left empty.",
|
||||
"description": "Provider specifies OIDC provider for source authentication.\nFor OCIRepository and Bucket the provider can be set to 'aws', 'azure' or 'gcp'.\nFor GitRepository the provider can be set to 'aws' (requires Flux 2.9 or later),\n'azure' or 'github'.\nTo disable OIDC authentication the provider can be set to 'generic' or left empty.",
|
||||
"enum": [
|
||||
"generic",
|
||||
"aws",
|
||||
@@ -344,6 +344,16 @@
|
||||
"url"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": "sync.provider 'gcp' is only supported for OCIRepository and Bucket",
|
||||
"rule": "!has(self.provider) || self.provider != 'gcp' || self.kind == 'OCIRepository' || self.kind == 'Bucket'"
|
||||
},
|
||||
{
|
||||
"message": "sync.provider 'github' is only supported for GitRepository",
|
||||
"rule": "!has(self.provider) || self.provider != 'github' || self.kind == 'GitRepository'"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"wait": {
|
||||
@@ -356,6 +366,12 @@
|
||||
"distribution"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-validations": [
|
||||
{
|
||||
"message": ".spec.storage must be set when .spec.sharding.storage is 'persistent'",
|
||||
"rule": "!has(self.sharding) || !has(self.sharding.storage) || self.sharding.storage != 'persistent' || has(self.storage)"
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"status": {
|
||||
|
||||
Reference in New Issue
Block a user