|
65 | 65 | },
|
66 | 66 | '#destinations':: d.obj(help='"Destinations contains list of destinations available for deployment"'),
|
67 | 67 | destinations: {
|
68 |
| - '#withName':: d.fn(help='"Name is an alternate way of specifying the target cluster by its symbolic name"', args=[d.arg(name='name', type=d.T.string)]), |
| 68 | + '#withName':: d.fn(help='"Name is an alternate way of specifying the target cluster by its symbolic name. This must be set if Server is not set."', args=[d.arg(name='name', type=d.T.string)]), |
69 | 69 | withName(name): { name: name },
|
70 | 70 | '#withNamespace':: d.fn(help="\"Namespace specifies the target namespace for the application's resources. The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace\"", args=[d.arg(name='namespace', type=d.T.string)]),
|
71 | 71 | withNamespace(namespace): { namespace: namespace },
|
72 |
| - '#withServer':: d.fn(help='"Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API"', args=[d.arg(name='server', type=d.T.string)]), |
| 72 | + '#withServer':: d.fn(help="\"Server specifies the URL of the target cluster's Kubernetes control plane API. This must be set if Name is not set.\"", args=[d.arg(name='server', type=d.T.string)]), |
73 | 73 | withServer(server): { server: server },
|
74 | 74 | },
|
75 | 75 | '#namespaceResourceBlacklist':: d.obj(help='"NamespaceResourceBlacklist contains list of blacklisted namespace level resources"'),
|
|
184 | 184 | withNamespaceResourceWhitelist(namespaceResourceWhitelist): { spec+: { namespaceResourceWhitelist: if std.isArray(v=namespaceResourceWhitelist) then namespaceResourceWhitelist else [namespaceResourceWhitelist] } },
|
185 | 185 | '#withNamespaceResourceWhitelistMixin':: d.fn(help='"NamespaceResourceWhitelist contains list of whitelisted namespace level resources"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='namespaceResourceWhitelist', type=d.T.array)]),
|
186 | 186 | withNamespaceResourceWhitelistMixin(namespaceResourceWhitelist): { spec+: { namespaceResourceWhitelist+: if std.isArray(v=namespaceResourceWhitelist) then namespaceResourceWhitelist else [namespaceResourceWhitelist] } },
|
| 187 | + '#withPermitOnlyProjectScopedClusters':: d.fn(help='"PermitOnlyProjectScopedClusters determines whether destinations can only reference clusters which are project-scoped"', args=[d.arg(name='permitOnlyProjectScopedClusters', type=d.T.boolean)]), |
| 188 | + withPermitOnlyProjectScopedClusters(permitOnlyProjectScopedClusters): { spec+: { permitOnlyProjectScopedClusters: permitOnlyProjectScopedClusters } }, |
187 | 189 | '#withRoles':: d.fn(help='"Roles are user defined RBAC roles associated with this project"', args=[d.arg(name='roles', type=d.T.array)]),
|
188 | 190 | withRoles(roles): { spec+: { roles: if std.isArray(v=roles) then roles else [roles] } },
|
189 | 191 | '#withRolesMixin':: d.fn(help='"Roles are user defined RBAC roles associated with this project"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='roles', type=d.T.array)]),
|
|
192 | 194 | withSignatureKeys(signatureKeys): { spec+: { signatureKeys: if std.isArray(v=signatureKeys) then signatureKeys else [signatureKeys] } },
|
193 | 195 | '#withSignatureKeysMixin':: d.fn(help='"SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='signatureKeys', type=d.T.array)]),
|
194 | 196 | withSignatureKeysMixin(signatureKeys): { spec+: { signatureKeys+: if std.isArray(v=signatureKeys) then signatureKeys else [signatureKeys] } },
|
| 197 | + '#withSourceNamespaces':: d.fn(help='"SourceNamespaces defines the namespaces application resources are allowed to be created in"', args=[d.arg(name='sourceNamespaces', type=d.T.array)]), |
| 198 | + withSourceNamespaces(sourceNamespaces): { spec+: { sourceNamespaces: if std.isArray(v=sourceNamespaces) then sourceNamespaces else [sourceNamespaces] } }, |
| 199 | + '#withSourceNamespacesMixin':: d.fn(help='"SourceNamespaces defines the namespaces application resources are allowed to be created in"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceNamespaces', type=d.T.array)]), |
| 200 | + withSourceNamespacesMixin(sourceNamespaces): { spec+: { sourceNamespaces+: if std.isArray(v=sourceNamespaces) then sourceNamespaces else [sourceNamespaces] } }, |
195 | 201 | '#withSourceRepos':: d.fn(help='"SourceRepos contains list of repository URLs which can be used for deployment"', args=[d.arg(name='sourceRepos', type=d.T.array)]),
|
196 | 202 | withSourceRepos(sourceRepos): { spec+: { sourceRepos: if std.isArray(v=sourceRepos) then sourceRepos else [sourceRepos] } },
|
197 | 203 | '#withSourceReposMixin':: d.fn(help='"SourceRepos contains list of repository URLs which can be used for deployment"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceRepos', type=d.T.array)]),
|
|
0 commit comments