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

custom resource definition manifest files #1

Merged
merged 4 commits into from
Feb 25, 2024
Merged

Conversation

siddhantprateek
Copy link
Owner

No description provided.

The commit adds a new GitHub Actions workflow file named "Manifest Validation". This workflow is triggered on push and pull requests to the master branch. 

The workflow runs on an Ubuntu environment and consists of a single job named "validation". The job performs the following steps:
1. Checks out the repository using the actions/checkout@v2 action.
2. Validates Kubernetes YAML files using the kubeval tool. The files to be validated are specified as "definition" and "resources".
3. The validation is performed using the makocchi-git/[email protected] action.
4. The GitHub token is passed to the action using the secrets.GITHUB_TOKEN.
Adds a new resource definition for a custom hotel booking in the hotels.com/v1 API version. The resource is named "custom-hotel-booking" and has the following specifications:
- guestfrom: US
- guestName: Anderson
- days: 21
Adds a CustomResourceDefinition (CRD) for HotelBooking to the Kubernetes cluster. This CRD defines a new resource type called "hotelbooking.hotels.com" with the following specifications:
- Scope: Namespaced
- Group: hotels.com
- Names:
  - Kind: HotelBooking
  - Singular: hotelbooking
  - Plural: hotelbookings
  - Short Names: hb
- Versions:
  - Name: v1
    - Served: true
    - Storage: true
    - Schema:
      - Type: Object
      - Properties:
        - Spec:
          - Type: object
          - Properties:
            - guestfrom:
              - Type: string
            - guestName:
              - Type: string
            - days:
              - Type: integer
              - Minimum: 1
              - Maximum: 90
- Added requirements section to specify the need for Kubernetes (minikube)
- Added setup instructions for creating custom resource definition and custom resources using kubectl apply command
@siddhantprateek siddhantprateek merged commit ece17b1 into master Feb 25, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant