Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Creating a Custom Resource Definition for a pod IP to metadata mapper. #1071

Closed
wants to merge 22 commits into from

Commits on Jun 12, 2023

  1. feat: Creating a Custom Resource Definition for the PodInfo operator.

    This commit:
    
    - Initializes a Project with Name podinfo and repo github.com/cilium/tetragon
    - Provide builderplate code for creating the operator
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    c31ed60 View commit details
    Browse the repository at this point in the history
  2. feat: Creating a Custom Resource Definition for the PodInfo operator.

    This commit:
    
    - Defines the Custom Resource.
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    41de71f View commit details
    Browse the repository at this point in the history
  3. feat: Creating a Custom Resource Definition for the PodInfo operator.

    By default, a custom resource has spec (desired state) as well as status (current state) fields and Kubebuilder auto-generates manifests and deepcopy files for it. But, for out PodInfo resource we don't want the status info, so we need to remove it
    
    This commit:
    
    - Removes the //+kubebuilder:subresource:status comment from podinfo_types.go so kubebuilder doesn't auto generate things regarding the status field.
    - make manifests and make generate commands create updated manifests and deepcopy files.
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    67556ff View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    d87117d View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Cleared the file since the tests will be written using testify, and n…

    …ot ginkgo
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    cca9008 View commit details
    Browse the repository at this point in the history
  2. Mirror k8s pod resource

    - Updated the spec field
    - Added the status field
    - Generated manifests
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    ad830c1 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Renamed the project from podinfo to tetragonpod.

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    a1f2459 View commit details
    Browse the repository at this point in the history
  2. Created an exporter, that will create the CRD object and return to th…

    …e operator to register the CRD with kubernetes API.
    
    - It has an embed.go file that will include the YAML file in the binary.
    - Created a register.go that will take that YAML file create a CRD object and return.
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    52e59e3 View commit details
    Browse the repository at this point in the history
  3. Integrated the registration of tetragonPod CRD into the tetragon oper…

    …ator
    
    - renamed the register package to client package, and wrote logic that will register the CRD with the API server
    - Used the tetragon client package to register the CRD
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 2, 2023
    Configuration menu
    Copy the full SHA
    f02a0ee View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. Replaced podinfo with tetragonpods.

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    3ef1e9c View commit details
    Browse the repository at this point in the history
  2. Updated the Logic for registering TetragonPod CustomResourceDefinitio…

    …n with the help of operator.
    
    - The logic now handles the condition if the CustomResourceDefinition already exists in the cluster.
    
    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    8b682c4 View commit details
    Browse the repository at this point in the history
  3. cleanup

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    bf134c7 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Added cluster role for tetragon pod controller

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    58ce306 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d25981 View commit details
    Browse the repository at this point in the history
  3. Added deployment for the tetragonpod controller

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    336aaf3 View commit details
    Browse the repository at this point in the history
  4. Modified files for adding labels and default values

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    dbb2856 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    85b5baf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    087ef7a View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Added flag and logic for skipping the tetragonPod CRD

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d9b4019 View commit details
    Browse the repository at this point in the history
  2. Added flag in the default value

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    d8271a4 View commit details
    Browse the repository at this point in the history
  3. Cleanup of unused files

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    c12fd65 View commit details
    Browse the repository at this point in the history
  4. Resolving merge conflicts

    Signed-off-by: Prateek Singh <[email protected]>
    prateek041 committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ddfd1d9 View commit details
    Browse the repository at this point in the history