BigtableGCPolicy
This resource defines a Bigtable Garbage Collection (GC) policy.
Property | Value |
---|---|
Google Cloud Service Name | Cloud Bigtable |
Google Cloud Service Documentation | /bigtable/docs/ |
Google Cloud REST Resource Name | bigtableadmin/v2/projects.instances.appProfiles |
Google Cloud REST Resource Documentation | /bigtable/docs/reference/admin/rest/v2/projects.instances.tables/modifyColumnFamilies#gcrule |
Config Connector Resource Short Names | gcpbigtablegcpolicy gcpbigtablegcpolicies bigtablegcpolicy |
Config Connector Service Name | bigtableadmin.googleapis.com |
Config Connector Resource Fully Qualified Name | bigtablegcpolicies.bigtable.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Annotations
Fields | |
---|---|
cnrm.cloud.google.com/project-id |
Spec
Schema
columnFamily: string
deletionPolicy: string
gcRules: string
instanceRef:
external: string
name: string
namespace: string
maxAge:
- days: integer
duration: string
maxVersion:
- number: integer
mode: string
tableRef:
external: string
name: string
namespace: string
Fields | |
---|---|
Required |
Immutable. The name of the column family. |
Optional |
The deletion policy for the GC policy. Setting ABANDON allows the resource to be abandoned rather than deleted. This is useful for GC policy as it cannot be deleted in a replicated instance. Possible values are: "ABANDON". |
Optional |
Serialized JSON string for garbage collection policy. Conflicts with "mode", "max_age" and "max_version". |
Required |
The name of the Bigtable instance. |
Optional |
Allowed value: The `name` field of a `BigtableInstance` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
Immutable. NOTE: 'gc_rules' is more flexible, and should be preferred over this field for new resources. This field may be deprecated in the future. GC policy that applies to all cells older than the given age. |
Optional |
|
Optional |
DEPRECATED. Deprecated in favor of duration. Immutable. Number of days before applying GC policy. |
Optional |
Immutable. Duration before applying GC policy. |
Optional |
Immutable. NOTE: 'gc_rules' is more flexible, and should be preferred over this field for new resources. This field may be deprecated in the future. GC policy that applies to all versions of a cell except for the most recent. |
Optional |
|
Required* |
Immutable. Number of version before applying the GC policy. |
Optional |
Immutable. NOTE: 'gc_rules' is more flexible, and should be preferred over this field for new resources. This field may be deprecated in the future. If multiple policies are set, you should choose between UNION OR INTERSECTION. |
Required |
The name of the table. |
Optional |
Allowed value: The `name` field of a `BigtableTable` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
observedGeneration: integer
Fields | |
---|---|
conditions |
Conditions represent the latest available observation of the resource's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
observedGeneration |
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. |
Sample YAML(s)
Typical Use Case
# Copyright 2020 Google LLC
#
# 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.
apiVersion: bigtable.cnrm.cloud.google.com/v1beta1
kind: BigtableGCPolicy
metadata:
name: bigtablegcpolicy-sample
spec:
tableRef:
name: bigtablegcpolicy-dep
columnFamily: family1
instanceRef:
name: bigtablegcpolicy-dep
gcRules: >
{
"mode": "union",
"rules": [
{
"max_age": "15h"
},
{
"mode": "intersection",
"rules": [
{
"max_age": "2h"
},
{
"max_version": 2
}
]
}
]
}
---
apiVersion: bigtable.cnrm.cloud.google.com/v1beta1
kind: BigtableInstance
metadata:
name: bigtablegcpolicy-dep
spec:
displayName: BigtableSample
cluster:
- clusterId: cluster
zone: us-central1-a
numNodes: 3
---
apiVersion: bigtable.cnrm.cloud.google.com/v1beta1
kind: BigtableTable
metadata:
name: bigtablegcpolicy-dep
spec:
columnFamily:
- family: family1
- family: family2
instanceRef:
name: bigtablegcpolicy-dep
splitKeys:
- a