-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure via a CRD instead of a yaml file
- Loading branch information
Showing
17 changed files
with
413 additions
and
251 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
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: projectmappings.kubetruth.cloudtruth.com | ||
spec: | ||
group: kubetruth.cloudtruth.com | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
properties: | ||
scope: | ||
type: string | ||
description: Root or override scope, there can only be one root scope | ||
enum: ["root", "override"] | ||
default: "override" | ||
project_selector: | ||
type: string | ||
description: A regexp to limit the projects acted against (client-side). Supplies any named matches for template evaluation | ||
key_selector: | ||
type: string | ||
description: A regexp to limit the keys acted against (client-side). Supplies any named matches for template evaluation | ||
key_filter: | ||
type: string | ||
description: Limits the keys fetched to contain the given substring (server-side, api search param) | ||
configmap_name_template: | ||
type: string | ||
description: The template to use in generating ConfigMap names | ||
secret_name_template: | ||
type: string | ||
description: The template to use in generating Secret names | ||
namespace_template: | ||
type: string | ||
description: The template to use in generating namespace names | ||
key_template: | ||
type: string | ||
description: The template to use in generating key names | ||
skip: | ||
type: boolean | ||
description: Skips the generation of resources for the selected projects. Useful for excluding projects that should only be included into others. | ||
skip_secrets: | ||
type: boolean | ||
description: Prevent transfer of secrets to kubernetes Secrets | ||
included_projects: | ||
type: array | ||
items: | ||
type: string | ||
description: Include the parameters from other projects into the selected ones | ||
required: | ||
- scope | ||
additionalPrinterColumns: | ||
- name: Scope | ||
type: string | ||
description: The scope of the project mapping | ||
jsonPath: .spec.scope | ||
- name: Project | ||
type: string | ||
description: The selector used to target configuration by project | ||
jsonPath: .spec.project_selector | ||
- name: Age | ||
type: date | ||
jsonPath: .metadata.creationTimestamp | ||
scope: Namespaced | ||
names: | ||
plural: projectmappings | ||
singular: projectmapping | ||
kind: ProjectMapping | ||
shortNames: | ||
- pm |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
apiVersion: kubetruth.cloudtruth.com/v1 | ||
kind: ProjectMapping | ||
metadata: | ||
name: {{ include "kubetruth.fullname" . }}-root | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "kubetruth.labels" . | nindent 4 }} | ||
spec: | ||
scope: "root" | ||
project_selector: "" | ||
key_selector: "" | ||
key_filter: "" | ||
configmap_name_template: "%{project}" | ||
secret_name_template: "%{project}" | ||
namespace_template: "" | ||
key_template: "%{key}" | ||
skip: false | ||
skip_secrets: false | ||
included_projects: [] |
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
Oops, something went wrong.