v1alpha1

package
v0.0.0-...-d6bbe04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cloudflare v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloudflare.zelic.io

Index

Constants

View Source
const (
	AnnotationClientIDKey     = "cloudflare.zelic.io/client-id-key"
	AnnotationClientSecretKey = "cloudflare.zelic.io/client-secret-key"
	AnnotationTokenIDKey      = "cloudflare.zelic.io/token-id-key"
	LabelOwnedBy              = "cloudflare.zelic.io/owned-by"
	FinalizerDeletion         = "cloudflare.zelic.io/finalizer"
	AnnotationPreventDestroy  = "cloudflare.zelic.io/prevent-destroy"
)

nolint: gosec

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "cloudflare.zelic.io", Version: "v1alpha1"} //nolint

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} //nolint

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme //nolint
)

Functions

This section is empty.

Types

type AccessGroup

type AccessGroup struct {
	// Optional: no more than one of the following may be specified.
	// ID of the CloudflareAccessGroup
	// +optional
	Value string `json:"value,omitempty" protobuf:"bytes,1,opt,name=value"`
	// Source for the CloudflareAccessGroup's variable. Cannot be used if value is not empty.
	// +optional
	ValueFrom *AccessGroupReference `json:"valueFrom,omitempty" protobuf:"bytes,2,opt,name=valueFrom"`
}

func (*AccessGroup) DeepCopy

func (in *AccessGroup) DeepCopy() *AccessGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessGroup.

func (*AccessGroup) DeepCopyInto

func (in *AccessGroup) DeepCopyInto(out *AccessGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessGroupReference

type AccessGroupReference struct {
	// `namespace` is the namespace of the AccessGroup.
	// Required
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
	// `name` is the name of the AccessGroup .
	// Required
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
}

func (*AccessGroupReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessGroupReference.

func (*AccessGroupReference) DeepCopyInto

func (in *AccessGroupReference) DeepCopyInto(out *AccessGroupReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccessGroupReference) ToNamespacedName

func (g *AccessGroupReference) ToNamespacedName() types.NamespacedName

type CloudFlareAccessGroupRule

type CloudFlareAccessGroupRule struct {
	// Matches a Specific email
	Emails []string `json:"emails,omitempty"`

	// Matches a specific email Domain
	EmailDomains []string `json:"emailDomains,omitempty"`

	// Matches an IP CIDR block
	IPRanges []string `json:"ipRanges,omitempty"`

	// Reference to other access groups
	AccessGroups []AccessGroup `json:"accessGroups,omitempty"`

	// Country
	Country []string `json:"country,omitempty"`

	// Allow Everyone
	Everyone *bool `json:"everyone,omitempty"`

	// Certificate CN
	CommonName []string `json:"commonName,omitempty"`

	// Any valid certificate will be matched
	ValidCertificate *bool `json:"validCertificate,omitempty"`

	// Matches a service token
	ServiceToken []ServiceToken `json:"serviceToken,omitempty"`

	// Matches any valid service token
	AnyAccessServiceToken *bool `json:"anyAccessServiceToken,omitempty"`

	// ID of the login method
	LoginMethod []string `json:"loginMethod,omitempty"`

	// Matches Google Group
	GoogleGroups []GoogleGroup `json:"googleGroups,omitempty"`

	// // Okta Groups
	OktaGroup []OktaGroup `json:"oktaGroup,omitempty"`
}

func (*CloudFlareAccessGroupRule) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudFlareAccessGroupRule.

func (*CloudFlareAccessGroupRule) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudFlareAccessGroupRuleGroups

type CloudFlareAccessGroupRuleGroups [][]CloudFlareAccessGroupRule

func (CloudFlareAccessGroupRuleGroups) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudFlareAccessGroupRuleGroups.

func (CloudFlareAccessGroupRuleGroups) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (CloudFlareAccessGroupRuleGroups) TransformCloudflareRuleFields

func (c CloudFlareAccessGroupRuleGroups) TransformCloudflareRuleFields(managedCFFields []*[]interface{})

nolint: gocognit,cyclop

type CloudflareAccessApplication

type CloudflareAccessApplication struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CloudflareAccessApplicationSpec   `json:"spec,omitempty"`
	Status CloudflareAccessApplicationStatus `json:"status,omitempty"`
}

CloudflareAccessApplication is the Schema for the cloudflareaccessapplications API.

func (*CloudflareAccessApplication) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessApplication.

func (*CloudflareAccessApplication) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareAccessApplication) DeepCopyObject

func (in *CloudflareAccessApplication) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CloudflareAccessApplication) GetID

func (*CloudflareAccessApplication) GetType

func (c *CloudflareAccessApplication) GetType() string

func (*CloudflareAccessApplication) ToCloudflare

func (*CloudflareAccessApplication) UnderDeletion

func (c *CloudflareAccessApplication) UnderDeletion() bool

type CloudflareAccessApplicationList

type CloudflareAccessApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CloudflareAccessApplication `json:"items"`
}

CloudflareAccessApplicationList contains a list of CloudflareAccessApplication.

func (*CloudflareAccessApplicationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessApplicationList.

func (*CloudflareAccessApplicationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareAccessApplicationList) DeepCopyObject

func (in *CloudflareAccessApplicationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CloudflareAccessApplicationSpec

type CloudflareAccessApplicationSpec struct {
	// Name of the Cloudflare Access Application
	Name string `json:"name"`

	// The domain and path that Access will secure.
	// ex: "test.example.com/admin"
	Domain string `json:"domain"`

	// The application type. defaults to "self_hosted"
	// +optional
	// +kubebuilder:default=self_hosted
	Type cloudflare.AccessApplicationType `json:"type,omitempty"`

	// Displays the application in the App Launcher.
	// +optional
	// +kubebuilder:default=true
	AppLauncherVisible *bool `json:"appLauncherVisible,omitempty"`

	// The identity providers your users can select when connecting to this application. Defaults to all IdPs configured in your account.
	// ex: ["699d98642c564d2e855e9661899b7252"]
	// +optional
	// +kubebuilder:default={}
	AllowedIdps []string `json:"allowedIdps,omitempty"`

	// When set to true, users skip the identity provider selection step during login.
	// You must specify only one identity provider in allowed_idps.
	// +optional
	// +kubebuilder:default=false
	AutoRedirectToIdentity *bool `json:"autoRedirectToIdentity,omitempty"`

	// Policies is the ordered set of policies that should be applied to the application
	// Order determines precidence
	// +optional
	Policies CloudflareAccessPolicyList `json:"policies,omitempty"`

	// SessionDuration is the length of the session duration.
	// +optional
	// +kubebuilder:default="24h"
	SessionDuration string `json:"sessionDuration,omitempty"`

	// Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks.
	// +optional
	// +kubebuilder:default=false
	EnableBindingCookie *bool `json:"enableBindingCookie,omitempty"`

	// Enables the HttpOnly cookie attribute, which increases security against XSS attacks.
	// +optional
	// +kubebuilder:default=true
	HTTPOnlyCookieAttribute *bool `json:"httpOnlyCookieAttribute,omitempty"`

	// The image URL for the logo shown in the App Launcher dashboard
	// +optional
	LogoURL string `json:"logoUrl,omitempty"`
}

CloudflareAccessApplicationSpec defines the desired state of CloudflareAccessApplication.

func (*CloudflareAccessApplicationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessApplicationSpec.

func (*CloudflareAccessApplicationSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareAccessApplicationStatus

type CloudflareAccessApplicationStatus struct {
	AccessApplicationID string      `json:"accessApplicationId,omitempty"`
	CreatedAt           metav1.Time `json:"createdAt,omitempty"`
	UpdatedAt           metav1.Time `json:"updatedAt,omitempty"`

	// Conditions store the status conditions of the CloudflareAccessApplication
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,1,rep,name=conditions"`
}

CloudflareAccessApplicationStatus defines the observed state of CloudflareAccessApplication.

func (*CloudflareAccessApplicationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessApplicationStatus.

func (*CloudflareAccessApplicationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareAccessGroup

type CloudflareAccessGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CloudflareAccessGroupSpec   `json:"spec,omitempty"`
	Status CloudflareAccessGroupStatus `json:"status,omitempty"`
}

CloudflareAccessGroup is the Schema for the cloudflareaccessgroups API.

func (*CloudflareAccessGroup) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessGroup.

func (*CloudflareAccessGroup) DeepCopyInto

func (in *CloudflareAccessGroup) DeepCopyInto(out *CloudflareAccessGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareAccessGroup) DeepCopyObject

func (in *CloudflareAccessGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CloudflareAccessGroup) GetID

func (c *CloudflareAccessGroup) GetID() string

func (*CloudflareAccessGroup) GetType

func (c *CloudflareAccessGroup) GetType() string

func (*CloudflareAccessGroup) ToCloudflare

func (c *CloudflareAccessGroup) ToCloudflare() cloudflare.AccessGroup

func (*CloudflareAccessGroup) UnderDeletion

func (c *CloudflareAccessGroup) UnderDeletion() bool

type CloudflareAccessGroupList

type CloudflareAccessGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CloudflareAccessGroup `json:"items"`
}

CloudflareAccessGroupList contains a list of CloudflareAccessGroup.

func (*CloudflareAccessGroupList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessGroupList.

func (*CloudflareAccessGroupList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareAccessGroupList) DeepCopyObject

func (in *CloudflareAccessGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CloudflareAccessGroupSpec

type CloudflareAccessGroupSpec struct {
	// Name of the Cloudflare Access Group
	Name string `json:"name"`

	// Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules.
	Include []CloudFlareAccessGroupRule `json:"include,omitempty"`

	// Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules.
	Require []CloudFlareAccessGroupRule `json:"require,omitempty"`

	// Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules.
	Exclude []CloudFlareAccessGroupRule `json:"exclude,omitempty"`
}

CloudflareAccessGroupSpec defines the desired state of CloudflareAccessGroup.

func (*CloudflareAccessGroupSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessGroupSpec.

func (*CloudflareAccessGroupSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareAccessGroupStatus

type CloudflareAccessGroupStatus struct {
	// AccessGroupID is the ID of the reference in Cloudflare
	AccessGroupID string `json:"accessGroupId,omitempty"`

	// Creation timestamp of the resource in Cloudflare
	CreatedAt metav1.Time `json:"createdAt,omitempty"`

	// Updated timestamp of the resource in Cloudflare
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`

	// Conditions store the status conditions of the CloudflareAccessApplication
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,1,rep,name=conditions"`
}

CloudflareAccessGroupStatus defines the observed state of CloudflareAccessGroup.

func (*CloudflareAccessGroupStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessGroupStatus.

func (*CloudflareAccessGroupStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareAccessPolicy

type CloudflareAccessPolicy struct {
	// Name of the Cloudflare Access Policy
	Name string `json:"name"`

	// Decision ex: allow, deny, non_identity, bypass - defaults to allow
	Decision string `json:"decision"`

	// Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules.
	Include []CloudFlareAccessGroupRule `json:"include,omitempty"`

	// Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules.
	// +optional
	Require []CloudFlareAccessGroupRule `json:"require,omitempty"`

	// Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules.
	// +optional
	Exclude []CloudFlareAccessGroupRule `json:"exclude,omitempty"`
}

func (*CloudflareAccessPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessPolicy.

func (*CloudflareAccessPolicy) DeepCopyInto

func (in *CloudflareAccessPolicy) DeepCopyInto(out *CloudflareAccessPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareAccessPolicyList

type CloudflareAccessPolicyList []CloudflareAccessPolicy

func (CloudflareAccessPolicyList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareAccessPolicyList.

func (CloudflareAccessPolicyList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (CloudflareAccessPolicyList) ToCloudflare

type CloudflareServiceToken

type CloudflareServiceToken struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CloudflareServiceTokenSpec   `json:"spec,omitempty"`
	Status CloudflareServiceTokenStatus `json:"status,omitempty"`
}

CloudflareServiceToken is the Schema for the cloudflareservicetokens API.

func (*CloudflareServiceToken) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareServiceToken.

func (*CloudflareServiceToken) DeepCopyInto

func (in *CloudflareServiceToken) DeepCopyInto(out *CloudflareServiceToken)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareServiceToken) DeepCopyObject

func (in *CloudflareServiceToken) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CloudflareServiceToken) GetID

func (c *CloudflareServiceToken) GetID() string

func (*CloudflareServiceToken) GetType

func (c *CloudflareServiceToken) GetType() string

func (CloudflareServiceToken) ToExtendedToken

func (*CloudflareServiceToken) UnderDeletion

func (c *CloudflareServiceToken) UnderDeletion() bool

type CloudflareServiceTokenList

type CloudflareServiceTokenList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CloudflareServiceToken `json:"items"`
}

CloudflareServiceTokenList contains a list of CloudflareServiceToken.

func (*CloudflareServiceTokenList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareServiceTokenList.

func (*CloudflareServiceTokenList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudflareServiceTokenList) DeepCopyObject

func (in *CloudflareServiceTokenList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CloudflareServiceTokenSpec

type CloudflareServiceTokenSpec struct {
	// Name of the Cloudflare Access Group
	Name string `json:"name"`

	// Time before the token should be automatically renewed. Defaults to "0"
	// Automatically renewing a service token will change the service token value upon renewal.
	// Tokens will get automatically renewed if the token is expired
	// +optional
	// +kubebuilder:default="0"
	MinTimeBeforeRenewal string `json:"minTimeBeforeRenewal,omitempty"`

	// Recreate the token if the secret with the service token value is missing or doesn't exist
	// +kubebuilder:default=true
	RecreateMissing bool `json:"recreateMissing,omitempty"`

	// Template to apply for the generated secret
	// +optional
	// +kubebuilder:default={"metadata": {}}
	Template SecretTemplateSpec `json:"template,omitempty"`
}

CloudflareServiceTokenSpec defines the desired state of CloudflareServiceToken.

func (*CloudflareServiceTokenSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareServiceTokenSpec.

func (*CloudflareServiceTokenSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudflareServiceTokenStatus

type CloudflareServiceTokenStatus struct {
	// ID of the servicetoken in Cloudflare
	ServiceTokenID string `json:"serviceTokenId,omitempty"`

	// Creation timestamp of the resource in Cloudflare
	CreatedAt metav1.Time `json:"createdAt,omitempty"`

	// Updated timestamp of the resource in Cloudflare
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`

	// Updated timestamp of the resource in Cloudflare
	ExpiresAt metav1.Time `json:"expiresAt,omitempty"`

	// SecretRef is the reference to the secret
	// +optional
	// +nullable
	SecretRef *SecretRef `json:"secretRef,omitempty"`

	// Conditions store the status conditions of the CloudflareAccessApplication
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,1,rep,name=conditions"`
}

CloudflareServiceTokenStatus defines the observed state of CloudflareServiceToken.

func (*CloudflareServiceTokenStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudflareServiceTokenStatus.

func (*CloudflareServiceTokenStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GoogleGroup

type GoogleGroup struct {
	// Google group email
	Email string `json:"email"`
	// Identity Provider Id
	IdentityProviderID string `json:"identityProviderId"`
}

func (*GoogleGroup) DeepCopy

func (in *GoogleGroup) DeepCopy() *GoogleGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleGroup.

func (*GoogleGroup) DeepCopyInto

func (in *GoogleGroup) DeepCopyInto(out *GoogleGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OktaGroup

type OktaGroup struct {
	// Name of the Okta Group
	Name string `json:"name"`
	// Identity Provider Id
	IdentityProviderID string `json:"identityProviderId"`
}

func (*OktaGroup) DeepCopy

func (in *OktaGroup) DeepCopy() *OktaGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OktaGroup.

func (*OktaGroup) DeepCopyInto

func (in *OktaGroup) DeepCopyInto(out *OktaGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRef

type SecretRef struct {
	// reference to the secret
	corev1.LocalObjectReference `json:"reference,omitempty"`
	// Key that stores the secret data.
	ClientSecretKey string `json:"clientSecretKey,omitempty"`

	// Key that stores the secret data.
	ClientIDKey string `json:"clientIdKey,omitempty"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretTemplateSpec

type SecretTemplateSpec struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	// +nullable
	// +kubebuilder:validation:XPreserveUnknownFields
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Key that should store the secret data. Defaults to cloudflareServiceToken
	// Warning: changing this value will recreate the secret
	// +optional
	// +kubebuilder:default=cloudflareSecretKey
	ClientSecretKey string `json:"clientSecretKey,omitempty"`

	// Key that should store the secret data. Defaults to cloudflareServiceToken.
	// Warning: changing this value will recreate the secret
	// +optional
	// +kubebuilder:default=cloudflareClientId
	ClientIDKey string `json:"clientIdKey,omitempty"`
}

func (*SecretTemplateSpec) DeepCopy

func (in *SecretTemplateSpec) DeepCopy() *SecretTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateSpec.

func (*SecretTemplateSpec) DeepCopyInto

func (in *SecretTemplateSpec) DeepCopyInto(out *SecretTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceToken

type ServiceToken struct {
	// Optional: no more than one of the following may be specified.
	// ID of the CloudflareServiceToken
	// +optional
	Value string `json:"value,omitempty" protobuf:"bytes,1,opt,name=value"`
	// Source for the CloudflareServiceToken's variable. Cannot be used if value is not empty.
	// +optional
	ValueFrom *ServiceTokenReference `json:"valueFrom,omitempty" protobuf:"bytes,2,opt,name=valueFrom"`
}

func (*ServiceToken) DeepCopy

func (in *ServiceToken) DeepCopy() *ServiceToken

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceToken.

func (*ServiceToken) DeepCopyInto

func (in *ServiceToken) DeepCopyInto(out *ServiceToken)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceTokenReference

type ServiceTokenReference struct {
	// `namespace` is the namespace of the AccessGroup.
	// Required
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
	// `name` is the name of the AccessGroup .
	// Required
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
}

func (*ServiceTokenReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTokenReference.

func (*ServiceTokenReference) DeepCopyInto

func (in *ServiceTokenReference) DeepCopyInto(out *ServiceTokenReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceTokenReference) ToNamespacedName

func (g *ServiceTokenReference) ToNamespacedName() types.NamespacedName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL