-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from vshn/pkg-provider-kubernetes
Add package for provider-kubernetes
- Loading branch information
Showing
10 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
docs/modules/ROOT/pages/references/provider-kubernetes.adoc
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,11 @@ | ||
= pkg.appcat.provider.kubernetes | ||
|
||
The parent key for all of the following parameters is `pkg.appcat.provider.kubernetes`. | ||
|
||
== `images:provider-kubernetes` | ||
|
||
[horizontal] | ||
type:: dict | ||
default:: see `packages/provider/kubernetes.yml` | ||
|
||
The package image repository for https://github.com/crossplane-contrib/provider-kubernetes[provider-kubernetes]. |
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
classes: | ||
- .common | ||
|
||
parameters: | ||
|
||
pkg.appcat.provider.kubernetes: | ||
images: | ||
provider-kubernetes: | ||
registry: docker.io | ||
repository: crossplane/provider-kubernetes | ||
tag: v0.4.0 | ||
|
||
crossplane: | ||
providers: | ||
kubernetes: | ||
package: ${pkg.appcat.provider.kubernetes:images:provider-kubernetes:registry}/${pkg.appcat.provider.kubernetes:images:provider-kubernetes:repository}:${pkg.appcat.provider.kubernetes:images:provider-kubernetes:tag} | ||
|
||
providerConfigs: | ||
kubernetes: | ||
apiVersion: kubernetes.crossplane.io/v1alpha1 | ||
spec: | ||
credentials: | ||
source: InjectedIdentity | ||
|
||
controllerConfigs: | ||
provider-kubernetes: | ||
spec: | ||
# We need to set a different SA name than the generated one, to allow RBAC permissions for reading namespaces. | ||
serviceAccountName: provider-kubernetes | ||
|
||
serviceAccounts: | ||
provider-kubernetes: {} | ||
|
||
clusterRoles: | ||
"crossplane:provider:provider-kubernetes:system:custom": | ||
rules: | ||
- verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
apiGroups: | ||
- kubernetes.crossplane.io | ||
resources: | ||
- '*' | ||
- verbs: | ||
- '*' | ||
apiGroups: | ||
- '' | ||
- coordination.k8s.io | ||
resources: | ||
- secrets | ||
- configmaps | ||
- events | ||
- leases | ||
- verbs: | ||
- 'get' | ||
- 'list' | ||
- 'watch' | ||
apiGroups: | ||
- '' | ||
resources: | ||
- namespaces | ||
|
||
clusterRoleBindings: | ||
"crossplane:provider:provider-kubernetes:system:custom": | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: crossplane:provider:provider-kubernetes:system:custom | ||
subjects: | ||
- kind: ServiceAccount | ||
name: provider-kubernetes | ||
namespace: ${crossplane:namespace} |
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
11 changes: 11 additions & 0 deletions
11
...tests/golden/composition-objectstorage-cloudscale/crossplane/crossplane/10_providers.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,11 @@ | ||
apiVersion: pkg.crossplane.io/v1 | ||
kind: Provider | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: '10' | ||
labels: | ||
name: kubernetes | ||
name: kubernetes | ||
spec: | ||
package: docker.io/crossplane/provider-kubernetes:v0.4.0 |
11 changes: 11 additions & 0 deletions
11
...den/composition-objectstorage-cloudscale/crossplane/crossplane/30_controller_configs.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,11 @@ | ||
apiVersion: pkg.crossplane.io/v1alpha1 | ||
kind: ControllerConfig | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: '10' | ||
labels: | ||
name: provider-kubernetes | ||
name: provider-kubernetes | ||
spec: | ||
serviceAccountName: provider-kubernetes |
7 changes: 7 additions & 0 deletions
7
...olden/composition-objectstorage-cloudscale/crossplane/crossplane/40_service_accounts.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,7 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: provider-kubernetes | ||
name: provider-kubernetes |
37 changes: 37 additions & 0 deletions
37
...s/golden/composition-objectstorage-cloudscale/crossplane/crossplane/50_cluster_roles.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,37 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: crossplane-provider-provider-kubernetes-system-custom | ||
name: crossplane:provider:provider-kubernetes:system:custom | ||
rules: | ||
- apiGroups: | ||
- kubernetes.crossplane.io | ||
resources: | ||
- '*' | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- apiGroups: | ||
- '' | ||
- coordination.k8s.io | ||
resources: | ||
- secrets | ||
- configmaps | ||
- events | ||
- leases | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- '' | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch |
15 changes: 15 additions & 0 deletions
15
.../composition-objectstorage-cloudscale/crossplane/crossplane/60_cluster_role_bindings.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,15 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: crossplane-provider-provider-kubernetes-system-custom | ||
name: crossplane:provider:provider-kubernetes:system:custom | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: crossplane:provider:provider-kubernetes:system:custom | ||
subjects: | ||
- kind: ServiceAccount | ||
name: provider-kubernetes | ||
namespace: syn-crossplane |
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