Skip to content

Commit

Permalink
Feat: add property spec.distribution.common.networkPoliciesEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Bruzzese committed Oct 31, 2024
1 parent 718217b commit 9bd1d6a
Show file tree
Hide file tree
Showing 14 changed files with 118 additions and 48 deletions.
2 changes: 1 addition & 1 deletion defaults/ekscluster-kfd-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
relativeVendorPath: "../../vendor"
provider:
type: eks

networkPoliciesEnabled: false
# the module section will be used to fine tune each module behaviour and configuration
modules:
# ingress module configuration
Expand Down
2 changes: 1 addition & 1 deletion defaults/kfddistribution-kfd-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
relativeVendorPath: "../../vendor"
provider:
type: none

networkPoliciesEnabled: false
# the module section will be used to fine tune each module behaviour and configuration
modules:
# ingress module configuration
Expand Down
2 changes: 1 addition & 1 deletion defaults/onpremises-kfd-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
relativeVendorPath: "../../vendor"
provider:
type: none

networkPoliciesEnabled: false
# the module section will be used to fine tune each module behaviour and configuration
modules:
# ingress module configuration
Expand Down
44 changes: 29 additions & 15 deletions docs/schemas/ekscluster-kfd-v1alpha2.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,20 @@ A Fury Cluster deployed through AWS's Elastic Kubernetes Service

### Properties

| Property | Type | Required |
|:----------------------------------------------------------------|:---------|:---------|
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |
| Property | Type | Required |
|:------------------------------------------------------------------------|:----------|:---------|
| [networkPoliciesEnabled](#specdistributioncommonnetworkpoliciesenabled) | `boolean` | Optional |
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |

## .spec.distribution.common.networkPoliciesEnabled

### Description

This field defines whether Network Policies are provided for all modules

## .spec.distribution.common.nodeSelector

Expand Down Expand Up @@ -5474,21 +5481,28 @@ Overrides the default IAM role name prefix for the EKS workers

### Properties

| Property | Type | Required |
|:-----------------------------------------------|:---------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |
| Property | Type | Required |
|:---------------------------------------------------------------------------------|:----------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [disableValidationOnInstall](#specpluginshelmreleasesdisablevalidationoninstall) | `boolean` | Optional |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |

## .spec.plugins.helm.releases.chart

### Description

The chart of the release

## .spec.plugins.helm.releases.disableValidationOnInstall

### Description

Disable running `helm diff` validation when installing the plugin, it will still be done when upgrading.

## .spec.plugins.helm.releases.name

### Description
Expand Down
44 changes: 29 additions & 15 deletions docs/schemas/kfddistribution-kfd-v1alpha2.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ An example file can be found [here](https://github.com/sighupio/fury-distributio

### Properties

| Property | Type | Required |
|:----------------------------------------------------------------|:---------|:---------|
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |
| Property | Type | Required |
|:------------------------------------------------------------------------|:----------|:---------|
| [networkPoliciesEnabled](#specdistributioncommonnetworkpoliciesenabled) | `boolean` | Optional |
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |

## .spec.distribution.common.networkPoliciesEnabled

### Description

This field defines whether Network Policies are provided for all modules

## .spec.distribution.common.nodeSelector

Expand Down Expand Up @@ -4102,21 +4109,28 @@ The type of tracing to use, either ***none*** or ***tempo***

### Properties

| Property | Type | Required |
|:-----------------------------------------------|:---------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |
| Property | Type | Required |
|:---------------------------------------------------------------------------------|:----------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [disableValidationOnInstall](#specpluginshelmreleasesdisablevalidationoninstall) | `boolean` | Optional |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |

## .spec.plugins.helm.releases.chart

### Description

The chart of the release

## .spec.plugins.helm.releases.disableValidationOnInstall

### Description

Disable running `helm diff` validation when installing the plugin, it will still be done when upgrading.

## .spec.plugins.helm.releases.name

### Description
Expand Down
44 changes: 29 additions & 15 deletions docs/schemas/onpremises-kfd-v1alpha2.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,25 @@ The name of the cluster. It will also be used as a prefix for all the other reso

### Properties

| Property | Type | Required |
|:----------------------------------------------------------------|:---------|:---------|
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |
| Property | Type | Required |
|:------------------------------------------------------------------------|:----------|:---------|
| [networkPoliciesEnabled](#specdistributioncommonnetworkpoliciesenabled) | `boolean` | Optional |
| [nodeSelector](#specdistributioncommonnodeselector) | `object` | Optional |
| [provider](#specdistributioncommonprovider) | `object` | Optional |
| [registry](#specdistributioncommonregistry) | `string` | Optional |
| [relativeVendorPath](#specdistributioncommonrelativevendorpath) | `string` | Optional |
| [tolerations](#specdistributioncommontolerations) | `array` | Optional |

### Description

Common configuration for all the distribution modules.

## .spec.distribution.common.networkPoliciesEnabled

### Description

This field defines whether Network Policies are provided for all modules

## .spec.distribution.common.nodeSelector

### Description
Expand Down Expand Up @@ -5150,21 +5157,28 @@ The subnet CIDR to use for the Services network.

### Properties

| Property | Type | Required |
|:-----------------------------------------------|:---------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |
| Property | Type | Required |
|:---------------------------------------------------------------------------------|:----------|:---------|
| [chart](#specpluginshelmreleaseschart) | `string` | Required |
| [disableValidationOnInstall](#specpluginshelmreleasesdisablevalidationoninstall) | `boolean` | Optional |
| [name](#specpluginshelmreleasesname) | `string` | Required |
| [namespace](#specpluginshelmreleasesnamespace) | `string` | Required |
| [set](#specpluginshelmreleasesset) | `array` | Optional |
| [values](#specpluginshelmreleasesvalues) | `array` | Optional |
| [version](#specpluginshelmreleasesversion) | `string` | Optional |

## .spec.plugins.helm.releases.chart

### Description

The chart of the release

## .spec.plugins.helm.releases.disableValidationOnInstall

### Description

Disable running `helm diff` validation when installing the plugin, it will still be done when upgrading.

## .spec.plugins.helm.releases.name

### Description
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/ekscluster/v1alpha2/private/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/apis/ekscluster/v1alpha2/public/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/apis/kfddistribution/v1alpha2/public/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/apis/onpremises/v1alpha2/public/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions schemas/private/ekscluster-kfd-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@
"registry": {
"type": "string",
"description": "URL of the registry where to pull images from for the Distribution phase. (Default is registry.sighup.io/fury).\n\nNOTE: If plugins are pulling from the default registry, the registry will be replaced for these plugins too."
},
"networkPoliciesEnabled": {
"type": "boolean",
"description": "This field defines whether Network Policies are provided for all modules"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions schemas/public/ekscluster-kfd-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@
"registry": {
"type": "string",
"description": "URL of the registry where to pull images from for the Distribution phase. (Default is registry.sighup.io/fury).\n\nNOTE: If plugins are pulling from the default registry, the registry will be replaced for these plugins too."
},
"networkPoliciesEnabled": {
"type": "boolean",
"description": "This field defines whether Network Policies are provided for all modules"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions schemas/public/kfddistribution-kfd-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
"registry": {
"type": "string",
"description": "URL of the registry where to pull images from for the Distribution phase. (Default is registry.sighup.io/fury).\n\nNOTE: If plugins are pulling from the default registry, the registry will be replaced for the plugin too."
},
"networkPoliciesEnabled": {
"type": "boolean",
"description": "This field defines whether Network Policies are provided for all modules"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions schemas/public/onpremises-kfd-v1alpha2.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@
"registry": {
"type": "string",
"description": "URL of the registry where to pull images from for the Distribution phase. (Default is `registry.sighup.io/fury`)."
},
"networkPoliciesEnabled": {
"type": "boolean",
"description": "This field defines whether Network Policies are provided for all modules"
}
}
},
Expand Down

0 comments on commit 9bd1d6a

Please sign in to comment.