This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wenqi Qiu <[email protected]> Update AntreaInterworkingConfigDataValue Update vendir Signed-off-by: Wenqi Qiu <[email protected]>
- Loading branch information
Showing
15 changed files
with
991 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,5 @@ coverage.txt | |
/build | ||
/packages/package-values-sha256.yaml | ||
/packages/**/.imgpkg | ||
|
||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,10 @@ directories: | |
contents: | ||
- path: . | ||
git: | ||
url: [email protected]:vmware-tanzu/community-edition.git | ||
ref: 71dd9381be1a4f075a64f404ca262f860e769a68 | ||
url: [email protected]:wenqiq/community-edition.git | ||
ref: f122634c6eb5556fa017ec37b30f55ec0fe2a8e3 | ||
includePaths: | ||
- addons/packages/antrea/1.7.2/bundle/config/**/* | ||
- addons/packages/antrea/1.7.2-p1/bundle/config/**/* | ||
- addons/packages/calico/3.24.1/bundle/config/**/* | ||
- path: ytt/vendir/kapp-controller/_ytt_lib | ||
contents: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...addons/packages/antrea/1.7.2-p1/bundle/config/overlay/interworking-bootstrap-overlay.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#! interworking-bootstrap-overlay.yaml | ||
|
||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("@ytt:yaml", "yaml") | ||
#@ load("/values.star", "values") | ||
|
||
#! Antrea-interworking-bootstrap-config-secret | ||
#@overlay/match by=overlay.subset({"kind":"Secret","metadata":{"name": "nsx-cert"}}) | ||
#@ if/end values.antrea_nsx.enable: | ||
--- | ||
kind: Secret | ||
data: | ||
tls.crt: #@ values.antrea_interworking.config.nsxCert | ||
tls.key: #@ values.antrea_interworking.config.nsxKey | ||
|
||
#@ def antrea_interworking_bootstrap_conf(): | ||
clusterName: #@ values.antrea_interworking.config.clusterName | ||
NSXManagers: #@ values.antrea_interworking.config.NSXManagers | ||
vpcPath: #@ values.antrea_interworking.config.vpcPath | ||
#@ end | ||
|
||
#! Antrea-interworking-bootstrap-config | ||
#@overlay/match by=overlay.subset({"kind":"ConfigMap","metadata":{"name": "bootstrap-config"}}) | ||
#@ if/end values.antrea_nsx.enable: | ||
--- | ||
kind: ConfigMap | ||
data: | ||
bootstrap.conf: #@ yaml.encode(antrea_interworking_bootstrap_conf()) |
40 changes: 40 additions & 0 deletions
40
.../_ytt_lib/addons/packages/antrea/1.7.2-p1/bundle/config/overlay/interworking-overlay.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#! interworking-overlay.yaml | ||
|
||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("@ytt:yaml", "yaml") | ||
#@ load("/values.star", "values") | ||
|
||
#@ def antrea_interworking_mp_adapter_conf(): | ||
NSXClientTimeout: #@ values.antrea_interworking.config.mp_adapter_conf.NSXClientTimeout | ||
InventoryBatchSize: #@ values.antrea_interworking.config.mp_adapter_conf.InventoryBatchSize | ||
InventoryBatchPeriod: #@ values.antrea_interworking.config.mp_adapter_conf.InventoryBatchPeriod | ||
EnableDebugServer: #@ values.antrea_interworking.config.mp_adapter_conf.EnableDebugServer | ||
APIServerPort: #@ values.antrea_interworking.config.mp_adapter_conf.APIServerPort | ||
DebugServerPort: #@ values.antrea_interworking.config.mp_adapter_conf.DebugServerPort | ||
NSXRPCDebug: #@ values.antrea_interworking.config.mp_adapter_conf.NSXRPCDebug | ||
ConditionTimeout: #@ values.antrea_interworking.config.mp_adapter_conf.ConditionTimeout | ||
#@ end | ||
|
||
|
||
#@ def antrea_interworking_ccp_adapter_conf(): | ||
EnableDebugServer: #@ values.antrea_interworking.config.ccp_adapter_conf.EnableDebugServer | ||
APIServerPort: #@ values.antrea_interworking.config.ccp_adapter_conf.APIServerPort | ||
DebugServerPort: #@ values.antrea_interworking.config.ccp_adapter_conf.DebugServerPort | ||
NSXRPCDebug: #@ values.antrea_interworking.config.ccp_adapter_conf.NSXRPCDebug | ||
RealizeTimeoutSeconds: #@ values.antrea_interworking.config.ccp_adapter_conf.RealizeTimeoutSeconds | ||
RealizeErrorSyncIntervalSeconds: #@ values.antrea_interworking.config.ccp_adapter_conf.RealizeErrorSyncIntervalSeconds | ||
ReconcilerWorkerCount: #@ values.antrea_interworking.config.ccp_adapter_conf.ReconcilerWorkerCount | ||
ReconcilerQPS: #@ values.antrea_interworking.config.ccp_adapter_conf.ReconcilerQPS | ||
ReconcilerBurst: #@ values.antrea_interworking.config.ccp_adapter_conf.ReconcilerBurst | ||
ReconcilerResyncSeconds: #@ values.antrea_interworking.config.ccp_adapter_conf.ReconcilerResyncSeconds | ||
#@ end | ||
|
||
|
||
#! Antrea-interworking-config | ||
#@overlay/match by=overlay.subset({"kind":"ConfigMap","metadata":{"name": "antrea-interworking-config"}}) | ||
#@ if/end values.antrea_nsx.enable: | ||
--- | ||
kind: ConfigMap | ||
data: | ||
mp-adapter.conf: #@ yaml.encode(antrea_interworking_mp_adapter_conf()) | ||
ccp-adapter.conf: #@ yaml.encode(antrea_interworking_ccp_adapter_conf()) |
22 changes: 22 additions & 0 deletions
22
...tt_lib/addons/packages/antrea/1.7.2-p1/bundle/config/overlay/update-strategy-overlay.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("@ytt:data", "data") | ||
|
||
#! We are adding this overlay in the package to accommodate the need from vSphere supervisor cluster: | ||
#! `deployment.spec.strategy.type` is configured to `RollingUpdate` | ||
#! `deployment.spec.strategy.rollingUpdate.maxUnavailable` is set to `0`. | ||
#! `deployment.spec.strategy.rollingUpdate.maxSurge` is set to `1`. | ||
#! `deployment.spec.template.spec.nodeSelector`is set to target only `Nodes` | ||
#! `daemonset.spec.updateStrategy.type` is configured to `OnDelete` | ||
#! This overlay makes configuring the above parameters possible | ||
#! Reference: https://github.com/vmware-tanzu/tanzu-framework/issues/1850 | ||
|
||
|
||
#@overlay/match expects="0+",by=overlay.subset({"kind":"DaemonSet"}) | ||
--- | ||
kind: DaemonSet | ||
spec: | ||
#@ if data.values.daemonset.updateStrategy: | ||
#@overlay/match missing_ok=True | ||
updateStrategy: | ||
type: #@ data.values.daemonset.updateStrategy | ||
#@ end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
...cni/_ytt_lib/addons/packages/antrea/1.7.2-p1/bundle/config/upstream/bootstrap-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: vmware-system-antrea | ||
labels: | ||
app: antrea-interworking | ||
openshift.io/run-level: '0' | ||
--- | ||
# NOTE: In production the bootstrap config and secret should be filled by admin | ||
# manually or external automation mechanism. | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: bootstrap-config | ||
namespace: vmware-system-antrea | ||
data: | ||
bootstrap.conf: | | ||
# bootstrapFrom can be "Inline" and "SupervisorCluster" | ||
# If "SupervisorCluster" is set, bootstrapSupervisorResourceName must be set, and clusterName, NSXManagers, vpcPath, | ||
# ProxyEndpoints will be filled automatically by register job. | ||
bootstrapFrom: "Inline" | ||
# bootstrapSupervisorResourceName is required if bootstrapFrom is "SupervisorCluster" | ||
# bootstrapSupervisorResourceName: dummyClusterName | ||
# Fill in the cluster name. It should be unique among the clusters managed by the NSX-T. | ||
clusterName: dummyClusterName | ||
# Fill in the NSX manager IPs. If there is only one IP, the value should be like [dummyNSXIP1] | ||
NSXManagers: [dummyNSXIP1, dummyNSXIP2, dummyNSXIP3] | ||
# vhcPath is deprecated by vpcPath | ||
# vhcPath: "" | ||
# vpcPath is optional. It's for multi-tenancy isolation in NSX. | ||
vpcPath: "" | ||
# proxyEndpoints is optional. If proxyEndpoints.rest-api is set, NSXManagers will be ignored. | ||
proxyEndpoints: | ||
rest-api: [] | ||
nsx-rpc-fwd-proxy: [] | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: nsx-cert | ||
namespace: vmware-system-antrea | ||
type: kubernetes.io/tls | ||
data: | ||
# One line base64 encoded data. Can be generated by command: cat tls.crt | base64 -w 0 | ||
tls.crt: | ||
# One line base64 encoded data. Can be generated by command: cat tls.key | base64 -w 0 | ||
tls.key: |
Oops, something went wrong.