<commit_before>### BEGIN TerraformPlan CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformplans.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformplans
    singular: terraformplan
    kind: TerraformPlan
    shortNames: ["tfplan"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-plan
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformplans
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformPlan CRD and CompositeController ###
---
### BEGIN TerraformApply CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformapplys.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformapplys
    singular: terraformapply
    kind: TerraformApply
    shortNames: ["tfapply"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-apply
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformapplys
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformApply CRD and CompositeController ###
---
### BEGIN TerraformDestroy CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformdestroys.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformdestroys
    singular: terraformdestroy
    kind: TerraformDestroy
    shortNames: ["tfdestroy"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-destroy
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformdestroys
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformDestroy CRD and CompositeController ###
---
# Controller deployment
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: terraform-operator
  namespace: metacontroller
  labels:
    app: terraform-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: terraform-operator
  template:
    metadata:
      labels:
        app: terraform-operator
    spec:
      serviceAccountName: terraform-operator
      containers:
      - name: terraform-operator
        image: gcr.io/cloud-solutions-group/terraform-operator:0.3.1
        command: ["/usr/bin/terraform-operator"]
        # env:
        # - name: HTTP_DEBUG
        #   value: "true"
---
apiVersion: v1
kind: Service
metadata:
  name: terraform-operator
  namespace: metacontroller
spec:
  type: ClusterIP
  ports:
  - name: http
    port: 80
  selector:
    app: terraform-operator
  <commit_msg>version bump tag to 0.3.2<commit_after>### BEGIN TerraformPlan CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformplans.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformplans
    singular: terraformplan
    kind: TerraformPlan
    shortNames: ["tfplan"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-plan
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformplans
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformPlan CRD and CompositeController ###
---
### BEGIN TerraformApply CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformapplys.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformapplys
    singular: terraformapply
    kind: TerraformApply
    shortNames: ["tfapply"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-apply
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformapplys
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformApply CRD and CompositeController ###
---
### BEGIN TerraformDestroy CRD and CompositeController ###
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: terraformdestroys.ctl.isla.solutions
spec:
  group: ctl.isla.solutions
  version: v1
  scope: Namespaced
  names:
    plural: terraformdestroys
    singular: terraformdestroy
    kind: TerraformDestroy
    shortNames: ["tfdestroy"]
---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
  name: terraform-operator-destroy
spec:
  generateSelector: true
  resyncPeriodSeconds: 4
  parentResource:
    apiVersion: ctl.isla.solutions/v1
    resource: terraformdestroys
  childResources:
  - apiVersion: v1
    resource: pods
  - apiVersion: v1
    resource: configmaps
  hooks:
    sync:
      webhook:
        url: http://terraform-operator.metacontroller/sync
### END TerraformDestroy CRD and CompositeController ###
---
# Controller deployment
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: terraform-operator
  namespace: metacontroller
  labels:
    app: terraform-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: terraform-operator
  template:
    metadata:
      labels:
        app: terraform-operator
    spec:
      serviceAccountName: terraform-operator
      containers:
      - name: terraform-operator
        image: gcr.io/cloud-solutions-group/terraform-operator:0.3.2
        command: ["/usr/bin/terraform-operator"]
        # env:
        # - name: HTTP_DEBUG
        #   value: "true"
---
apiVersion: v1
kind: Service
metadata:
  name: terraform-operator
  namespace: metacontroller
spec:
  type: ClusterIP
  ports:
  - name: http
    port: 80
  selector:
    app: terraform-operator
  
{'fraction_non_alphanumeric': 0.08958214081282198, 'fraction_numerical': 0.012449914138523182, 'mean_word_length': 3.5950032873109796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4718557', 'n_tokens_mistral': 2286, 'n_tokens_neox': 2344, 'n_words': 512}