Bump teleport to version 15.3.3
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
apiVersion: v2
|
||||
appVersion: 15.0.1
|
||||
appVersion: 15.3.3
|
||||
description: Teleport Operator provides management of select Teleport resources.
|
||||
icon: https://goteleport.com/images/logos/logo-teleport-square.svg
|
||||
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
|
||||
keywords:
|
||||
- Teleport
|
||||
name: teleport-operator
|
||||
version: 15.0.1
|
||||
version: 15.3.3
|
||||
|
||||
+5
-18
@@ -62,10 +62,13 @@ spec:
|
||||
properties:
|
||||
day_of_month:
|
||||
description: day_of_month is the day of month that reviews
|
||||
will be scheduled on.
|
||||
will be scheduled on. Supported values are 0, 1, 15, and
|
||||
31.
|
||||
x-kubernetes-int-or-string: true
|
||||
frequency:
|
||||
description: frequency is the frequency of reviews.
|
||||
description: frequency is the frequency of reviews. This represents
|
||||
the period in months between two reviews. Supported values
|
||||
are 0, 1, 3, 6, and 12.
|
||||
x-kubernetes-int-or-string: true
|
||||
type: object
|
||||
type: object
|
||||
@@ -94,14 +97,6 @@ spec:
|
||||
are members of the access list.
|
||||
type: object
|
||||
type: object
|
||||
membership:
|
||||
description: 'membership defines how list membership is applied. There
|
||||
are two possible values: `explicit` (default): To be considered
|
||||
ag member of the access list, a user must both meet the `membership_requires`
|
||||
conditions AND be explicitly added to the list. `implicit`: Any
|
||||
user meeting the `membership_requires` conditions will automatically
|
||||
be cosidered a member of this list.'
|
||||
type: string
|
||||
membership_requires:
|
||||
description: membership_requires describes the requirements for a
|
||||
user to be a member of the access list. For a membership to an access
|
||||
@@ -164,14 +159,6 @@ spec:
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
ownership:
|
||||
description: 'ownership defines how list ownership of this list is
|
||||
determined. There are two possible values: `explicit` (default):
|
||||
To be considered an owner of the access list, a user must both meet
|
||||
the `ownership_requires` conditions AND be explicitly added to the
|
||||
list. `implicit`: Any user meeting the `ownership_requires` conditions
|
||||
will automatically be considered an owner of this list.'
|
||||
type: string
|
||||
ownership_requires:
|
||||
description: ownership_requires describes the requirements for a user
|
||||
to be an owner of the access list. For ownership of an access list
|
||||
+14
@@ -42,6 +42,20 @@ spec:
|
||||
client_id:
|
||||
description: ClientID is the Github OAuth app client ID.
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
client_secret:
|
||||
description: ClientSecret is the Github OAuth app client secret.
|
||||
type: string
|
||||
+14
@@ -67,6 +67,20 @@ spec:
|
||||
description: ClientID is the id of the authentication client (Teleport
|
||||
Auth server).
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
client_secret:
|
||||
description: ClientSecret is used to authenticate the client.
|
||||
type: string
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: teleportopenssheiceserversv2.resources.teleport.dev
|
||||
spec:
|
||||
group: resources.teleport.dev
|
||||
names:
|
||||
kind: TeleportOpenSSHEICEServerV2
|
||||
listKind: TeleportOpenSSHEICEServerV2List
|
||||
plural: teleportopenssheiceserversv2
|
||||
shortNames:
|
||||
- openssheiceserverv2
|
||||
- openssheiceserversv2
|
||||
singular: teleportopenssheiceserverv2
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Server hostname
|
||||
jsonPath: .spec.hostname
|
||||
name: Hostname
|
||||
type: string
|
||||
- description: Server address, with SSH port.
|
||||
jsonPath: .spec.addr
|
||||
name: Address
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: OpenSSHEICEServerV2 is the Schema for the openssheiceserversv2
|
||||
API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: OpenSSHEICEServer resource definition v2 from Teleport
|
||||
properties:
|
||||
addr:
|
||||
description: Addr is a host:port address where this server can be
|
||||
reached.
|
||||
type: string
|
||||
cloud_metadata:
|
||||
description: CloudMetadata contains info about the cloud instance
|
||||
the server is running on, if any.
|
||||
nullable: true
|
||||
properties:
|
||||
aws:
|
||||
description: AWSInfo contains attributes to match to an EC2 instance.
|
||||
nullable: true
|
||||
properties:
|
||||
account_id:
|
||||
description: AccountID is an AWS account ID.
|
||||
type: string
|
||||
instance_id:
|
||||
description: InstanceID is an EC2 instance ID.
|
||||
type: string
|
||||
integration:
|
||||
description: Integration is the integration name that added
|
||||
this Node. When connecting to it, it will use this integration
|
||||
to issue AWS API calls in order to set up the connection.
|
||||
This includes sending an SSH Key and then opening a tunnel
|
||||
(EC2 Instance Connect Endpoint) so Teleport can connect
|
||||
to it.
|
||||
type: string
|
||||
region:
|
||||
description: Region is the AWS EC2 Instance Region.
|
||||
type: string
|
||||
subnet_id:
|
||||
description: SubnetID is the Subnet ID in use by the instance.
|
||||
type: string
|
||||
vpc_id:
|
||||
description: VPCID is the AWS VPC ID where the Instance is
|
||||
running.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
hostname:
|
||||
description: Hostname is server hostname
|
||||
type: string
|
||||
peer_addr:
|
||||
description: PeerAddr is the address a proxy server is reachable at
|
||||
by its peer proxies.
|
||||
type: string
|
||||
proxy_ids:
|
||||
description: ProxyIDs is a list of proxy IDs this server is expected
|
||||
to be connected to.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
public_addrs:
|
||||
description: PublicAddrs is a list of public addresses where this
|
||||
server can be reached.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
rotation:
|
||||
description: Rotation specifies server rotation
|
||||
properties:
|
||||
current_id:
|
||||
description: CurrentID is the ID of the rotation operation to
|
||||
differentiate between rotation attempts.
|
||||
type: string
|
||||
grace_period:
|
||||
description: GracePeriod is a period during which old and new
|
||||
CA are valid for checking purposes, but only new CA is issuing
|
||||
certificates.
|
||||
format: duration
|
||||
type: string
|
||||
last_rotated:
|
||||
description: LastRotated specifies the last time of the completed
|
||||
rotation.
|
||||
format: date-time
|
||||
type: string
|
||||
mode:
|
||||
description: Mode sets manual or automatic rotation mode.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the current rotation phase.
|
||||
type: string
|
||||
schedule:
|
||||
description: Schedule is a rotation schedule - used in automatic
|
||||
mode to switch between phases.
|
||||
properties:
|
||||
standby:
|
||||
description: Standby specifies time to switch to the "Standby"
|
||||
phase.
|
||||
format: date-time
|
||||
type: string
|
||||
update_clients:
|
||||
description: UpdateClients specifies time to switch to the
|
||||
"Update clients" phase
|
||||
format: date-time
|
||||
type: string
|
||||
update_servers:
|
||||
description: UpdateServers specifies time to switch to the
|
||||
"Update servers" phase.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
started:
|
||||
description: Started is set to the time when rotation has been
|
||||
started in case if the state of the rotation is "in_progress".
|
||||
format: date-time
|
||||
type: string
|
||||
state:
|
||||
description: State could be one of "init" or "in_progress".
|
||||
type: string
|
||||
type: object
|
||||
use_tunnel:
|
||||
description: UseTunnel indicates that connections to this server should
|
||||
occur over a reverse tunnel.
|
||||
type: boolean
|
||||
version:
|
||||
description: TeleportVersion is the teleport version that the server
|
||||
is running on
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status defines the observed state of the Teleport resource
|
||||
properties:
|
||||
conditions:
|
||||
description: Conditions represent the latest available observations
|
||||
of an object's state
|
||||
items:
|
||||
description: "Condition contains details for one aspect of the current
|
||||
state of this API Resource.\n---\nThis struct is intended for
|
||||
direct use as an array at the field path .status.conditions. For
|
||||
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
|
||||
observations of a foo's current state.\n\t // Known .status.conditions.type
|
||||
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
|
||||
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
|
||||
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
|
||||
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
|
||||
\ // other fields\n\t}"
|
||||
properties:
|
||||
lastTransitionTime:
|
||||
description: |-
|
||||
lastTransitionTime is the last time the condition transitioned from one status to another.
|
||||
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: |-
|
||||
message is a human readable message indicating details about the transition.
|
||||
This may be an empty string.
|
||||
maxLength: 32768
|
||||
type: string
|
||||
observedGeneration:
|
||||
description: |-
|
||||
observedGeneration represents the .metadata.generation that the condition was set based upon.
|
||||
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
|
||||
with respect to the current state of the instance.
|
||||
format: int64
|
||||
minimum: 0
|
||||
type: integer
|
||||
reason:
|
||||
description: |-
|
||||
reason contains a programmatic identifier indicating the reason for the condition's last transition.
|
||||
Producers of specific condition types may define expected values and meanings for this field,
|
||||
and whether the values are considered a guaranteed API.
|
||||
The value should be a CamelCase string.
|
||||
This field may not be empty.
|
||||
maxLength: 1024
|
||||
minLength: 1
|
||||
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
|
||||
type: string
|
||||
status:
|
||||
description: status of the condition, one of True, False, Unknown.
|
||||
enum:
|
||||
- "True"
|
||||
- "False"
|
||||
- Unknown
|
||||
type: string
|
||||
type:
|
||||
description: |-
|
||||
type of condition in CamelCase or in foo.example.com/CamelCase.
|
||||
---
|
||||
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
|
||||
useful (see .node.status.conditions), the ability to deconflict is important.
|
||||
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
|
||||
maxLength: 316
|
||||
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
|
||||
type: string
|
||||
required:
|
||||
- lastTransitionTime
|
||||
- message
|
||||
- reason
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
teleportResourceID:
|
||||
format: int64
|
||||
type: integer
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: null
|
||||
storedVersions: null
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: teleportopensshserversv2.resources.teleport.dev
|
||||
spec:
|
||||
group: resources.teleport.dev
|
||||
names:
|
||||
kind: TeleportOpenSSHServerV2
|
||||
listKind: TeleportOpenSSHServerV2List
|
||||
plural: teleportopensshserversv2
|
||||
shortNames:
|
||||
- opensshserverv2
|
||||
- opensshserversv2
|
||||
singular: teleportopensshserverv2
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Server hostname
|
||||
jsonPath: .spec.hostname
|
||||
name: Hostname
|
||||
type: string
|
||||
- description: Server address, with SSH port.
|
||||
jsonPath: .spec.addr
|
||||
name: Address
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: OpenSSHServerV2 is the Schema for the opensshserversv2 API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: OpenSSHServer resource definition v2 from Teleport
|
||||
properties:
|
||||
addr:
|
||||
description: Addr is a host:port address where this server can be
|
||||
reached.
|
||||
type: string
|
||||
cloud_metadata:
|
||||
description: CloudMetadata contains info about the cloud instance
|
||||
the server is running on, if any.
|
||||
nullable: true
|
||||
properties:
|
||||
aws:
|
||||
description: AWSInfo contains attributes to match to an EC2 instance.
|
||||
nullable: true
|
||||
properties:
|
||||
account_id:
|
||||
description: AccountID is an AWS account ID.
|
||||
type: string
|
||||
instance_id:
|
||||
description: InstanceID is an EC2 instance ID.
|
||||
type: string
|
||||
integration:
|
||||
description: Integration is the integration name that added
|
||||
this Node. When connecting to it, it will use this integration
|
||||
to issue AWS API calls in order to set up the connection.
|
||||
This includes sending an SSH Key and then opening a tunnel
|
||||
(EC2 Instance Connect Endpoint) so Teleport can connect
|
||||
to it.
|
||||
type: string
|
||||
region:
|
||||
description: Region is the AWS EC2 Instance Region.
|
||||
type: string
|
||||
subnet_id:
|
||||
description: SubnetID is the Subnet ID in use by the instance.
|
||||
type: string
|
||||
vpc_id:
|
||||
description: VPCID is the AWS VPC ID where the Instance is
|
||||
running.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
hostname:
|
||||
description: Hostname is server hostname
|
||||
type: string
|
||||
peer_addr:
|
||||
description: PeerAddr is the address a proxy server is reachable at
|
||||
by its peer proxies.
|
||||
type: string
|
||||
proxy_ids:
|
||||
description: ProxyIDs is a list of proxy IDs this server is expected
|
||||
to be connected to.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
public_addrs:
|
||||
description: PublicAddrs is a list of public addresses where this
|
||||
server can be reached.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
rotation:
|
||||
description: Rotation specifies server rotation
|
||||
properties:
|
||||
current_id:
|
||||
description: CurrentID is the ID of the rotation operation to
|
||||
differentiate between rotation attempts.
|
||||
type: string
|
||||
grace_period:
|
||||
description: GracePeriod is a period during which old and new
|
||||
CA are valid for checking purposes, but only new CA is issuing
|
||||
certificates.
|
||||
format: duration
|
||||
type: string
|
||||
last_rotated:
|
||||
description: LastRotated specifies the last time of the completed
|
||||
rotation.
|
||||
format: date-time
|
||||
type: string
|
||||
mode:
|
||||
description: Mode sets manual or automatic rotation mode.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the current rotation phase.
|
||||
type: string
|
||||
schedule:
|
||||
description: Schedule is a rotation schedule - used in automatic
|
||||
mode to switch between phases.
|
||||
properties:
|
||||
standby:
|
||||
description: Standby specifies time to switch to the "Standby"
|
||||
phase.
|
||||
format: date-time
|
||||
type: string
|
||||
update_clients:
|
||||
description: UpdateClients specifies time to switch to the
|
||||
"Update clients" phase
|
||||
format: date-time
|
||||
type: string
|
||||
update_servers:
|
||||
description: UpdateServers specifies time to switch to the
|
||||
"Update servers" phase.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
started:
|
||||
description: Started is set to the time when rotation has been
|
||||
started in case if the state of the rotation is "in_progress".
|
||||
format: date-time
|
||||
type: string
|
||||
state:
|
||||
description: State could be one of "init" or "in_progress".
|
||||
type: string
|
||||
type: object
|
||||
use_tunnel:
|
||||
description: UseTunnel indicates that connections to this server should
|
||||
occur over a reverse tunnel.
|
||||
type: boolean
|
||||
version:
|
||||
description: TeleportVersion is the teleport version that the server
|
||||
is running on
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: Status defines the observed state of the Teleport resource
|
||||
properties:
|
||||
conditions:
|
||||
description: Conditions represent the latest available observations
|
||||
of an object's state
|
||||
items:
|
||||
description: "Condition contains details for one aspect of the current
|
||||
state of this API Resource.\n---\nThis struct is intended for
|
||||
direct use as an array at the field path .status.conditions. For
|
||||
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
|
||||
observations of a foo's current state.\n\t // Known .status.conditions.type
|
||||
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
|
||||
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
|
||||
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
|
||||
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
|
||||
\ // other fields\n\t}"
|
||||
properties:
|
||||
lastTransitionTime:
|
||||
description: |-
|
||||
lastTransitionTime is the last time the condition transitioned from one status to another.
|
||||
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: |-
|
||||
message is a human readable message indicating details about the transition.
|
||||
This may be an empty string.
|
||||
maxLength: 32768
|
||||
type: string
|
||||
observedGeneration:
|
||||
description: |-
|
||||
observedGeneration represents the .metadata.generation that the condition was set based upon.
|
||||
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
|
||||
with respect to the current state of the instance.
|
||||
format: int64
|
||||
minimum: 0
|
||||
type: integer
|
||||
reason:
|
||||
description: |-
|
||||
reason contains a programmatic identifier indicating the reason for the condition's last transition.
|
||||
Producers of specific condition types may define expected values and meanings for this field,
|
||||
and whether the values are considered a guaranteed API.
|
||||
The value should be a CamelCase string.
|
||||
This field may not be empty.
|
||||
maxLength: 1024
|
||||
minLength: 1
|
||||
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
|
||||
type: string
|
||||
status:
|
||||
description: status of the condition, one of True, False, Unknown.
|
||||
enum:
|
||||
- "True"
|
||||
- "False"
|
||||
- Unknown
|
||||
type: string
|
||||
type:
|
||||
description: |-
|
||||
type of condition in CamelCase or in foo.example.com/CamelCase.
|
||||
---
|
||||
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
|
||||
useful (see .node.status.conditions), the ability to deconflict is important.
|
||||
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
|
||||
maxLength: 316
|
||||
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
|
||||
type: string
|
||||
required:
|
||||
- lastTransitionTime
|
||||
- message
|
||||
- reason
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
teleportResourceID:
|
||||
format: int64
|
||||
type: integer
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: null
|
||||
storedVersions: null
|
||||
+46
-2
@@ -15,7 +15,20 @@ spec:
|
||||
singular: teleportprovisiontoken
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v2
|
||||
- additionalPrinterColumns:
|
||||
- description: Token join method.
|
||||
jsonPath: .spec.join_method
|
||||
name: Join Method
|
||||
type: string
|
||||
- description: System roles granted by this token.
|
||||
jsonPath: .spec.roles
|
||||
name: System Roles
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ProvisionToken is the Schema for the provisiontokens API
|
||||
@@ -189,7 +202,7 @@ spec:
|
||||
enterprise if this is enabled. If this is not enabled, then
|
||||
this field must be left empty. This field cannot be specified
|
||||
if `enterprise_server_host` is specified. See https://docs.github.com/en/enterprise-cloud@latest/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#customizing-the-issuer-value-for-an-enterprise
|
||||
for more information about customised issuer values.
|
||||
for more information about customized issuer values.
|
||||
type: string
|
||||
type: object
|
||||
gitlab:
|
||||
@@ -328,6 +341,37 @@ spec:
|
||||
set when using this token to enroll themselves in the cluster. Currently,
|
||||
only node-join scripts create a configuration according to the suggestion.
|
||||
type: object
|
||||
tpm:
|
||||
description: TPM allows the configuration of options specific to the
|
||||
"tpm" join method.
|
||||
nullable: true
|
||||
properties:
|
||||
allow:
|
||||
description: Allow is a list of Rules, the presented delegated
|
||||
identity must match one allow rule to permit joining.
|
||||
items:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
ek_certificate_serial:
|
||||
type: string
|
||||
ek_public_hash:
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
ekcert_allowed_cas:
|
||||
description: EKCertAllowedCAs is a list of CA certificates that
|
||||
will be used to validate TPM EKCerts. When specified, joining
|
||||
TPMs must present an EKCert signed by one of the specified CAs.
|
||||
TPMs that do not present an EKCert will be not permitted to
|
||||
join. When unspecified, TPMs will be allowed to join with either
|
||||
an EKCert or an EKPubHash.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: Status defines the observed state of the Teleport resource
|
||||
+282
-14
@@ -86,6 +86,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -281,7 +303,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -474,6 +496,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -547,6 +612,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -742,7 +829,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -935,6 +1022,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -962,7 +1092,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -970,7 +1100,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -995,7 +1125,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1007,7 +1138,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1118,7 +1251,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
@@ -1284,6 +1418,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -1479,7 +1635,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -1672,6 +1828,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -1745,6 +1944,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -1940,7 +2161,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -2133,6 +2354,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -2160,7 +2424,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -2168,7 +2432,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -2193,7 +2457,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -2205,7 +2470,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -2316,7 +2583,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+141
-7
@@ -89,6 +89,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -284,7 +306,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -477,6 +499,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -550,6 +615,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -745,7 +832,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -938,6 +1025,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -965,7 +1095,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -973,7 +1103,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -998,7 +1128,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1010,7 +1141,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1121,7 +1254,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+141
-7
@@ -89,6 +89,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -284,7 +306,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -477,6 +499,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -550,6 +615,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -745,7 +832,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -938,6 +1025,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -965,7 +1095,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -973,7 +1103,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -998,7 +1128,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1010,7 +1141,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1121,7 +1254,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+14
@@ -82,6 +82,20 @@ spec:
|
||||
description: Cert is the identity provider certificate PEM. IDP signs
|
||||
<Response> responses using this certificate.
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
display:
|
||||
description: Display controls how this connector is displayed.
|
||||
type: string
|
||||
+10
-1
@@ -15,7 +15,16 @@ spec:
|
||||
singular: teleportuser
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v2
|
||||
- additionalPrinterColumns:
|
||||
- description: List of Teleport roles granted to the user.
|
||||
jsonPath: .spec.roles
|
||||
name: Roles
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: User is the Schema for the users API
|
||||
@@ -57,6 +57,7 @@ helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
|
||||
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
|
||||
app.kubernetes.io/version: '{{ include "teleport-cluster.version" . }}'
|
||||
teleport.dev/majorVersion: '{{ include "teleport-cluster.majorVersion" . }}'
|
||||
teleport.dev/release: '{{ include "teleport-cluster.operator.namespacedRelease" . }}'
|
||||
{{- end -}}
|
||||
|
||||
{{/* Teleport auth or proxy address */}}
|
||||
@@ -75,3 +76,56 @@ teleport.dev/majorVersion: '{{ include "teleport-cluster.majorVersion" . }}'
|
||||
{{- /* This template is a placeholder.
|
||||
If we are imported by the main chart "teleport-cluster" it is overridden*/ -}}
|
||||
{{- define "teleport-cluster.auth.serviceFQDN" -}}{{- end }}
|
||||
|
||||
{{- /* This templates returns "true" or "false" describing if the CRDs should be deployed.
|
||||
If we have an explicit requirement ("always" or "never") things are easy.
|
||||
If we don't we check if the operator is enabled.
|
||||
However, we cannot just trash the CRDs if the operator is disabled, this causes
|
||||
a mass CR deletion and users will shoot themselves in the foot whith this
|
||||
(temporarily disabling the operator would cause havoc).
|
||||
So we check if there's a CRD already deployed, it that's the case, we keep the CRDs.
|
||||
*/ -}}
|
||||
{{- define "teleport-cluster.operator.shouldInstallCRDs" -}}
|
||||
{{- if eq .Values.installCRDs "always" -}}
|
||||
true
|
||||
{{- else if eq .Values.installCRDs "never" -}}
|
||||
false
|
||||
{{- else if eq .Values.installCRDs "dynamic" -}}
|
||||
{{- if .Values.enabled -}}
|
||||
true
|
||||
{{- else -}}
|
||||
{{- include "teleport-cluster.operator.checkExistingCRDs" . -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- fail ".Values.installCRDs must be 'never', 'always' or 'dynamic'." -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This template checks if a known CRD is depployed (rolev7) and owned by
|
||||
the release. As CRDs are not namespaced, we must use a custom annotation to avoid
|
||||
a conflict when two releases are deployed with the same name in different namespaces. */ -}}
|
||||
{{- define "teleport-cluster.operator.checkExistingCRDs" -}}
|
||||
{{ $existingCRD := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "teleportrolesv7.resources.teleport.dev"}}
|
||||
{{- if not $existingCRD -}}
|
||||
false
|
||||
{{- else -}}
|
||||
{{- $release := index $existingCRD.metadata.labels "teleport.dev/release" }}
|
||||
{{- if eq $release (include "teleport-cluster.operator.namespacedRelease" .) -}}
|
||||
true
|
||||
{{- else -}}
|
||||
false
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This is a custom label containing the namespaced release.
|
||||
This is used to avoid conflicts for non-namespaced resources like CRDs. */ -}}
|
||||
{{- define "teleport-cluster.operator.namespacedRelease" -}}
|
||||
{{ .Release.Namespace }}_{{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This is the object merged with CRDs manifests to enrich them (add labels). */ -}}
|
||||
{{- define "teleport-cluster.operator.crdOverrides" -}}
|
||||
metadata:
|
||||
labels: {{- include "teleport-cluster.operator.labels" . | nindent 4 }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{{- /* This template iterates over every CRD in the `operator-crds/` directory
|
||||
and creates them if needed. It also adds common labels, like any other
|
||||
Helm-deployed resource.
|
||||
|
||||
We cannot rely on the "crds/" Helm directory as Helm's startegy is "fire and forget".
|
||||
We have no way to update the CRDs after the initial deployment. As Teleport keeps
|
||||
adding new field to existing CRs, we need a deployment strategy that supports
|
||||
updating CRDs.
|
||||
|
||||
The obvious solution would be to have a separate chart for CRs but we wanted to
|
||||
have everything functional in a single "helm install", hence the rube goldberg
|
||||
mechanism to try to guess what to do with the CRDs (see the implementation of
|
||||
shouldInstallCRDs in _helpers.yaml for more details). */ -}}
|
||||
{{- if eq (include "teleport-cluster.operator.shouldInstallCRDs" . ) "true" -}}
|
||||
{{ $currentScope := .}}
|
||||
{{ range $path, $_ := .Files.Glob "operator-crds/*" }}
|
||||
{{- with $currentScope}}
|
||||
{{- $crd := (.Files.Get $path | fromYaml) -}}
|
||||
{{- $injectedCRD := mustMergeOverwrite $crd (include "teleport-cluster.operator.crdOverrides" $currentScope | fromYaml) -}}
|
||||
{{- toYaml $injectedCRD -}}
|
||||
{{- end }}
|
||||
---
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
@@ -31,6 +31,10 @@ rules:
|
||||
- teleportoktaimportrules/status
|
||||
- teleportaccesslists
|
||||
- teleportaccesslists/status
|
||||
- teleportopensshserversv2
|
||||
- teleportopensshserversv2/status
|
||||
- teleportopenssheiceserversv2
|
||||
- teleportopenssheiceserversv2/status
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
suite: Operator CRDs
|
||||
templates:
|
||||
- crds.yaml
|
||||
tests:
|
||||
- it: creates no CRDs when installCRDs is "never"
|
||||
set:
|
||||
installCRDs: "never"
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
- it: creates CRDs when installCRDs is "always"
|
||||
set:
|
||||
installCRDs: "always"
|
||||
enabled: false
|
||||
asserts:
|
||||
- containsDocument:
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
name: teleportrolesv7.resources.teleport.dev
|
||||
- it: labels CRDs
|
||||
set:
|
||||
installCRDs: "always"
|
||||
enabled: false
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.[teleport.dev/release]
|
||||
value: NAMESPACE_RELEASE-NAME
|
||||
- it: creates CRDs when installCRDs is "dynamic" and operator enabled
|
||||
set:
|
||||
installCRDs: "dynamic"
|
||||
enabled: true
|
||||
asserts:
|
||||
- containsDocument:
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
name: teleportrolesv7.resources.teleport.dev
|
||||
- it: creates no CRDs when installCRDs is "dynamic" and operator disabled (and no existing CRD)
|
||||
set:
|
||||
installCRDs: "dynamic"
|
||||
enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
@@ -4,6 +4,18 @@
|
||||
# - When `false`, the chart creates the `CustomResourceDefinition` resources without the operator `Deployment`.
|
||||
enabled: true
|
||||
|
||||
# installCRDs(string) -- controls if the chart should install the CRDs.
|
||||
# There are 3 possible values: dynamic, always, never.
|
||||
#
|
||||
# - "dynamic" means the CRDs are installed if the operator is enabled or if
|
||||
# the CRDs are already present in the cluster. The presence check is here to
|
||||
# avoid all CRDs to be removed if you temporarily disable the operator.
|
||||
# Removing CRDs triggers a cascading deletion, which removes CRs, and all the
|
||||
# related resources in Teleport.
|
||||
# - "always" means the CRDs are always installed
|
||||
# - "never" means the CRDs are never installed
|
||||
installCRDs: "dynamic"
|
||||
|
||||
# teleportAddress(string) -- is the address of the Teleport cluster whose resources
|
||||
# are managed by the operator. The address must contain both the domain name and
|
||||
# the port of the Teleport cluster. It can be either the address of the Auth Service
|
||||
|
||||
Reference in New Issue
Block a user