kubes 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/_docs/install/gem/custom-version.md +70 -0
- data/docs/_docs/patterns/central-deployer.md +4 -4
- data/docs/_docs/yaml/erb-comment.md +1 -1
- data/docs/_includes/sidebar.html +6 -2
- data/kubes.gemspec +2 -2
- data/lib/kubes/version.rb +1 -1
- metadata +9 -8
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f66db42d33089c27d90ea7daa749ae0e2b8298a06d5bd5a554c7bc2936a6734f
         | 
| 4 | 
            +
              data.tar.gz: bde5c65bfb606523754dd653c1067a2ed99ccf94c7c88ce496df2409d5581fd6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 940b22e57b741854513e1cee3367648189267ee34d1bd9ad4e0e07687ccc8d9d49f25b24977e43209e31af3967f7a7d47f251f5a0812b52d02f2a2cc64ad03c4
         | 
| 7 | 
            +
              data.tar.gz: 89a6be8317b8e1a0aa49158f54376504d7f914ae4f8d2fd22845df23d1fb7cee1574d1ac6ef9416d14d3a793908b1d30ed8b624300cf6722512f8d46987f3b58
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -3,6 +3,9 @@ | |
| 3 3 | 
             
            All notable changes to this project will be documented in this file.
         | 
| 4 4 | 
             
            This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
         | 
| 5 5 |  | 
| 6 | 
            +
            ## [0.8.2] - 2022-02-07
         | 
| 7 | 
            +
            - improve gem dependency version specifiers
         | 
| 8 | 
            +
             | 
| 6 9 | 
             
            ## [0.8.1] - 2022-02-06
         | 
| 7 10 | 
             
            - allow --version command to run outside project
         | 
| 8 11 |  | 
| @@ -0,0 +1,70 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            title: How to Use Custom Version of Kubes
         | 
| 3 | 
            +
            nav_text: Custom Version
         | 
| 4 | 
            +
            category: gem
         | 
| 5 | 
            +
            order: 1
         | 
| 6 | 
            +
            ---
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            If you want or need to run a forked version of kubes, here's how:
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            ## Change Version Number
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            First, clone down the source and change version number so you can identify that it's a custom version.  Clone down the project:
         | 
| 13 | 
            +
             | 
| 14 | 
            +
                $ git clone https://github.com/boltops-tools/kubes
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            Update [lib/kubes/version.rb](https://github.com/boltops-tools/kubes/blob/master/lib/kubes/version.rb) so you'll be able to tell that it's a custom build.  For example:
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            ```ruby
         | 
| 19 | 
            +
            module kubes
         | 
| 20 | 
            +
              VERSION = "0.8.2.custom"
         | 
| 21 | 
            +
            end
         | 
| 22 | 
            +
            ```
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            There are 2 ways to use the custom version:
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            1. Gemfile: Forked Git Source
         | 
| 27 | 
            +
            2. Gem Package: Build and Install
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            ## Gemfile: Forked Git Source
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            Point `kubes ` to use your repo with the forked version.  Example:
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            Gemfile:
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            ```ruby
         | 
| 36 | 
            +
            source "https://rubygems.org"
         | 
| 37 | 
            +
            gem 'kubes', git: 'https://github.com/REPO/kubes', branch: "master"
         | 
| 38 | 
            +
            ```
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            Remember to change `REPO`, to your repo name.
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            Then run:
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                bundle
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            ## Gem Package: Build and Install
         | 
| 47 | 
            +
             | 
| 48 | 
            +
            Build the gem package:
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                $ bundle
         | 
| 51 | 
            +
                $ rake build
         | 
| 52 | 
            +
                pkg/kubes-0.8.2.custom.gem
         | 
| 53 | 
            +
             | 
| 54 | 
            +
            The produced `.gem` file can used to install the gem. You can install it locally:
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                $ gem install pkg/kubes-0.8.2.custom.gem
         | 
| 57 | 
            +
                $ kubes -v
         | 
| 58 | 
            +
                0.8.2.custom
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            Or on any machine with Ruby installed. You can copy it to the machine, ssh into it, and install the custom gem:
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                $ scp pkg/kubes-0.8.2.custom.gem user@server.com:
         | 
| 63 | 
            +
                $ ssh user@server.com
         | 
| 64 | 
            +
                $ gem install kubes-0.8.2.custom.gem
         | 
| 65 | 
            +
                $ kubes -v
         | 
| 66 | 
            +
                0.8.2.custom
         | 
| 67 | 
            +
             | 
| 68 | 
            +
            ## Contributing
         | 
| 69 | 
            +
             | 
| 70 | 
            +
            Learning how to run a forked version of kubes allows you to make changes to the tool. Consider improving kubes by submitting a Pull Request. See: [Contributing]({% link _docs/contributing.md %}).
         | 
| @@ -7,18 +7,18 @@ categories: patterns | |
| 7 7 | 
             
            Kubes can be use as either an app-centric or ops-centric tool.
         | 
| 8 8 |  | 
| 9 9 | 
             
            * **app-centric**: Each app repo has it's own `.kubes` settings files. This is useful if your applications are very differently setup.
         | 
| 10 | 
            -
            * **ops-centric**: Each app repo has pretty much the same `.kubes` settings files. This is useful if your applications are very similarly  | 
| 10 | 
            +
            * **ops-centric**: Each app repo has pretty much the same `.kubes` settings files. This is useful if your applications are very similarly set up.
         | 
| 11 11 |  | 
| 12 12 | 
             
            ## Setup
         | 
| 13 13 |  | 
| 14 14 | 
             
            With an ops-centric approach, you use the same `.kubes` settings files for the app repos you want to use. For example:
         | 
| 15 15 |  | 
| 16 | 
            -
                https://github.com/ | 
| 17 | 
            -
                https://github.com/ | 
| 16 | 
            +
                https://github.com/org/app1
         | 
| 17 | 
            +
                https://github.com/org/app2
         | 
| 18 18 |  | 
| 19 19 | 
             
            You then also have a
         | 
| 20 20 |  | 
| 21 | 
            -
                https://github.com/ | 
| 21 | 
            +
                https://github.com/org/.kubes
         | 
| 22 22 |  | 
| 23 23 | 
             
            You can simply copy the `.kubes` folder into the app repo folder or even add the `repo/.kubes` as a submodule.
         | 
| 24 24 |  | 
| @@ -30,7 +30,7 @@ spec: | |
| 30 30 | 
             
              type: ClusterIP
         | 
| 31 31 | 
             
            ```
         | 
| 32 32 |  | 
| 33 | 
            -
            This allows  | 
| 33 | 
            +
            This allows IDE kubernetes autocompletion plugins and tools to work because the `.kubes/resources/web/service.yaml` source code itself is perfectly valid YAML.
         | 
| 34 34 |  | 
| 35 35 | 
             
            The `#ERB` comments are essentially replaced by `<% ... %>` tags before ERB processing happens. Example:
         | 
| 36 36 |  | 
    
        data/docs/_includes/sidebar.html
    CHANGED
    
    | @@ -54,7 +54,11 @@ | |
| 54 54 | 
             
                  </li>
         | 
| 55 55 | 
             
                  <li><a href="{% link _docs/install.md %}">Install</a>
         | 
| 56 56 | 
             
                    <ul>
         | 
| 57 | 
            -
                      <li><a href="{% link _docs/install/gem.md %}">Gem</a | 
| 57 | 
            +
                      <li><a href="{% link _docs/install/gem.md %}">Gem</a>
         | 
| 58 | 
            +
                        <ul>
         | 
| 59 | 
            +
                          <li><a href="{% link _docs/install/gem/custom-version.md %}">Custom Version</a></li>
         | 
| 60 | 
            +
                        </ul>
         | 
| 61 | 
            +
                      </li>
         | 
| 58 62 | 
             
                      <li><a href="{% link _docs/install/standalone.md %}">Standalone</a>
         | 
| 59 63 | 
             
                        <ul>
         | 
| 60 64 | 
             
                          {% assign docs = site.docs | where: "categories","standalone" | sort:"order" %}
         | 
| @@ -235,7 +239,7 @@ | |
| 235 239 | 
             
                <h2>sidebar options:</h2>
         | 
| 236 240 | 
             
                <ul class="list-unstyled">
         | 
| 237 241 | 
             
                  <li><a href="#" id="expand-all">expand all</a></li>
         | 
| 238 | 
            -
                  <li><a href="{{ site.gh_url }}/blob/master/docs/ | 
| 242 | 
            +
                  <li><a href="{{ site.gh_url }}/blob/master/docs/" id="edit-page" target="_blank">edit page</a></li>
         | 
| 239 243 | 
             
                </ul>
         | 
| 240 244 | 
             
              </div>
         | 
| 241 245 | 
             
            </div>
         | 
    
        data/kubes.gemspec
    CHANGED
    
    | @@ -30,8 +30,8 @@ Gem::Specification.new do |spec| | |
| 30 30 | 
             
              spec.add_dependency "zeitwerk"
         | 
| 31 31 |  | 
| 32 32 | 
             
              # core helper libs
         | 
| 33 | 
            -
              spec.add_dependency "kubes_aws", " | 
| 34 | 
            -
              spec.add_dependency "kubes_google", " | 
| 33 | 
            +
              spec.add_dependency "kubes_aws", ">= 0.3.1"
         | 
| 34 | 
            +
              spec.add_dependency "kubes_google", ">= 0.3.8"
         | 
| 35 35 |  | 
| 36 36 | 
             
              spec.add_development_dependency "bundler"
         | 
| 37 37 | 
             
              spec.add_development_dependency "byebug"
         | 
    
        data/lib/kubes/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: kubes
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.8. | 
| 4 | 
            +
              version: 0.8.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tung Nguyen
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022-02- | 
| 11 | 
            +
            date: 2022-02-07 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         | 
| @@ -154,30 +154,30 @@ dependencies: | |
| 154 154 | 
             
              name: kubes_aws
         | 
| 155 155 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 156 156 | 
             
                requirements:
         | 
| 157 | 
            -
                - - " | 
| 157 | 
            +
                - - ">="
         | 
| 158 158 | 
             
                  - !ruby/object:Gem::Version
         | 
| 159 159 | 
             
                    version: 0.3.1
         | 
| 160 160 | 
             
              type: :runtime
         | 
| 161 161 | 
             
              prerelease: false
         | 
| 162 162 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 163 163 | 
             
                requirements:
         | 
| 164 | 
            -
                - - " | 
| 164 | 
            +
                - - ">="
         | 
| 165 165 | 
             
                  - !ruby/object:Gem::Version
         | 
| 166 166 | 
             
                    version: 0.3.1
         | 
| 167 167 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 168 168 | 
             
              name: kubes_google
         | 
| 169 169 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 170 170 | 
             
                requirements:
         | 
| 171 | 
            -
                - - " | 
| 171 | 
            +
                - - ">="
         | 
| 172 172 | 
             
                  - !ruby/object:Gem::Version
         | 
| 173 | 
            -
                    version: 0.3. | 
| 173 | 
            +
                    version: 0.3.8
         | 
| 174 174 | 
             
              type: :runtime
         | 
| 175 175 | 
             
              prerelease: false
         | 
| 176 176 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 177 177 | 
             
                requirements:
         | 
| 178 | 
            -
                - - " | 
| 178 | 
            +
                - - ">="
         | 
| 179 179 | 
             
                  - !ruby/object:Gem::Version
         | 
| 180 | 
            -
                    version: 0.3. | 
| 180 | 
            +
                    version: 0.3.8
         | 
| 181 181 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 182 182 | 
             
              name: bundler
         | 
| 183 183 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -346,6 +346,7 @@ files: | |
| 346 346 | 
             
            - docs/_docs/install.md
         | 
| 347 347 | 
             
            - docs/_docs/install/dependencies.md
         | 
| 348 348 | 
             
            - docs/_docs/install/gem.md
         | 
| 349 | 
            +
            - docs/_docs/install/gem/custom-version.md
         | 
| 349 350 | 
             
            - docs/_docs/install/standalone.md
         | 
| 350 351 | 
             
            - docs/_docs/install/standalone/centos.md
         | 
| 351 352 | 
             
            - docs/_docs/install/standalone/details.md
         |