Documentation
¶
Overview ¶
Package v2alpha2 contains API Schema definitions for the config v2alpha2 API group +kubebuilder:object:generate=true +kubebuilder:skip +groupName=config.bankdata.dk
Index ¶
- Variables
- type BundleObjectStorage
- type DecisionAPIConfig
- type DecisionLog
- type DecisionLogReporting
- type ExporterConfig
- type ExporterConfigType
- type GitCredential
- type GitCredentials
- type HTTP
- type HTTPMetricsConfig
- type KafkaConfig
- type LeaderElectionConfig
- type MetricsConfig
- type NotificationWebhooksConfig
- type OPABundleServer
- type OPAConfig
- type OPAControlPlaneConfig
- type OPARestartConfig
- type PodRestartConfig
- type ProjectConfig
- func (in *ProjectConfig) DeepCopy() *ProjectConfig
- func (in *ProjectConfig) DeepCopyInto(out *ProjectConfig)
- func (in *ProjectConfig) DeepCopyObject() runtime.Object
- func (c *ProjectConfig) GetGitCredentialForRepo(repo string) *GitCredential
- func (c *ProjectConfig) OPARestartEnabled() bool
- func (c *ProjectConfig) SLPRestartEnabled() bool
- type PrometheusMetricsConfig
- type RequestContext
- type S3Handler
- type S3ObjectStorage
- type SLPRestartConfig
- type SSOConfig
- type SentryConfig
- type StyraConfig
- type TLSConfig
- type UserCredentialHandler
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "config.bankdata.dk", Version: "v2alpha2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type BundleObjectStorage ¶ added in v0.29.0
type BundleObjectStorage struct {
S3 *S3ObjectStorage `json:"s3,omitempty" yaml:"s3,omitempty"`
}
BundleObjectStorage defines the structure for object storage configuration used by bundles
func (*BundleObjectStorage) DeepCopy ¶ added in v0.29.0
func (in *BundleObjectStorage) DeepCopy() *BundleObjectStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleObjectStorage.
func (*BundleObjectStorage) DeepCopyInto ¶ added in v0.29.0
func (in *BundleObjectStorage) DeepCopyInto(out *BundleObjectStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DecisionAPIConfig ¶ added in v0.36.0
type DecisionAPIConfig struct {
ServiceURL string `json:"serviceUrl,omitempty"`
Reporting DecisionLogReporting `json:"reporting,omitempty"`
}
DecisionAPIConfig contains configuration for decision log dispatch
func (*DecisionAPIConfig) DeepCopy ¶ added in v0.36.0
func (in *DecisionAPIConfig) DeepCopy() *DecisionAPIConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecisionAPIConfig.
func (*DecisionAPIConfig) DeepCopyInto ¶ added in v0.36.0
func (in *DecisionAPIConfig) DeepCopyInto(out *DecisionAPIConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DecisionLog ¶ added in v0.15.0
type DecisionLog struct {
RequestContext RequestContext `json:"requestContext,omitempty"`
}
DecisionLog contains configuration for the decision logs
func (*DecisionLog) DeepCopy ¶ added in v0.15.0
func (in *DecisionLog) DeepCopy() *DecisionLog
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecisionLog.
func (*DecisionLog) DeepCopyInto ¶ added in v0.15.0
func (in *DecisionLog) DeepCopyInto(out *DecisionLog)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DecisionLogReporting ¶ added in v0.36.0
type DecisionLogReporting struct {
MaxDelaySeconds int `json:"maxDelaySeconds,omitempty" yaml:"maxDelaySeconds,omitempty"`
MinDelaySeconds int `json:"minDelaySeconds,omitempty" yaml:"minDelaySeconds,omitempty"`
UploadSizeLimitBytes int `json:"uploadSizeLimitBytes,omitempty" yaml:"uploadSizeLimitBytes,omitempty"`
}
DecisionLogReporting contains configuration for decision log reporting
func (*DecisionLogReporting) DeepCopy ¶ added in v0.36.0
func (in *DecisionLogReporting) DeepCopy() *DecisionLogReporting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecisionLogReporting.
func (*DecisionLogReporting) DeepCopyInto ¶ added in v0.36.0
func (in *DecisionLogReporting) DeepCopyInto(out *DecisionLogReporting)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExporterConfig ¶ added in v0.24.0
type ExporterConfig struct {
Enabled bool `json:"enabled,omitempty"`
Interval string `json:"interval,omitempty"`
Kafka *KafkaConfig `json:"kafka,omitempty"`
}
ExporterConfig contains configuration for exports
func (*ExporterConfig) DeepCopy ¶ added in v0.24.0
func (in *ExporterConfig) DeepCopy() *ExporterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExporterConfig.
func (*ExporterConfig) DeepCopyInto ¶ added in v0.24.0
func (in *ExporterConfig) DeepCopyInto(out *ExporterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExporterConfigType ¶ added in v0.25.0
type ExporterConfigType string
ExporterConfigType defines the type of exporter config
const ( // ExporterConfigTypeDecisions is the type for decisions exporter config ExporterConfigTypeDecisions ExporterConfigType = "DecisionsExporter" // ExporterConfigTypeActivity is the type for activity exporter config ExporterConfigTypeActivity ExporterConfigType = "ActivityExporter" )
type GitCredential ¶
type GitCredential struct {
// User is a http basic auth username used for git.
User string `json:"user"`
// Password is a http basic auth password used for git.
Password string `json:"password"`
// RepoPrefix specifies a repo URL prefix. eg. if RepoPrefix is set to
// `https://github.com/bankdata`, then this credentials would apply for any
// repository under the bankdata github org.
RepoPrefix string `json:"repoPrefix"`
}
GitCredential represents a set of credentials to be used for repositories that match the RepoPrefix.
func (*GitCredential) DeepCopy ¶
func (in *GitCredential) DeepCopy() *GitCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCredential.
func (*GitCredential) DeepCopyInto ¶
func (in *GitCredential) DeepCopyInto(out *GitCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCredentials ¶ added in v0.29.0
type GitCredentials struct {
ID string `json:"id"`
// RepoPrefix specifies a repo URL prefix. eg. if RepoPrefix is set to
// `https://github.com/bankdata`, then this credentials would apply for any
// repository under the bankdata github org.
RepoPrefix string `json:"repoPrefix"`
}
GitCredentials contains configuration for git credentials used by the OPA Control Plane.
func (*GitCredentials) DeepCopy ¶ added in v0.29.0
func (in *GitCredentials) DeepCopy() *GitCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCredentials.
func (*GitCredentials) DeepCopyInto ¶ added in v0.29.0
func (in *GitCredentials) DeepCopyInto(out *GitCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTP ¶ added in v0.15.1
type HTTP struct {
// http headers that will be added to the decision logs
Headers []string `json:"headers"`
}
HTTP contains configuration for the HTTP config in the RequestContext
func (*HTTP) DeepCopy ¶ added in v0.15.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTP.
func (*HTTP) DeepCopyInto ¶ added in v0.15.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPMetricsConfig ¶ added in v0.36.0
type HTTPMetricsConfig struct {
Buckets []float64 `json:"buckets,omitempty" yaml:"buckets,omitempty"`
}
HTTPMetricsConfig contains configuration for HTTP metrics
func (*HTTPMetricsConfig) DeepCopy ¶ added in v0.36.0
func (in *HTTPMetricsConfig) DeepCopy() *HTTPMetricsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMetricsConfig.
func (*HTTPMetricsConfig) DeepCopyInto ¶ added in v0.36.0
func (in *HTTPMetricsConfig) DeepCopyInto(out *HTTPMetricsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KafkaConfig ¶ added in v0.16.0
type KafkaConfig struct {
Brokers []string `json:"brokers"`
Topic string `json:"topic"`
RequiredAcks string `json:"requiredAcks"`
TLS *TLSConfig `json:"tls,omitempty"`
}
KafkaConfig contains configuration for exporting decisions to Kafka
func (*KafkaConfig) DeepCopy ¶ added in v0.16.0
func (in *KafkaConfig) DeepCopy() *KafkaConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConfig.
func (*KafkaConfig) DeepCopyInto ¶ added in v0.16.0
func (in *KafkaConfig) DeepCopyInto(out *KafkaConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LeaderElectionConfig ¶
type LeaderElectionConfig struct {
LeaseDuration metav1.Duration `json:"leaseDuration"`
RenewDeadline metav1.Duration `json:"renewDeadline"`
RetryPeriod metav1.Duration `json:"retryPeriod"`
}
LeaderElectionConfig contains configuration for leader election
func (*LeaderElectionConfig) DeepCopy ¶
func (in *LeaderElectionConfig) DeepCopy() *LeaderElectionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfig.
func (*LeaderElectionConfig) DeepCopyInto ¶
func (in *LeaderElectionConfig) DeepCopyInto(out *LeaderElectionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsConfig ¶ added in v0.36.0
type MetricsConfig struct {
Prometheus PrometheusMetricsConfig `json:"prometheus,omitempty" yaml:"prometheus,omitempty"`
}
MetricsConfig contains configuration for OPA metrics
func (*MetricsConfig) DeepCopy ¶ added in v0.36.0
func (in *MetricsConfig) DeepCopy() *MetricsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsConfig.
func (*MetricsConfig) DeepCopyInto ¶ added in v0.36.0
func (in *MetricsConfig) DeepCopyInto(out *MetricsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationWebhooksConfig ¶ added in v0.11.0
type NotificationWebhooksConfig struct {
//+kubebuilder:deprecatedversion:warning="SystemDatasourceChanged field is deprecated, only used in Styra"
// Deprecated: SystemDatasourceChanged field is deprecated, only used in Styra.
// This field will be removed in a future version.
SystemDatasourceChanged string `json:"systemDatasourceChanged,omitempty"`
//+kubebuilder:deprecatedversion:warning="LibraryDatasourceChanged field is deprecated, only used in Styra"
// Deprecated: LibraryDatasourceChanged field is deprecated, only used in Styra.
// This field will be removed in a future version.
LibraryDatasourceChanged string `json:"libraryDatasourceChanged,omitempty"`
}
NotificationWebhooksConfig contains configuration for how to call the notification webhook.
func (*NotificationWebhooksConfig) DeepCopy ¶ added in v0.11.0
func (in *NotificationWebhooksConfig) DeepCopy() *NotificationWebhooksConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationWebhooksConfig.
func (*NotificationWebhooksConfig) DeepCopyInto ¶ added in v0.11.0
func (in *NotificationWebhooksConfig) DeepCopyInto(out *NotificationWebhooksConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OPABundleServer ¶ added in v0.36.0
type OPABundleServer struct {
URL string `json:"url,omitempty" yaml:"url,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}
OPABundleServer contains configuration for the OPA bundle server
func (*OPABundleServer) DeepCopy ¶ added in v0.36.0
func (in *OPABundleServer) DeepCopy() *OPABundleServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OPABundleServer.
func (*OPABundleServer) DeepCopyInto ¶ added in v0.36.0
func (in *OPABundleServer) DeepCopyInto(out *OPABundleServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OPAConfig ¶ added in v0.15.0
type OPAConfig struct {
DecisionLogs DecisionLog `json:"decisionLogs,omitempty" yaml:"decisionLogs,omitempty"`
Metrics MetricsConfig `json:"metrics,omitempty" yaml:"metrics,omitempty"`
PersistBundle bool `json:"persist_bundle,omitempty" yaml:"persist_bundle,omitempty"`
PersistBundleDirectory string `json:"persist_bundle_directory,omitempty" yaml:"persist_bundle_directory,omitempty"` //nolint:lll
BundleServer *OPABundleServer `json:"bundleServer,omitempty" yaml:"bundleServer,omitempty"`
}
OPAConfig contains default configuration for the opa config generated by the styra-controller
func (*OPAConfig) DeepCopy ¶ added in v0.15.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OPAConfig.
func (*OPAConfig) DeepCopyInto ¶ added in v0.15.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OPAControlPlaneConfig ¶ added in v0.29.0
type OPAControlPlaneConfig struct {
// Address is the URL for the OPA Control Plane API server.
Address string `json:"address"`
// Token is a OPA Control Plane API token.
Token string `json:"token"`
// GitCredentials is the name of a secret used by the OPA Control Plane Git integration.
GitCredentials []*GitCredentials `json:"gitCredentials,omitempty"`
// BundleObjectStorage is the object storage configuration to use for bundles.
// Currently only supports aws
BundleObjectStorage *BundleObjectStorage `json:"bundleObjectStorage,omitempty"`
// DefaultRequirements is a list of requirements that will be added to all
// systems/bundles created by the controller in the OCP, in addition to any requirements/datasources
// specified on the System resource.
DefaultRequirements []string `json:"defaultRequirements,omitempty"`
// SystemDatasourceChanged is the URL to be called when a system datasource has changed.
SystemDatasourceChanged string `json:"systemDatasourceChanged,omitempty"`
// LibraryDatasourceChanged is the URL to be called when a library datasource has changed.
LibraryDatasourceChanged string `json:"libraryDatasourceChanged,omitempty"`
// DecisionAPIConfig contains configuration for which api OPAs should use to and how
DecisionAPIConfig *DecisionAPIConfig `json:"decisionAPIConfig,omitempty"`
}
OPAControlPlaneConfig defines the config for the OPA Control Plane.
func (*OPAControlPlaneConfig) DeepCopy ¶ added in v0.29.0
func (in *OPAControlPlaneConfig) DeepCopy() *OPAControlPlaneConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OPAControlPlaneConfig.
func (*OPAControlPlaneConfig) DeepCopyInto ¶ added in v0.29.0
func (in *OPAControlPlaneConfig) DeepCopyInto(out *OPAControlPlaneConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OPARestartConfig ¶ added in v0.26.0
type OPARestartConfig struct {
Enabled bool `json:"enabled"`
DeploymentType string `json:"deploymentType"`
}
OPARestartConfig contains configuration for restarting OPA pods -- This is not yet implemented
func (*OPARestartConfig) DeepCopy ¶ added in v0.26.0
func (in *OPARestartConfig) DeepCopy() *OPARestartConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OPARestartConfig.
func (*OPARestartConfig) DeepCopyInto ¶ added in v0.26.0
func (in *OPARestartConfig) DeepCopyInto(out *OPARestartConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodRestartConfig ¶ added in v0.26.0
type PodRestartConfig struct {
SLPRestart *SLPRestartConfig `json:"slpRestart,omitempty"`
OPARestart *OPARestartConfig `json:"opaRestart,omitempty"`
}
PodRestartConfig contains configuration for restarting OPA and SLP pods
func (*PodRestartConfig) DeepCopy ¶ added in v0.26.0
func (in *PodRestartConfig) DeepCopy() *PodRestartConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodRestartConfig.
func (*PodRestartConfig) DeepCopyInto ¶ added in v0.26.0
func (in *PodRestartConfig) DeepCopyInto(out *PodRestartConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectConfig ¶
type ProjectConfig struct {
metav1.TypeMeta `json:",inline"`
// ControllerClass sets a controller class for this controller. This allows
// the provided CRDs to target a specific controller. This is useful when
// running multiple controllers in the same cluster.
ControllerClass string `json:"controllerClass"`
// DeletionProtectionDefault sets the default to use with regards to deletion
// protection if it is not set on the resource.
DeletionProtectionDefault bool `json:"deletionProtectionDefault"`
// ReadOnly sets the value of ReadOnly for systems
//+kubebuilder:deprecatedversion:warning="ReadOnly field is deprecated, only used in Styra"
// Deprecated: ReadOnly field is deprecated, only used in Styra.
// This field will be removed in a future version.
ReadOnly bool `json:"readOnly"`
// EnableDeltaBundlesDefault sets the default of whether systems have delta-bundles or not
//+kubebuilder:deprecatedversion:warning="EnableDeltaBundlesDefault field is deprecated, only used in Styra"
// Deprecated: EnableDeltaBundlesDefault field is deprecated, only used in Styra.
// This field will be removed in a future version.
EnableDeltaBundlesDefault *bool `json:"enableDeltaBundlesDefault,omitempty"`
// DisableCRDWebhooks disables the CRD webhooks on the controller. If running
// multiple controllers in the same cluster, only one will need to have it's
// webhooks enabled.
DisableCRDWebhooks bool `json:"disableCRDWebhooks"`
// EnableMigrations enables the system migration annotation. This should be
// kept disabled unless migrations need to be done.
EnableMigrations bool `json:"enableMigrations"`
// DatasourceIgnorePatterns is a list of regex patterns, that allow datasources in styra
// to be ignored based on their datasource id.
//+kubebuilder:deprecatedversion:warning="DatasourceIgnorePatterns field is deprecated, only used in Styra"
// Deprecated: DatasourceIgnorePatterns field is deprecated, only used in Styra.
// This field will be removed in a future version.
DatasourceIgnorePatterns []string `json:"datasourceIgnorePatterns,omitempty"`
// GitCredentials holds a list of git credential configurations. The
// RepoPrefix of the GitCredential will be matched angainst repository URL in
// order to determine which credential to use. The GitCredential with the
// longest matching RepoPrefix will be selected.
//+kubebuilder:deprecatedversion:warning="GitCredentials field is deprecated, only used in Styra"
// Deprecated: GitCredentials field is deprecated, only used in Styra.
// This field will be removed in a future version.
GitCredentials []*GitCredential `json:"gitCredentials"`
// LogLevel sets the logging level of the controller. A higher number gives
// more verbosity. A number higher than 0 should only be used for debugging
// purposes.
LogLevel int `json:"logLevel"`
LeaderElection *LeaderElectionConfig `json:"leaderElection"`
NotificationWebhooks *NotificationWebhooksConfig `json:"notificationWebhooks,omitempty"`
Sentry *SentryConfig `json:"sentry"`
//+kubebuilder:deprecatedversion:warning="SSO field is deprecated, only used in Styra"
// Deprecated: SSO field is deprecated, only used in Styra. This field will be removed in a future version.
SSO *SSOConfig `json:"sso"`
//+kubebuilder:deprecatedversion:warning="Styra field is deprecated, use OPAControlPlaneConfig instead"
// Deprecated: Use OPAControlPlaneConfig instead. This field will be removed in a future version.
Styra StyraConfig `json:"styra"`
OPA OPAConfig `json:"opa,omitempty"`
// SystemPrefix is a prefix for all the systems that the controller creates
// in Styra DAS. This is useful in order to be able to identify what
// controller created a system in a shared Styra DAS instance.
SystemPrefix string `json:"systemPrefix"`
// SystemSuffix is a suffix for all the systems that the controller creates
// in Styra DAS. This is useful in order to be able to identify what
// controller created a system in a shared Styra DAS instance.
SystemSuffix string `json:"systemSuffix"`
// SystemUserRoles is a list of Styra DAS system level roles which the subjects of
// a system will be granted.
//+kubebuilder:deprecatedversion:warning="SystemUserRoles field is deprecated, only used in Styra"
// Deprecated: SystemUserRoles field is deprecated, only used in Styra.
// This field will be removed in a future version.
SystemUserRoles []string `json:"systemUserRoles"`
//+kubebuilder:deprecatedversion:warning="DecisionsExporter field is deprecated, only used in Styra"
// Deprecated: DecisionsExporter field is deprecated, only used in Styra.
// This field will be removed in a future version.
DecisionsExporter *ExporterConfig `json:"decisionsExporter,omitempty"`
//+kubebuilder:deprecatedversion:warning="ActivityExporter field is deprecated, only used in Styra"
// Deprecated: ActivityExporter field is deprecated, only used in Styra.
// This field will be removed in a future version.
ActivityExporter *ExporterConfig `json:"activityExporter,omitempty"`
PodRestart *PodRestartConfig `json:"podRestart,omitempty"`
// OPAControlPlaneConfig contains configuration for connecting to the
// OPA Control Plane APIs. If this is not set, the controller will not
// attempt to connect to the OPA Control Plane APIs.
OPAControlPlaneConfig *OPAControlPlaneConfig `json:"opaControlPlaneConfig,omitempty"`
// UserCredentialHandler contains configuration for the controller to handle user credentials, e.g. in S3
UserCredentialHandler *UserCredentialHandler `json:"userCredentialHandler,omitempty"`
// EnableStyraReconciliation is a flag that sets whether the controller should use Styra
// A Migration flag to enable/disable Styra DAS reconciliation for all systems and libraries.
//+kubebuilder:deprecatedversion:warning="EnableStyraReconciliation field is deprecated.
// Only used in migration versions Styra->OCP"
// Deprecated: EnableStyraReconciliation field is deprecated, only used in migration versions Styra->OCP.
// This field will be removed in a future version.
EnableStyraReconciliation bool `json:"enableStyraReconciliation,omitempty"`
// EnableOPAControlPlaneReconciliation is a flag that sets whether the controller should use OPAControlPlane
// A Migration flag to enable/disable OPA Control Plane reconciliation for all systems and libraries.
//+kubebuilder:deprecatedversion:warning="EnableOPAControlPlaneReconciliation field is deprecated,
// only used in migration versions Styra->OCP"
// Deprecated: EnableOPAControlPlaneReconciliation field is deprecated, only used in migration versions Styra->OCP.
// This field will be removed in a future version.
EnableOPAControlPlaneReconciliation bool `json:"enableOPAControlPlaneReconciliation,omitempty"`
// EnableOPAControlPlaneReconciliationTestData is a flag that sets whether the controller should create
// OPAControlPlane test data.
// A Migration flag to allow adding test data to OPA Control Plane and not to modify k8s data
//+kubebuilder:deprecatedversion:warning="EnableOPAControlPlaneReconciliationTestData field is deprecated.
// Only used in migration versions Styra->OCP"
// Deprecated: EnableOPAControlPlaneReconciliationTestData field is deprecated.
// Only used in migration versions Styra->OCP. This field will be removed in a future version.
EnableOPAControlPlaneReconciliationTestData bool `json:"enableOPAControlPlaneReconciliationTestData,omitempty"`
}
ProjectConfig is the Schema for the projectconfigs API
func (*ProjectConfig) DeepCopy ¶
func (in *ProjectConfig) DeepCopy() *ProjectConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectConfig.
func (*ProjectConfig) DeepCopyInto ¶
func (in *ProjectConfig) DeepCopyInto(out *ProjectConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectConfig) DeepCopyObject ¶
func (in *ProjectConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProjectConfig) GetGitCredentialForRepo ¶
func (c *ProjectConfig) GetGitCredentialForRepo(repo string) *GitCredential
GetGitCredentialForRepo determines which default GitCredential to use for checking out the policy repository based on the URL to the policy repository.
func (*ProjectConfig) OPARestartEnabled ¶ added in v0.26.0
func (c *ProjectConfig) OPARestartEnabled() bool
OPARestartEnabled returns true if the OPA restart is enabled
func (*ProjectConfig) SLPRestartEnabled ¶ added in v0.26.0
func (c *ProjectConfig) SLPRestartEnabled() bool
SLPRestartEnabled returns true if the OPA restart is enabled
type PrometheusMetricsConfig ¶ added in v0.36.0
type PrometheusMetricsConfig struct {
HTTP HTTPMetricsConfig `json:"http,omitempty" yaml:"http,omitempty"`
}
PrometheusMetricsConfig contains configuration for Prometheus metrics
func (*PrometheusMetricsConfig) DeepCopy ¶ added in v0.36.0
func (in *PrometheusMetricsConfig) DeepCopy() *PrometheusMetricsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusMetricsConfig.
func (*PrometheusMetricsConfig) DeepCopyInto ¶ added in v0.36.0
func (in *PrometheusMetricsConfig) DeepCopyInto(out *PrometheusMetricsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RequestContext ¶ added in v0.15.1
type RequestContext struct {
HTTP HTTP `json:"http"`
}
RequestContext contains configuration for the RequestContext in the decision logs
func (*RequestContext) DeepCopy ¶ added in v0.15.1
func (in *RequestContext) DeepCopy() *RequestContext
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestContext.
func (*RequestContext) DeepCopyInto ¶ added in v0.15.1
func (in *RequestContext) DeepCopyInto(out *RequestContext)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Handler ¶ added in v0.29.0
type S3Handler struct {
Bucket string `json:"bucket" yaml:"bucket"`
URL string `json:"url" yaml:"url"`
Region string `json:"region" yaml:"region"`
AccessKeyID string `json:"accessKeyID" yaml:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey" yaml:"secretAccessKey"`
}
S3Handler defines the structure for S3 handler configuration.
func (*S3Handler) DeepCopy ¶ added in v0.29.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Handler.
func (*S3Handler) DeepCopyInto ¶ added in v0.29.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3ObjectStorage ¶ added in v0.29.0
type S3ObjectStorage struct {
Bucket string `json:"bucket"`
URL string `json:"url,omitempty"`
Region string `json:"region"`
OCPConfigSecretName string `json:"ocpConfigSecretName"`
}
S3ObjectStorage defines the structure for S3 object storage configuration.
func (*S3ObjectStorage) DeepCopy ¶ added in v0.29.0
func (in *S3ObjectStorage) DeepCopy() *S3ObjectStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3ObjectStorage.
func (*S3ObjectStorage) DeepCopyInto ¶ added in v0.29.0
func (in *S3ObjectStorage) DeepCopyInto(out *S3ObjectStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SLPRestartConfig ¶ added in v0.26.0
type SLPRestartConfig struct {
Enabled bool `json:"enabled"`
DeploymentType string `json:"deploymentType"` // DeploymentType only currently supports "StatefulSet""
}
SLPRestartConfig contains configuration for restarting SLP pods
func (*SLPRestartConfig) DeepCopy ¶ added in v0.26.0
func (in *SLPRestartConfig) DeepCopy() *SLPRestartConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SLPRestartConfig.
func (*SLPRestartConfig) DeepCopyInto ¶ added in v0.26.0
func (in *SLPRestartConfig) DeepCopyInto(out *SLPRestartConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSOConfig ¶
type SSOConfig struct {
// IdentityProvider is the ID of a configured Styra DAS identity provider.
IdentityProvider string `json:"identityProvider"`
// JWTGroupsClaim is the json path to a claim in issued JWTs which contain a
// list of groups that the user belongs to.
JWTGroupsClaim string `json:"jwtGroupsClaim"`
}
SSOConfig contains configuration for how to use SSO tokens for determining what groups a user belongs to. This can be used to grant members of a certain group access to systems.
func (*SSOConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSOConfig.
func (*SSOConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentryConfig ¶
type SentryConfig struct {
// Debug enables Sentry client debugging.
Debug bool `json:"debug"`
// DSN is the Sentry project DSN.
DSN string `json:"dsn"`
// Environment sets the environment of the events sent to Sentry.
Environment string `json:"environment"`
// HTTPSProxy sets an HTTP proxy server for sentry to use.
HTTPSProxy string `json:"httpsProxy"`
}
SentryConfig contains configuration for how errors should be reported to sentry.
func (*SentryConfig) DeepCopy ¶
func (in *SentryConfig) DeepCopy() *SentryConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentryConfig.
func (*SentryConfig) DeepCopyInto ¶
func (in *SentryConfig) DeepCopyInto(out *SentryConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StyraConfig ¶
type StyraConfig struct {
// Address is the URL for the Styra DAS API server.
Address string `json:"address"`
// Token is a Styra DAS API token. These can be created in the Styra DAS GUI
// or through the API. The token should have the `WorkspaceAdministrator` role.
Token string `json:"token"`
// Alternative to the "token" whice define the Styra DAS API token directly in the config file,
// this "tokenSecretPath" will use a token from a secret (only if "token" is not set)
TokenSecretPath string `json:"tokenSecretPath"`
}
StyraConfig contains configuration for connecting to the Styra DAS apis
func (*StyraConfig) DeepCopy ¶
func (in *StyraConfig) DeepCopy() *StyraConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StyraConfig.
func (*StyraConfig) DeepCopyInto ¶
func (in *StyraConfig) DeepCopyInto(out *StyraConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLSConfig ¶ added in v0.16.0
type TLSConfig struct {
ClientCertificateName string `json:"clientCertificateName"`
ClientCertificate string `json:"clientCertificate"`
ClientKey string `json:"clientKey"`
RootCA string `json:"rootCA"`
InsecureSkipVerify bool `json:"insecureSkipVerify"`
}
TLSConfig contains TLS configuration for Kafka decisions export.
func (*TLSConfig) DeepCopy ¶ added in v0.16.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
func (*TLSConfig) DeepCopyInto ¶ added in v0.16.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserCredentialHandler ¶ added in v0.29.0
type UserCredentialHandler struct {
S3 *S3Handler `json:"s3,omitempty" yaml:"s3,omitempty"`
}
UserCredentialHandler defines the structure of possible user credential handlers
func (*UserCredentialHandler) DeepCopy ¶ added in v0.29.0
func (in *UserCredentialHandler) DeepCopy() *UserCredentialHandler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserCredentialHandler.
func (*UserCredentialHandler) DeepCopyInto ¶ added in v0.29.0
func (in *UserCredentialHandler) DeepCopyInto(out *UserCredentialHandler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.