v1beta1

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the gkehub v1beta1 API group +kubebuilder:object:generate=true +groupName=gkehub.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme

	GKEHubFeatureMembershipGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    "GKEHubFeatureMembership",
	}
)
View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "gkehub.cnrm.cloud.google.com", Version: "v1beta1"}
)

Functions

This section is empty.

Types

type FeatureProjectRef added in v1.124.0

type FeatureProjectRef struct {
	/* The project of the feature. Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).*/
	External string `json:"external,omitempty"`
	/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
	Name string `json:"name,omitempty"`
	/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
	Namespace string `json:"namespace,omitempty"`
}

func (*FeatureProjectRef) DeepCopy added in v1.124.0

func (in *FeatureProjectRef) DeepCopy() *FeatureProjectRef

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

func (*FeatureProjectRef) DeepCopyInto added in v1.124.0

func (in *FeatureProjectRef) DeepCopyInto(out *FeatureProjectRef)

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

type FeatureRef added in v1.124.0

type FeatureRef struct {
	/* The name of the feature. Allowed value: The Google Cloud resource name of a `GKEHubFeature` resource (format: `projects/{{project}}/locations/{{location}}/features/{{name}}`). */
	External string `json:"external,omitempty"`
	/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
	Name string `json:"name,omitempty"`
	/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
	Namespace string `json:"namespace,omitempty"`
}

func (*FeatureRef) DeepCopy added in v1.124.0

func (in *FeatureRef) DeepCopy() *FeatureRef

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

func (*FeatureRef) DeepCopyInto added in v1.124.0

func (in *FeatureRef) DeepCopyInto(out *FeatureRef)

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

type FeaturemembershipBinauthz

type FeaturemembershipBinauthz struct {
	/* Whether binauthz is enabled in this cluster. */
	// +optional
	Enabled *bool `json:"enabled,omitempty"`
}

func (*FeaturemembershipBinauthz) DeepCopy

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

func (*FeaturemembershipBinauthz) DeepCopyInto

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

type FeaturemembershipConfigSync

type FeaturemembershipConfigSync struct {
	// +optional
	Git *FeaturemembershipGit `json:"git,omitempty"`

	// +optional
	MetricsGcpServiceAccountRef *refs.MetricsGcpServiceAccountRef `json:"metricsGcpServiceAccountRef,omitempty"`

	// +optional
	Oci *FeaturemembershipOci `json:"oci,omitempty"`

	/* Set to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts. */
	// +optional
	PreventDrift *bool `json:"preventDrift,omitempty"`

	/* Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. */
	// +optional
	SourceFormat *string `json:"sourceFormat,omitempty"`
}

func (*FeaturemembershipConfigSync) DeepCopy

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

func (*FeaturemembershipConfigSync) DeepCopyInto

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

type FeaturemembershipConfigmanagement

type FeaturemembershipConfigmanagement struct {
	/* **DEPRECATED** Binauthz configuration for the cluster. This field will be ignored and should not be set. */
	// +optional
	Binauthz *FeaturemembershipBinauthz `json:"binauthz,omitempty"`

	/* Config Sync configuration for the cluster. */
	// +optional
	ConfigSync *FeaturemembershipConfigSync `json:"configSync,omitempty"`

	/* Hierarchy Controller is no longer available. Use https://github.com/kubernetes-sigs/hierarchical-namespaces instead. */
	// +optional
	HierarchyController *FeaturemembershipHierarchyController `json:"hierarchyController,omitempty"`

	/* **DEPRECATED** Configuring Policy Controller through the configmanagement feature is no longer recommended. Use the policycontroller feature instead. */
	// +optional
	PolicyController *FeaturemembershipPolicyController `json:"policyController,omitempty"`

	/* Optional. Version of ACM to install. Defaults to the latest version. */
	// +optional
	Version *string `json:"version,omitempty"`

	/* Optional. Whether to automatically manage the configmanagement Feature. There are 3 accepted values. MANAGEMENT_UNSPECIFIED means that the mamangement mode is unspecified. MANAGEMENT_AUTOMATIC means that Google manages the Feature for the cluster. MANAGEMENT_MANUAL means that users should manage the Feature for the cluster. */
	// +optional
	Management *string `json:"management,omitempty"`
}

func (*FeaturemembershipConfigmanagement) DeepCopy

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

func (*FeaturemembershipConfigmanagement) DeepCopyInto

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

type FeaturemembershipGit

type FeaturemembershipGit struct {
	// +optional
	GcpServiceAccountRef *refs.IAMServiceAccountRef `json:"gcpServiceAccountRef,omitempty"`

	/* URL for the HTTPS proxy to be used when communicating with the Git repo. */
	// +optional
	HttpsProxy *string `json:"httpsProxy,omitempty"`

	/* The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. */
	// +optional
	PolicyDir *string `json:"policyDir,omitempty"`

	/* Type of secret configured for access to the Git repo. Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this is case-sensitive. */
	// +optional
	SecretType *string `json:"secretType,omitempty"`

	/* The branch of the repository to sync from. Default: master. */
	// +optional
	SyncBranch *string `json:"syncBranch,omitempty"`

	/* The URL of the Git repository to use as the source of truth. */
	// +optional
	SyncRepo *string `json:"syncRepo,omitempty"`

	/* Git revision (tag or hash) to check out. Default HEAD. */
	// +optional
	SyncRev *string `json:"syncRev,omitempty"`

	/* Period in seconds between consecutive syncs. Default: 15. */
	// +optional
	SyncWaitSecs *string `json:"syncWaitSecs,omitempty"`
}

func (*FeaturemembershipGit) DeepCopy

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

func (*FeaturemembershipGit) DeepCopyInto

func (in *FeaturemembershipGit) DeepCopyInto(out *FeaturemembershipGit)

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

type FeaturemembershipHierarchyController

type FeaturemembershipHierarchyController struct {
	/* Whether hierarchical resource quota is enabled in this cluster. */
	// +optional
	EnableHierarchicalResourceQuota *bool `json:"enableHierarchicalResourceQuota,omitempty"`

	/* Whether pod tree labels are enabled in this cluster. */
	// +optional
	EnablePodTreeLabels *bool `json:"enablePodTreeLabels,omitempty"`

	/* Whether Hierarchy Controller is enabled in this cluster. */
	// +optional
	Enabled *bool `json:"enabled,omitempty"`
}

func (*FeaturemembershipHierarchyController) DeepCopy

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

func (*FeaturemembershipHierarchyController) DeepCopyInto

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

type FeaturemembershipMesh

type FeaturemembershipMesh struct {
	/* **DEPRECATED** Whether to automatically manage Service Mesh control planes. Possible values: CONTROL_PLANE_MANAGEMENT_UNSPECIFIED, AUTOMATIC, MANUAL */
	// +optional
	ControlPlane *string `json:"controlPlane,omitempty"`

	/* Whether to automatically manage Service Mesh. Possible values: MANAGEMENT_UNSPECIFIED, MANAGEMENT_AUTOMATIC, MANAGEMENT_MANUAL */
	// +optional
	Management *string `json:"management,omitempty"`
}

func (*FeaturemembershipMesh) DeepCopy

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

func (*FeaturemembershipMesh) DeepCopyInto

func (in *FeaturemembershipMesh) DeepCopyInto(out *FeaturemembershipMesh)

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

type FeaturemembershipMonitoring

type FeaturemembershipMonitoring struct {
	/* Specifies the list of backends Policy Controller will export to. Specifying an empty value `[]` disables metrics export. */
	// +optional
	Backends []string `json:"backends,omitempty"`
}

func (*FeaturemembershipMonitoring) DeepCopy

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

func (*FeaturemembershipMonitoring) DeepCopyInto

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

type FeaturemembershipOci

type FeaturemembershipOci struct {
	// +optional
	GcpServiceAccountRef *refs.IAMServiceAccountRef `json:"gcpServiceAccountRef,omitempty"`

	/* The absolute path of the directory that contains the local resources. Default: the root directory of the image. */
	// +optional
	PolicyDir *string `json:"policyDir,omitempty"`

	/* Type of secret configured for access to the OCI Image. Must be one of gcenode, gcpserviceaccount or none. The validation of this is case-sensitive. */
	// +optional
	SecretType *string `json:"secretType,omitempty"`

	/* The OCI image repository URL for the package to sync from. e.g. LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME. */
	// +optional
	SyncRepo *string `json:"syncRepo,omitempty"`

	/* Period in seconds(int64 format) between consecutive syncs. Default: 15. */
	// +optional
	SyncWaitSecs *string `json:"syncWaitSecs,omitempty"`
}

func (*FeaturemembershipOci) DeepCopy

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

func (*FeaturemembershipOci) DeepCopyInto

func (in *FeaturemembershipOci) DeepCopyInto(out *FeaturemembershipOci)

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

type FeaturemembershipPolicyContent

type FeaturemembershipPolicyContent struct {
	/* Configures the installation of the Template Library. */
	// +optional
	TemplateLibrary *FeaturemembershipTemplateLibrary `json:"templateLibrary,omitempty"`
}

func (*FeaturemembershipPolicyContent) DeepCopy

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

func (*FeaturemembershipPolicyContent) DeepCopyInto

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

type FeaturemembershipPolicyController

type FeaturemembershipPolicyController struct {
	/* Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
	// +optional
	AuditIntervalSeconds *string `json:"auditIntervalSeconds,omitempty"`

	/* Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. */
	// +optional
	Enabled *bool `json:"enabled,omitempty"`

	/* The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
	// +optional
	ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`

	/* Logs all denies and dry run failures. */
	// +optional
	LogDeniesEnabled *bool `json:"logDeniesEnabled,omitempty"`

	/* Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"] */
	// +optional
	Monitoring *FeaturemembershipMonitoring `json:"monitoring,omitempty"`

	/* Enable or disable mutation in policy controller. If true, mutation CRDs, webhook and controller deployment will be deployed to the cluster. */
	// +optional
	MutationEnabled *bool `json:"mutationEnabled,omitempty"`

	/* Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
	// +optional
	ReferentialRulesEnabled *bool `json:"referentialRulesEnabled,omitempty"`

	/* Installs the default template library along with Policy Controller. */
	// +optional
	TemplateLibraryInstalled *bool `json:"templateLibraryInstalled,omitempty"`
}

func (*FeaturemembershipPolicyController) DeepCopy

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

func (*FeaturemembershipPolicyController) DeepCopyInto

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

type FeaturemembershipPolicyControllerHubConfig

type FeaturemembershipPolicyControllerHubConfig struct {
	/* Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
	// +optional
	AuditIntervalSeconds *int64 `json:"auditIntervalSeconds,omitempty"`

	/* The maximum number of audit violations to be stored in a constraint. If not set, the internal default of 20 will be used. */
	// +optional
	ConstraintViolationLimit *int64 `json:"constraintViolationLimit,omitempty"`

	/* The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
	// +optional
	ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`

	/* Configures the mode of the Policy Controller installation. Possible values: INSTALL_SPEC_UNSPECIFIED, INSTALL_SPEC_NOT_INSTALLED, INSTALL_SPEC_ENABLED, INSTALL_SPEC_SUSPENDED, INSTALL_SPEC_DETACHED */
	// +optional
	InstallSpec *string `json:"installSpec,omitempty"`

	/* Logs all denies and dry run failures. */
	// +optional
	LogDeniesEnabled *bool `json:"logDeniesEnabled,omitempty"`

	/* Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"] */
	// +optional
	Monitoring *FeaturemembershipMonitoring `json:"monitoring,omitempty"`

	/* Enables the ability to mutate resources using Policy Controller. */
	// +optional
	MutationEnabled *bool `json:"mutationEnabled,omitempty"`

	/* Specifies the desired policy content on the cluster. */
	// +optional
	PolicyContent *FeaturemembershipPolicyContent `json:"policyContent,omitempty"`

	/* Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
	// +optional
	ReferentialRulesEnabled *bool `json:"referentialRulesEnabled,omitempty"`
}

func (*FeaturemembershipPolicyControllerHubConfig) DeepCopy

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

func (*FeaturemembershipPolicyControllerHubConfig) DeepCopyInto

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

type FeaturemembershipPolicycontroller

type FeaturemembershipPolicycontroller struct {
	/* Policy Controller configuration for the cluster. */
	PolicyControllerHubConfig FeaturemembershipPolicyControllerHubConfig `json:"policyControllerHubConfig"`

	/* Optional. Version of Policy Controller to install. Defaults to the latest version. */
	// +optional
	Version *string `json:"version,omitempty"`
}

func (*FeaturemembershipPolicycontroller) DeepCopy

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

func (*FeaturemembershipPolicycontroller) DeepCopyInto

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

type FeaturemembershipTemplateLibrary

type FeaturemembershipTemplateLibrary struct {
	/* Configures the manner in which the template library is installed on the cluster. Possible values: INSTALLATION_UNSPECIFIED, NOT_INSTALLED, ALL */
	// +optional
	Installation *string `json:"installation,omitempty"`
}

func (*FeaturemembershipTemplateLibrary) DeepCopy

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

func (*FeaturemembershipTemplateLibrary) DeepCopyInto

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

type GKEHubFeatureMembership

type GKEHubFeatureMembership struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +required
	Spec   GKEHubFeatureMembershipSpec   `json:"spec,omitempty"`
	Status GKEHubFeatureMembershipStatus `json:"status,omitempty"`
}

GKEHubFeatureMembership is the Schema for the gkehub API +k8s:openapi-gen=true

func (*GKEHubFeatureMembership) DeepCopy

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

func (*GKEHubFeatureMembership) DeepCopyInto

func (in *GKEHubFeatureMembership) DeepCopyInto(out *GKEHubFeatureMembership)

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

func (*GKEHubFeatureMembership) DeepCopyObject

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

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

type GKEHubFeatureMembershipList

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

GKEHubFeatureMembershipList contains a list of GKEHubFeatureMembership

func (*GKEHubFeatureMembershipList) DeepCopy

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

func (*GKEHubFeatureMembershipList) DeepCopyInto

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

func (*GKEHubFeatureMembershipList) DeepCopyObject

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

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

type GKEHubFeatureMembershipSpec

type GKEHubFeatureMembershipSpec struct {
	/* Config Management-specific spec. */
	// +optional
	Configmanagement *FeaturemembershipConfigmanagement `json:"configmanagement,omitempty"`

	/* Immutable. */
	FeatureRef FeatureRef `json:"featureRef"`

	/* Immutable. The location of the feature */
	Location string `json:"location"`

	/* Immutable. The location of the membership */
	// +optional
	MembershipLocation *string `json:"membershipLocation,omitempty"`

	/* Immutable. */
	MembershipRef MembershipRef `json:"membershipRef"`

	/* Manage Mesh Features */
	// +optional
	Mesh *FeaturemembershipMesh `json:"mesh,omitempty"`

	/* Policy Controller-specific spec. */
	// +optional
	Policycontroller *FeaturemembershipPolicycontroller `json:"policycontroller,omitempty"`

	/* Immutable. The Project that this resource belongs to. */
	ProjectRef FeatureProjectRef `json:"projectRef"`
}

func (*GKEHubFeatureMembershipSpec) DeepCopy

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

func (*GKEHubFeatureMembershipSpec) DeepCopyInto

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

type GKEHubFeatureMembershipStatus

type GKEHubFeatureMembershipStatus struct {
	/* Conditions represent the latest available observations of the
	   GKEHubFeatureMembership's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
}

func (*GKEHubFeatureMembershipStatus) DeepCopy

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

func (*GKEHubFeatureMembershipStatus) DeepCopyInto

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

type MembershipRef added in v1.124.0

type MembershipRef struct {
	/* The name of the membership. Allowed value: The Google Cloud resource name of a `GKEHubMembership` resource (format: `projects/{{project}}/locations/{{location}}/memberships/{{name}}`).*/
	External string `json:"external,omitempty"`
	/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
	Name string `json:"name,omitempty"`
	/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
	Namespace string `json:"namespace,omitempty"`
}

func (*MembershipRef) DeepCopy added in v1.124.0

func (in *MembershipRef) DeepCopy() *MembershipRef

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

func (*MembershipRef) DeepCopyInto added in v1.124.0

func (in *MembershipRef) DeepCopyInto(out *MembershipRef)

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

Jump to

Keyboard shortcuts

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