Files
teleport/integrations/operator/crdgen/ignored.go
T
Hugo Shaka 9e1f53d33a Move operator into integrations/ (#22618)
* Move operator into `integrations/`

* fixup! Move operator into `integrations/`

* fixup! fixup! Move operator into `integrations/`

* fixup! fixup! fixup! Move operator into `integrations/`

* fixup! fixup! fixup! fixup! Move operator into `integrations/`
2023-03-06 17:59:02 +00:00

41 lines
1.4 KiB
Go

/*
Copyright 2022 Gravitational, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
type stringSet map[string]struct{}
/*
Fields that we are ignoring when creating a CRD
Each entry represents the ignore fields using the resource name as the version
One of the reasons to ignore fields those fields is because they are readonly in Teleport
CRD do not support readonly logic
This should be removed when the following feature is implemented
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#transition-rules
*/
var ignoredFields = map[string]stringSet{
"UserSpecV2": stringSet{
"LocalAuth": struct{}{}, // struct{}{} is used to signify "no value".
"Expires": struct{}{},
"CreatedBy": struct{}{},
"Status": struct{}{},
},
"GithubConnectorSpecV3": {
"TeamsToLogins": struct{}{}, // Deprecated field, removed since v11
},
}