v1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceRules

type NamespaceRules struct {
	Exclude      types.StringSlice `json:"exclude"`
	ExcludeRegex types.StringSlice `json:"excludeRegex"`
	Include      types.StringSlice `json:"include"`
	IncludeRegex types.StringSlice `json:"includeRegex"`
}

NamespaceRules include all rules for namepsaces to sync to.

func (*NamespaceRules) DeepCopy

func (in *NamespaceRules) DeepCopy() *NamespaceRules

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

func (*NamespaceRules) DeepCopyInto

func (in *NamespaceRules) DeepCopyInto(out *NamespaceRules)

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

type Rules

type Rules struct {
	Namespaces NamespaceRules `json:"namespaces"`
	Force      bool           `json:"force"`
}

Rules contains all rules for the secret to follow

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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

type Secret added in v1.2.0

type Secret struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

Secret defines the attributes of the Secret to sync

func (*Secret) DeepCopy added in v1.2.0

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto added in v1.2.0

func (in *Secret) DeepCopyInto(out *Secret)

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

type SecretSyncRule

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

	Spec SecretSyncRuleSpec `json:"spec"`
}

SecretSyncRule is the definition for the SecretSyncRule CRD

func (*SecretSyncRule) DeepCopy

func (in *SecretSyncRule) DeepCopy() *SecretSyncRule

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

func (*SecretSyncRule) DeepCopyInto

func (in *SecretSyncRule) DeepCopyInto(out *SecretSyncRule)

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

func (*SecretSyncRule) DeepCopyObject

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

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

func (*SecretSyncRule) Namespaces

func (rule *SecretSyncRule) Namespaces(ctx context.Context, clientset kubernetes.Interface) (namespaces []v1.Namespace)

Namespaces returns a list of all namespaces that the given Rule allows for syncing

func (*SecretSyncRule) ShouldSyncNamespace

func (rule *SecretSyncRule) ShouldSyncNamespace(namespace *v1.Namespace) bool

ShouldSyncNamespace determines whether or not the given Namespace should be synced

func (*SecretSyncRule) ShouldSyncSecret

func (rule *SecretSyncRule) ShouldSyncSecret(secret *v1.Secret) bool

ShouldSyncSecret determines whether or not the given Secret should be synced

type SecretSyncRuleList

type SecretSyncRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []SecretSyncRule `json:"items"`
}

SecretSyncRuleList is the definition for the SecretSyncRule CRD list

func (*SecretSyncRuleList) DeepCopy

func (in *SecretSyncRuleList) DeepCopy() *SecretSyncRuleList

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

func (*SecretSyncRuleList) DeepCopyInto

func (in *SecretSyncRuleList) DeepCopyInto(out *SecretSyncRuleList)

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

func (*SecretSyncRuleList) DeepCopyObject

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

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

func (*SecretSyncRuleList) ShouldSyncNamespace

func (list *SecretSyncRuleList) ShouldSyncNamespace(namespace *v1.Namespace) bool

ShouldSyncNamespace iterates over the list to determine whether or not the given Namespace should be synced

func (*SecretSyncRuleList) ShouldSyncSecret

func (list *SecretSyncRuleList) ShouldSyncSecret(secret *v1.Secret) bool

ShouldSyncSecret iterates over the list to determine whether or not the given Secret should be synced

type SecretSyncRuleSpec

type SecretSyncRuleSpec struct {
	Secret Secret `json:"secret"`
	Rules  Rules  `json:"rules"`
}

SecretSyncRuleSpec is the spec attribute of the SecretSyncRule CRD

func (*SecretSyncRuleSpec) DeepCopy

func (in *SecretSyncRuleSpec) DeepCopy() *SecretSyncRuleSpec

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

func (*SecretSyncRuleSpec) DeepCopyInto

func (in *SecretSyncRuleSpec) DeepCopyInto(out *SecretSyncRuleSpec)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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